Re: [PATCH] Allow stashes to be referenced by index only

2016-10-25 Thread Ramsay Jones
On 25/10/16 22:41, Junio C Hamano wrote: > Aaron M Watson writes: > > Aaron M Watson writes: > >> Instead of referencing "stash@{n}" explicitly, it can simply be >> referenced as "n". >> Most users only reference stashes by their position >> in the

Re: [PATCH] Allow stashes to be referenced by index only

2016-10-25 Thread Junio C Hamano
Aaron M Watson writes: Aaron M Watson writes: > Instead of referencing "stash@{n}" explicitly, it can simply be > referenced as "n". > Most users only reference stashes by their position > in the stash stask (what I refer to as the "index"). It is

Re: [PATCH] Allow stashes to be referenced by index only

2016-10-25 Thread Aaron and Ashley Watson
On Tue, Oct 25, 2016 at 4:11 AM, Jeff King wrote: > On Mon, Oct 24, 2016 at 07:40:13PM -0400, Aaron M Watson wrote: > >> Instead of referencing "stash@{n}" explicitly, it can simply be >> referenced as "n". Most users only reference stashes by their position >> in the stash stask

Re: [PATCH] Allow stashes to be referenced by index only

2016-10-25 Thread Jeff King
On Mon, Oct 24, 2016 at 07:40:13PM -0400, Aaron M Watson wrote: > Instead of referencing "stash@{n}" explicitly, it can simply be > referenced as "n". Most users only reference stashes by their position > in the stash stask (what I refer to as the "index"). The syntax for the > typical stash

[PATCH] Allow stashes to be referenced by index only

2016-10-24 Thread Aaron M Watson
Instead of referencing "stash@{n}" explicitly, it can simply be referenced as "n". Most users only reference stashes by their position in the stash stask (what I refer to as the "index"). The syntax for the typical stash (stash@{n}) is slightly annoying and easy to forget, and sometimes difficult

Re: [PATCH] Allow stashes to be referenced by index only

2016-10-24 Thread Jeff King
On Sun, Oct 23, 2016 at 01:41:25PM -0400, Aaron and Ashley Watson wrote: > > But what's going on here? Why did we bother running rev-parse earlier if > > we don't actually use the value of REV? > > > > You mentioned tweaking it to fix a broken test, and indeed, just using > > $REV here breaks a

Re: [PATCH] Allow stashes to be referenced by index only

2016-10-23 Thread Jeff King
On Thu, Sep 08, 2016 at 07:46:37PM -0400, Aaron M Watson wrote: > Instead of referencing "stash@{n}" explicitly, it can simply be > referenced as "n". Most users only reference stashes by their position > in the stash stask (what I refer to as the "index"). The syntax for the > typical stash

[PATCH] Allow stashes to be referenced by index only

2016-09-08 Thread Aaron M Watson
Instead of referencing "stash@{n}" explicitly, it can simply be referenced as "n". Most users only reference stashes by their position in the stash stask (what I refer to as the "index"). The syntax for the typical stash (stash@{n}) is slightly annoying and easy to forget, and sometimes difficult