Re: Feature request: short cuts for git add /diff etc
- From
Nazri Ramliy <ayiehere@gmail.com>
- Date
- Sep 4, 2012, 11:51 UTC
- Message-ID
- <CAEY4ZpOw2HUCf6QxUaAQTjCCVxi_TvttW1DFOgrsgbo6PQtfZw@mail.gmail.com>
- In-Reply-To
- <6110218480.20120904152542@reg.ru>
On Tue, Sep 4, 2012 at 7:25 PM, Коньков Евгений <kes@reg.ru> wrote:
Show 13 quoted lines
> sot this allow: > git diff 1 same as git diff a1.txt > git diff 2 same as git diff a2.txt > > git add 1 same as git add a1.txt > in case there are may be files with such names I may appply option -s,for example > git add [ -s | --stage ] 1 . This will force to add file from list of > 'git status' and do not use '1' as file name. > > git add 3 same as git add new.txt > > > This very handy and will keep developer from useless typing =)
Check out git-number[1] and scm_breeze[2]. Both provides similar functionality to the above.
nazri shameless disclaimer: I wrote git-number.
[1] https://github.com/holygeek/git-number [2] https://github.com/ndbroadbent/scm_breeze