Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add alias for git add --verbose #3167

Merged
merged 1 commit into from Aug 13, 2018
Merged

Add alias for git add --verbose #3167

merged 1 commit into from Aug 13, 2018

Conversation

tushart91
Copy link
Contributor

@tushart91 tushart91 commented Sep 23, 2014

Add alias gav='git add -v'
fixes #6793

@mcornella mcornella added Topic: alias Pull Request or issue regarding aliases and removed Topic: alias Pull Request or issue regarding aliases labels Mar 30, 2016
@bittner
Copy link
Contributor

bittner commented Jun 8, 2018

Cool! Please rebase your branch so it can be merged. And cross your fingers this happens soon! 🤞

Would you mind adding alias gav='git add -v' (verbose) to this PR? That would then cover issue #6793.

@bittner
Copy link
Contributor

bittner commented Jun 8, 2018

Interestingly, gaa = 'git add --all' is already included in the aliases.

This was added by PR #3544.

@tushart91
Copy link
Contributor Author

Updated based on your comment.
All my requirements are already in upstream so just adding fix for your requirement.

@bittner
Copy link
Contributor

bittner commented Jun 20, 2018

Nice, thank you!

I see the git diff --staged is implemented as gdc = git diff --cached. Would it be too much to ask to add also a gds = git diff --staged alias (which does the same)? What do you think?

@bittner
Copy link
Contributor

bittner commented Aug 13, 2018

@tushart91 Can you add gds = git diff --staged as an official alias to gdc?

git diff supports both options, according to the git-diff man page ("--staged is a synonym of --cached."), hence it should be acceptable to also support both short aliases.

@mcornella mcornella changed the title Aliases for git add all and stage diff Add alias for git add --verbose Aug 13, 2018
@mcornella mcornella merged commit 1691cf8 into ohmyzsh:master Aug 13, 2018
@mcornella
Copy link
Member

@bittner use gdc or add the gds alias in your zshrc. Having an alias means using up another name in the namespace; having two is just wasteful.

@bittner
Copy link
Contributor

bittner commented Aug 14, 2018

@mcornella 👍

Interesting. I thought to have seen --staged used more widely with git diff (that's why I cared). But the manpage seems to favor --cached anyway. Fine with me.

@bittner
Copy link
Contributor

bittner commented Aug 14, 2018

BTW, gdc seems to have been removed (by error?) for some reason. It's not in the aliases file anymore. Is there a reason for that, @mcornella?

EDIT: This comes from f1a43da via #3977 (conflict with GNU D compiler).

Interestingly, in theory, there is also a conflict of gs with Ghostscript, but nobody complains. 🙄

@mcornella
Copy link
Member

Oh right, it's now gdca. Hmm... maybe it makes sense to have gds after all, provided there are no conflicts (I haven't found any). Care to submit a PR?

@bittner
Copy link
Contributor

bittner commented Aug 15, 2018

Voilà!

lellisls pushed a commit to lellisls/oh-my-zsh that referenced this pull request Oct 1, 2018
seth-cohen pushed a commit to seth-cohen/oh-my-zsh that referenced this pull request Oct 29, 2018
jmartindf pushed a commit to jmartindf/oh-my-zsh that referenced this pull request Nov 10, 2018
sagischwarz pushed a commit to sagischwarz/ohmyzsh that referenced this pull request Nov 19, 2018
chihchun pushed a commit to chihchun/oh-my-zsh that referenced this pull request Aug 6, 2019
kankongmeng pushed a commit to kankongmeng/oh-my-zsh that referenced this pull request Jan 8, 2020
spiliopoulos pushed a commit to spiliopoulos/zsh-config that referenced this pull request Jun 17, 2020
Luxcium added a commit to LuxciumProject/ahmyzsh that referenced this pull request Sep 20, 2020
https://github.com/ohmyzsh/ohmyzsh/blob/93c837fec8e9fe61509b9dff9e909e84f7ebe32d/plugins/git/git.plugin.zsh#L1-L293

Copyright (c) 2009-2020 Robby Russell and
[contributors](https://github.com/ohmyzsh/ohmyzsh/contributors)

TAnks to those who have contributed to fix those 20+ issues:

ohmyzsh/ohmyzsh#1790
ohmyzsh/ohmyzsh#3535
ohmyzsh/ohmyzsh#3682
ohmyzsh/ohmyzsh#3962
ohmyzsh/ohmyzsh#3972
ohmyzsh/ohmyzsh#3977
ohmyzsh/ohmyzsh#3991
ohmyzsh/ohmyzsh#4085
ohmyzsh/ohmyzsh#4727
ohmyzsh/ohmyzsh#5130
ohmyzsh/ohmyzsh#5179
ohmyzsh/ohmyzsh#5362
ohmyzsh/ohmyzsh#5442
ohmyzsh/ohmyzsh#6329
ohmyzsh/ohmyzsh#6793
ohmyzsh/ohmyzsh#7682
ohmyzsh/ohmyzsh#7716
ohmyzsh/ohmyzsh#7754
ohmyzsh/ohmyzsh#867
ohmyzsh/ohmyzsh#9103
ohmyzsh/ohmyzsh#9114

and those who help develop
theses aliases and function
whith theses Pull 40+ Requests:

ohmyzsh/ohmyzsh#2790
ohmyzsh/ohmyzsh#3167
ohmyzsh/ohmyzsh#4304
ohmyzsh/ohmyzsh#4751
ohmyzsh/ohmyzsh#4830
ohmyzsh/ohmyzsh#4993
ohmyzsh/ohmyzsh#5025
ohmyzsh/ohmyzsh#5178
ohmyzsh/ohmyzsh#5271
ohmyzsh/ohmyzsh#5287
ohmyzsh/ohmyzsh#5306
ohmyzsh/ohmyzsh#5307
ohmyzsh/ohmyzsh#5390
ohmyzsh/ohmyzsh#5417
ohmyzsh/ohmyzsh#5433
ohmyzsh/ohmyzsh#5511
ohmyzsh/ohmyzsh#5591
ohmyzsh/ohmyzsh#5643
ohmyzsh/ohmyzsh#5729
ohmyzsh/ohmyzsh#5844
ohmyzsh/ohmyzsh#5849
ohmyzsh/ohmyzsh#5871
ohmyzsh/ohmyzsh#6006
ohmyzsh/ohmyzsh#6031
ohmyzsh/ohmyzsh#6059
ohmyzsh/ohmyzsh#6079
ohmyzsh/ohmyzsh#6297
ohmyzsh/ohmyzsh#6378
ohmyzsh/ohmyzsh#6789
ohmyzsh/ohmyzsh#6791
ohmyzsh/ohmyzsh#6893
ohmyzsh/ohmyzsh#7064
ohmyzsh/ohmyzsh#7472
ohmyzsh/ohmyzsh#7556
ohmyzsh/ohmyzsh#7629
ohmyzsh/ohmyzsh#7630
ohmyzsh/ohmyzsh#7724
ohmyzsh/ohmyzsh#7841
ohmyzsh/ohmyzsh#8089
ohmyzsh/ohmyzsh#8563
ohmyzsh/ohmyzsh#8617
ohmyzsh/ohmyzsh#8622
ohmyzsh/ohmyzsh#8697
ohmyzsh/ohmyzsh#8902
ohmyzsh/ohmyzsh#8935
ohmyzsh/ohmyzsh#8957
ohmyzsh/ohmyzsh#9049
Signed-off-by: Benjamin Vincent (Luxcium) <luxcium@neb401.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Topic: alias Pull Request or issue regarding aliases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add gav as git-alias for git add -v
3 participants