Re: [PATCH] branch: implement shortcut to delete last branch

2018-03-27 Thread Ævar Arnfjörð Bjarmason
On Tue, Mar 27 2018, Ævar Arnfjörð Bjarmason wrote: > [...]With that, some comments on the change below: Also, didn't mean to gang up on you. I only saw Jonathan's E-Mail after I sent mine, and it covered some of the same stuff.

Re: [PATCH] branch: implement shortcut to delete last branch

2018-03-27 Thread Ævar Arnfjörð Bjarmason
On Tue, Mar 27 2018, Aaron Greenberg wrote: > 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. A common workflow is > > 1. Do some work on a local topic-branch

Re: [PATCH] branch: implement shortcut to delete last branch

2018-03-27 Thread Jonathan Nieder
Hi, Aaron Greenberg wrote: > 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. A common workflow is > > 1. Do some work on a local topic-branch and push it to a

[PATCH] branch: implement shortcut to delete last branch

2018-03-27 Thread Aaron Greenberg
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. A common workflow is 1. Do some work on a local topic-branch and push it to a remote. 2. 'remote/topic-branch' gets

[PATCH] branch: implement shortcut to delete last branch

2018-03-27 Thread Aaron Greenberg
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

[PATCH] branch: implement shortcut to delete last branch

2018-03-23 Thread Aaron Greenberg
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. A common workflow is 1. Do some work on a local topic-branch and push it to a remote. 2. 'remote/topic-branch' gets

Re: [PATCH] branch: implement shortcut to delete last branch

2018-03-23 Thread Jeff King
[resending; I cc'd Matthieu on his address from that old thread, but it bounced] On Fri, Mar 23, 2018 at 04:56:36AM -0400, Jeff King wrote: > On Fri, Mar 23, 2018 at 02:09:25AM +, Aaron Greenberg wrote: > > > This patch gives git-branch the ability to delete the previous > > checked-out

Re: [PATCH] branch: implement shortcut to delete last branch

2018-03-23 Thread Jeff King
On Fri, Mar 23, 2018 at 02:09:25AM +, Aaron Greenberg wrote: > 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

[PATCH] branch: implement shortcut to delete last branch

2018-03-22 Thread Aaron Greenberg
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,

[PATCH] branch: implement shortcut to delete last branch

2018-03-22 Thread Aaron Greenberg
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