Merge branch 'ab/fetch-prune' into jch
authorJunio C Hamano <gitster@pobox.com>
Thu, 22 Feb 2018 21:04:47 +0000 (13:04 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 22 Feb 2018 21:04:47 +0000 (13:04 -0800)
commit640692810abc7ae49d96b9f9c2b54bc1c51e98b2
tree823c8a6919a1c067751f708106993b3e69e4da5b
parenta5bab4da807c24db73908746d74f54056eef1eef
parent6317972cff9b4df7a6cc666b08be7133ba81617c
Merge branch 'ab/fetch-prune' into jch

Clarify how configured fetch refspecs interact with the "--prune"
option of "git fetch", and also add a handy short-hand for getting
rid of stale tags that are locally held.

* ab/fetch-prune:
  fetch: make the --prune-tags work with <url>
  fetch: add a --prune-tags option and fetch.pruneTags config
  fetch tests: add scaffolding for the new fetch.pruneTags
  git-fetch & config doc: link to the new PRUNING section
  git remote doc: correct dangerous lies about what prune does
  git fetch doc: add a new section to explain the ins & outs of pruning
  fetch tests: fetch <url> <spec> as well as fetch [<remote>]
  fetch tests: expand case/esac for later change
  fetch tests: double quote a variable for interpolation
  fetch tests: test --prune and refspec interaction
  fetch tests: add a tag to be deleted to the pruning tests
  fetch tests: re-arrange arguments for future readability
  fetch tests: refactor in preparation for testing tag pruning
  remote: add a macro for "refs/tags/*:refs/tags/*"
  fetch: stop accessing "remote" variable indirectly
  fetch: trivially refactor assignment to ref_nr
  fetch: don't redundantly NULL something calloc() gave us
Documentation/config.txt
builtin/fetch.c
remote.c
remote.h
t/t5510-fetch.sh