git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

Previous: Коньков ЕвгенийNext: Junio C Hamano
Message 2 of 3 in “Feature request: short cuts for git add /diff etc”
  1. Коньков ЕвгенийSep 4, 2012
  2. Nazri RamliySep 4, 2012
  3. Junio C HamanoSep 4, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.