]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/remote.c
Add git remote set-branches
authorJonathan Nieder <jrnieder@gmail.com>
Wed, 19 May 2010 18:38:50 +0000 (13:38 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 May 2010 03:45:41 +0000 (20:45 -0700)
commit3d8b69495fd1132d5af6d7f46425cca97a937d97
tree174092947dfbff9ef6f261a838b1a07e048d07e0
parent636e87d705c2d6cc53d58eac31b689779d00b292
Add git remote set-branches

Add ‘git remote set-branches’ for changing the list of tracked refs
for a remote repository with one "porcelain-level" command.  This
complements the longstanding ‘git remote add --track’ option.

The interface is based on the ‘git remote set-url’ subcommand.

   git remote set-branches base --add C
   git remote set-branches base A B D
   git remote set-branches base --delete D; # not implemented

Suggested-by: martin f. krafft <madduck@debian.org>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-remote.txt
builtin/remote.c
t/t5505-remote.sh