Feature request: short cuts for git add /diff etc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, Git

Change this:
# git status
# On branch yandex_mail_new_api
# Your branch is ahead of 'origin/yandex_mail_new_api' by 2 commits.
#
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#       modified:   a1.txt
#       modified:   a2.txt
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       new.txt

to this:

# git status
# On branch yandex_mail_new_api
# Your branch is ahead of 'origin/yandex_mail_new_api' by 2 commits.
#
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#       modified(1):   a1.txt
#       modified(2):   a2.txt
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#   (3)    new.txt


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 =)

-- 
 С уважением,
 Коньков Евгений
 Программист
 Регистратор доменных имен REG.RU
 Телефон: +38 (097) 7654-676
 www.reg.ru
 ___________________
 Sincerely yours,
 Konkov Eugen
 Developer
 Accredited domain Registrar REG.RU, LLC.
 Phone: +38 (097) 7654-676
 www.reg.ru/en/

mailto:kes@xxxxxx

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]