author | Carlos Martín Nieto <cmn@elego.de> | |
Sat, 15 Oct 2011 05:04:26 +0000 (07:04 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 16 Oct 2011 05:00:37 +0000 (22:00 -0700) | ||
commit | e8c1e6c796c1b96b6b208bbd4bc8cfd9acb481b5 | |
tree | 6de4732d4833f40e31b11dd50097a638fd3c5c90 | tree | snapshot |
parent | ed43de6ec35dfd4c4bd33ae9b5f2ebe38282209f | commit | diff |
fetch: treat --tags like refs/tags/*:refs/tags/* when pruning
If --tags is specified, add that refspec to the list given to
prune_refs so it knows to treat it as a filter on what refs to
should consider for prunning. This way
git fetch --prune --tags origin
only prunes tags and doesn't delete the branch refs.
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
If --tags is specified, add that refspec to the list given to
prune_refs so it knows to treat it as a filter on what refs to
should consider for prunning. This way
git fetch --prune --tags origin
only prunes tags and doesn't delete the branch refs.
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c | diff | blob | history | |
t/t5510-fetch.sh | diff | blob | history |