A couple branch questions
- From
Jay Soffian <jaysoffian@gmail.com>
- Date
- Feb 14, 2008, 01:39 UTC
- Message-ID
- <76718490802131739n22c56cadn39c1871ea1762dc3@mail.gmail.com>
1) git-branch -d <branchname> complains if <branchname> hasn't been merged to HEAD. Shouldn't it really only complain if <branchname> hasn't been merged into any local branch? i.e., as long as <branchname> has been merged, why care to which branch?
2) Why does --track work only for remote tracking branches? I think it would be useful for setting up topic branches. I've actually got this alias setup, but maybe a --topic option for git-checkout and git-branch would be useful to others (?):
topic = "!sh -c 'branch=$(git symbolic-ref HEAD); test -n \"$branch\" && git co -b \"$1\" && git config branch.\"$1\".merge \"$branch\" && git config branch.\"$1\".remote . && git config branch.\"$1\".rebase true' -"
j.