diff options
author | Steffen Prohaska <prohaska@zib.de> | 2007-11-11 17:35:07 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-19 05:39:00 +0300 |
commit | 47d996a20c3347bb9efbb44e8ed2d615cfdffba3 (patch) | |
tree | d47b15f39935ad44d5c185f9ad25492a2c0fb8ed /sha1_name.c | |
parent | ea55960518bb104020c02aa2f64b33f93d1775e7 (diff) |
push: support pushing HEAD to real branch name
This teaches "push <remote> HEAD" to resolve HEAD on the local
side to its real branch name, e.g. master, and then act as if
the real branch name was specified. So we have a shorthand for
pushing the current branch. Besides HEAD, no other symbolic ref
is resolved.
Thanks to Daniel Barkalow <barkalow@iabervon.org> for suggesting
this implementation, which is much simpler than the
implementation proposed before.
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_name.c')
0 files changed, 0 insertions, 0 deletions