Re: [PATCH v5 1/2] reset: enable '-' short-hand for previous branch

2015-03-16 Thread Sudhanshu Shekhar
Thank you all for your reviews and feedback. I will try and submit this patch by taking my time to think about the various solutions and coming up with the best one. I will also try and see if I can assist Junio with his JFF patch. I have learned a lot during the process of implementing this

[PATCH v5 1/2] reset: enable '-' short-hand for previous branch

2015-03-13 Thread Sudhanshu Shekhar
git reset '-' will reset to the previous branch. To reset a file named - use either git reset ./- or git reset -- -. Change error message to treat single - as an ambigous revision or path rather than a bad flag. Helped-by: Junio C Hamano gits...@pobox.com Helped-by: Eric Sunshine

Re: [PATCH v5 1/2] reset: enable '-' short-hand for previous branch

2015-03-13 Thread Eric Sunshine
On Fri, Mar 13, 2015 at 2:18 PM, Sudhanshu Shekhar sudshekha...@gmail.com wrote: git reset '-' will reset to the previous branch. To reset a file named - use either git reset ./- or git reset -- -. Change error message to treat single - as an ambigous revision or path rather than a bad flag.