[PATCH 0/5] Builtin "git remote"
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 29, 2008, 01:44 UTC
- Message-ID
- <alpine.LSU.1.00.0802290144130.22527@racer.site>
This patch series puts a few building blocks in place (the first three patches), builds in "git remote", and fixes the current behaviour of "git remote prune" when the remote was initialized with --mirror.
It incorporates Hannes Sixt's comments about checking remote_nr.
Oh, and in contrast to the earlier series, I removed the DWIM "git add remote" patch.
It also demonstrates that format-patch --cover-letter should default to -M for the diffstat (search for "git-remote.perl"...).
Johannes Schindelin (5):
path-list: add functions to work with unsorted lists
parseopt: add flag to stop on first non option
Test "git remote show" and "git remote prune"
Make git-remote a builtin
builtin-remote: prune remotes correctly that were added with --mirrorMakefile | 3 +- builtin-remote.c | 557 ++++++++++++++++++++++++++++++++++++++ builtin.h | 1 + contrib/examples/git-remote.perl | 477 ++++++++++++++++++++++++++++++++ git-remote.perl | 477 -------------------------------- git.c | 1 + parse-options.c | 2 + parse-options.h | 1 + path-list.c | 30 ++ path-list.h | 8 +- remote.c | 3 +- remote.h | 1 + t/t5505-remote.sh | 50 ++++ 13 files changed, 1131 insertions(+), 480 deletions(-) create mode 100644 builtin-remote.c create mode 100755 contrib/examples/git-remote.perl delete mode 100755 git-remote.perl