c-a
$ git checkout master
$ git branch -d topic-a
$ # With this patch, a user could simply type
$ git branch -d -
"-" is a useful shortcut for cleaning up a just-merged branch
(or a just switched-from branch.)
Signed-off-by: Aaron Greenberg
---
builtin/branch.c | 3 +++
t/t3200-bra
With the approvals listed in [*1*] and in accordance with the
guidelines set out in Documentation/SubmittingPatches, I am submitting
this patch to be applied upstream.
After work on this patch is done, I'll look into picking up where the
prior work done in [*2*] left off.
Is there anything else t
I updated the commit message to include my first email's cover letter
and cleaned up the test.
Copying Junio, since he also had good comments in the conversation you
linked.
I can appreciate Matthieu's points on the use of "-" in destructive
commands. As of this writing, git-merge supports the "
c-a
$ git checkout master
$ git branch -d topic-a
$ # With this patch, a user could simply type
$ git branch -d -
"-" is a useful shortcut for cleaning up a just-merged branch
(or a just switched-from branch.)
Signed-off-by: Aaron Greenberg
---
builtin/branch.c | 3 +++
t/t3200-bra
This patch gives git-branch the ability to delete the previous
checked-out branch using the "-" shortcut. This shortcut already exists
for git-checkout, git-merge, and git-revert. One of my common workflows
is to do some work on a local topic branch and push it to a remote,
where it gets merged in
Add support for using the "-" shortcut to delete the last checked-out
branch. This functionality already exists for git-merge, git-checkout,
and git-revert.
Signed-off-by: Aaron Greenberg
---
builtin/branch.c | 3 +++
t/t3200-branch.sh | 9 +
2 files changed, 12 insertion
6 matches
Mail list logo