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

What happened with ggpush, gap and others? #3972

Closed
opsidao opened this issue Jun 9, 2015 · 32 comments · Fixed by #3990
Closed

What happened with ggpush, gap and others? #3972

opsidao opened this issue Jun 9, 2015 · 32 comments · Fixed by #3990

Comments

@opsidao
Copy link

opsidao commented Jun 9, 2015

I can see here a lot of aliases been removed... this breaks my workflow and I guess others too, could you explain the rationale behind those removals?

@MarioAraque
Copy link

+1

8 similar comments
@NuclearCookie
Copy link

+1

@badmanski
Copy link

+1

@arroadie
Copy link

arroadie commented Jun 9, 2015

+1

@wess
Copy link

wess commented Jun 9, 2015

+1

@karismatic-megafauna
Copy link

+1

@Tom-Sesselmann
Copy link

+1

@zagraves
Copy link

zagraves commented Jun 9, 2015

+1

@kirillplatonov
Copy link

+1

@kirillplatonov
Copy link

I forked and reverted this commit as temp solution. Maybe it will be helpful for you:

cd ~/.oh-my-zsh
git remote add git_fix git@github.com:kirillplatonov/oh-my-zsh.git
git fetch --all
git checkout git_fix/master

@ncanceill ncanceill mentioned this issue Jun 10, 2015
5 tasks
@ncanceill
Copy link
Contributor

Hi guys, and thanks for voicing your concerns.

I am the new maintainer of the Git plugin, and the one who (with help from many others contributors) put together this big update.

I have posted an answer in the PR thread, please check it out and discuss possible solutions over there.

In order to handle this, would you all be so kind as to make a list of all the aliases that you are missing. We know of gap (it was conflicting with a program) and the ones starting with gg (they were renamed), are there any other?

Once this is all dealt with, we can discuss how to improve the updating process so this does not happen again.

@opsidao
Copy link
Author

opsidao commented Jun 10, 2015

Hey @ncanceill,

I guess I will have to add that gap alias to my own aliases, besides that, if you bring the gg* bunch back I will be more than happy.

Thanks a lot!

@doomspork
Copy link

I may just be missing something but it seems that the functionality of ggpush changed when the alias was switched to ggp. For example, ggpush --force has worked for me but now I always get an error with ggp --force. However, git push origin a-branch-name --force works just fine:

➜  SampleApp git:(sample-branch) ✗ ggp --force
To git@github.com:doomspork/SampleApp.git
 ! [rejected]        sample-branch -> sample-branch (non-fast-forward)
error: failed to push some refs to 'git@github.com:doomspork/SampleApp.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

➜  SampleApp git:(sample-branch) ✗ git push origin sample-branch --force
Counting objects: 13, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (12/12), done.
Writing objects: 100% (13/13), 1.49 KiB | 0 bytes/s, done.
Total 13 (delta 9), reused 0 (delta 0)
To git@github.com:doomspork/SampleApp.git
 + 976defc...4ec7719 sample-branch -> sample-branch (forced update)

@ncanceill
Copy link
Contributor

@doomspork this may be related to what @heliostatic reported, can you check if the current_branch function works properly for you?

@iammichiel
Copy link
Contributor

+1.

I have read the entire other thread but I cannot see a single line of explanation as to why this change was made. All I see is an issue #1601 asking to add a default branch to those aliases.

And I cannot agree more with what was said, "we have a poor update process". As was suggested a couple of times, a deprecation warning would have been much better. Especially when working on some as spread as oh-my-zsh.

@ncanceill
Copy link
Contributor

There was a long debate on the form the gg* aliases should take, and every OMZ user (actually, every interested human being, really) has been welcome to voice their suggestions and concerns. Please keep in mind that OMZ is an open-source, community-driven project: together, we all make it and improve it. My strongest advice is: get involved!

This being said, the Git plugin update only shows that our update process is not suiting many users, and I will be working hard with all contributors to improve it. We already have many ideas, like a safe aliasing framework, an official mailing list to announce coming changes and deprecations, clear contributing guidelines, and an improved wiki... coming soon once the Git plugin issues are solved.

Once again, all suggestions are welcome!

Also, please notify me ASAP of anything else in the Git plugin that may be broken or missing! I am making a list here.

ncanceill added a commit to ncanceill/oh-my-zsh that referenced this issue Jun 11, 2015
@ncanceill ncanceill mentioned this issue Jun 11, 2015
8 tasks
@ncanceill
Copy link
Contributor

Everybody PLEASE report any trouble or missing alias to #3990, thank you!

@ncanceill
Copy link
Contributor

@doomspork actually you issue is unrelated to all the rest, it is a side-effect of the rewrite from aliases to functions. I will work on a fix and add this to #3990.

@doomspork
Copy link

@ncanceill thanks for the heads up. I really appreciate all the hard work you guys are doing 👍

@ncanceill
Copy link
Contributor

@doomspork thanks, really appreciate your support, also for forced push you now have ggf

@doomspork
Copy link

@ncanceill That's awesome and very useful to me, thanks! 🎉

@blueyed
Copy link
Contributor

blueyed commented Jun 11, 2015

also for forced push you now have ggf

I recommend removing this alias, and allow for ggp/ggpush to accept/handle the -f (given its potentially destructive outcome).

@ncanceill
Copy link
Contributor

@blueyed we know how you feel about destructive aliases, but given how much love this one is getting I do not think it should be removed. You can still unalias ggf in your .zshrc after sourcing OMZ if you really do not want it.

I will work on allowing options through ggp and ggl anyway.

@blueyed
Copy link
Contributor

blueyed commented Jun 11, 2015

ggf … given how much love this one is getting

I am not convinced this is the case.
And I just want to prevent someone accidentally force-pushing master because of some typo etc.
As for unaliasing this myself, I am using a fairly different git.plugin.zsh file myself anyway - so it's not a problem for myself.

@ncanceill
Copy link
Contributor

Anyone want to weigh in on this debate?

@doomspork
Copy link

👍 for ggf.

The f and p are not near one another on the keyboard, no one should "accidentally" type ggf when they mean ggp, silly to suggest so. If people are using aliases they don't understand then that is a problem the individual should resolve themselves.

@blueyed
Copy link
Contributor

blueyed commented Jun 11, 2015

@doomspork
It's not mainly about typing p instead of f (which are only two keys apart with Dvorak layout btw), but having some short alias for something that might happily cause problems.
I really think that ggp -f is good enough.

@zagraves
Copy link

I agree with @blueyed on ggp -f

@orendon
Copy link

orendon commented Jun 11, 2015

good to know, I wasn't aware of this change.

keep the good work @ncanceill

@iammichiel
Copy link
Contributor

And I agree on the -f option. Should not be part of the alias.

@ncanceill
Copy link
Contributor

OK what would you guys think about an option, properly documented in the plugin's ReadMe and wiki, that would either enable or disable potentially destructive aliases like ggf?

For those who agree, what should the default be?

@blueyed
Copy link
Contributor

blueyed commented Jun 12, 2015

OK what would you guys think about an option, properly documented in the plugin's ReadMe and wiki, that would either enable or disable potentially destructive aliases like ggf

I think it's not worth the effort, especially for aliases that only add -f.
Instead of then enabling this option (which should be off by default), you could just add your own alias for it. Maybe the wiki could just list some "recommended" aliases like this.

steshaw pushed a commit to steshaw/oh-my-zsh that referenced this issue Jun 13, 2015
Spirotot pushed a commit to Spirotot/oh-my-zsh that referenced this issue Jun 27, 2015
erwinvaneijk pushed a commit to erwinvaneijk/oh-my-zsh that referenced this issue Jul 7, 2015
torbjoernk added a commit to torbjoernk/oh-my-zsh that referenced this issue Jul 25, 2015
* master:
  virtualenvwrapper: Replace "realpath" with portable zsh-native `:A` and `:h` modifiers
  Plugin now uses completion script from docker-compose repo.
  git plugin: fix ggl to avoid empty string see ohmyzsh#2790 (comment)
  Fix plugin/git ggpull and ggpush backward compatibility
  Fix merge conflict for jira-prefix and jira add comment
  Add missing space causing parse error.
  Fixed odd chars on mac for agnoster theme
  Add mix-fast plugin (similar to rake-fast)
  Update _docker
  Adding quotes to git completion discovery path
  A paver (Python build and configuration utility) plugin
  Revert "Added migration notification for rails plugin"
  Added github in web_search plugin.
  last-working-dir working with spaces in dirnames
  use local options to set no_equals before sourcing bash completion script
  git plugin: new/changed aliases gaa was brought back by popular demand — see ohmyzsh#3535 gap was replaced with gapa — see ohmyzsh#3682 gdc was replaced with gdca — see ohmyzsh#3977
  Add reference to bundler plugin issue in README
  Add `leaves` command to `brew` completion
  remove trash command from osx plugin
  Added README.md file for ForkLift plugin
  Added README.md file for atom plugin
  Added README.md file
  Fix README.md for sst command
  Plugins: vi-mode: Add first README file
  Plugins: archlinux - add basic README.
  Plugins: archlinux - use command -v in favor of which
  Plugins: apache2-macports - add README
  Added references to the `external themes` wiki page.
  git plugin: fix ggpnp when called without argument also allow multiple arguments for ggp and ggl aliases
  * Added header with help and information * Moved git information to left prompt, with   support for:     * +ZSH_THEME_GIT_PROMPT_UNTRACKED, MODIFIED,     STASHED, ADDED, UPSTREAM STATUS     (if applicable) * Removed right prompt * Refactored following Google's guidelines for   scripts [ http://goo.gl/oJSXH2 ]     * Using local variables where applicable
  Update Mix complition upto 1.0.4
  Update aliases in laravel5.plugin.zsh file
  Update taskwarrior.plugin.zsh
  Renamed 'ss' alias to 'sstat' (to avoid collision with /bin/ss).
  Fixed typo in README
  Update bgnotify.plugin.zsh
  fix typo
  adb: add more commands
  Update README.markdown
  Fixed jump pluging to display the right mark name on 'mark . '
  Added README for mercurial plugin
  Add git to prerequisites
  add help link to install zsh
  sublime: Make subl a function so it can be called from functions in other modules
  Added support for detecting Sublime Text 3 on Arch Linux
  Update history-substring-search README
  Added the tugboat autocompletion plugin
  git plugin: make b local in gg* functions because it leaked, and led to ohmyzsh#3991
  git plugin: fix error msg in gwip alias because git rm will fail when no files were deleted
  git plugin: global var for git command due to issues like ohmyzsh#3962 until a proper plugin-loading system is implemented
  git plugin: bring back olg gg aliases by popular demand, see ohmyzsh#3972
  More run and create options
  Only load url-quote-magic if it is available. Partially fixes ohmyzsh#3614
  Disable globbing when executing `zeus rake` aliases to enable use of square brackets without escaping
  Add git_prompt_behind and git_prompt_exists
  add kitchen completion plugin from @petere
  Added a possibility to display the remote branch and the number of commits you are ahead or behind
  Fix homebrew directory in aws plugin.
  Recognize comments by default.
  Move custon *.zsh file sourcing up so that they can load plugins and other things that come after.
  added comment functionality
  Improved the `_git_time_since_commit` function.
  Remove docker insert command
  Add README for httpie plugin
  Fix typo in $VCS_CLEAN_COLOR in adben theme
  Grep bug in Agnoster
  generate with 'pod --completion-script' /cc thx to @ajmccall
  updated the command list to the latest cocoapod version (0.33.0)
  No input for Update Check defaults to Yes
  Add rdrs method to reset the database(s)
  Set AWS_PROFILE and use existing RPROMPT
  Add new boot2docker options
  Add installation instructions to README
  Round 3 of batch-closing obsolete issues
  Respect $ZSH_CACHE_DIR when creating fasd's cache
  Create new aliases for homebrew plugin
  Add sublime text 3 paths to check list
  Don't leak extendedglob to global environment.
  Detect the .venv in any parent directory of the current directory
  Add CakePHP3 plugin
  Differing upgrade and safe-upgrade
  Many updates to git plugin (see ohmyzsh#2790)
  Use $EDITOR
  Fix 'chsh' by checking '/etc/shells' instead of using 'which'
  Add alias of bundle clean
  Added aliases for docker compose
  add markdown extension to README
  Add readme and add new alias cfpc: paste+compile+copy
  Update template zshrc with HYPHEN_INSENSITIVE
  typofix
  Add coffeescript aliases: cf, cfc, cfp
  Add hyphen insensitivity
  Fixing some issues where show repeated weird values, and fixed commands that need the container autocomplete without being running, like start, now it autocompletes showing all the containers so you can start without knowing the right name
  Fix minimal.zsh-theme's check for in_svn and add support for mercurial
  Add autocomplete for frontend-search
  Fixes gradle autocomplete. Regex did not include subproject tasks before.
  fix stackoverflow url in search
  Use the newest Vundle commands
  Add stackoverflow link
  Fixed Typo.
  Use camelCase for npm aliases
  Fix echo nothing if $SHORT_HOST doesn't exist.
  Add .ipsw to the extract plugin.
  Minor cosmetic fix to minimal theme
  [boot2docker plugin] Initial version
  fix paclist() for non-english locales
  gitfast: back-port prompt fix
  gitfast: update to upstream v1.9.2
sparrc pushed a commit to sparrc/oh-my-zsh that referenced this issue Jul 27, 2015
DerToti pushed a commit to DerToti/oh-my-zsh that referenced this issue Jul 29, 2015
kirb pushed a commit to kirb/oh-my-zsh that referenced this issue Aug 23, 2015
ChristianLohmann pushed a commit to ChristianLohmann/oh-my-zsh that referenced this issue Aug 31, 2015
inutano pushed a commit to inutano/oh-my-zsh that referenced this issue Oct 19, 2015
tmitchell pushed a commit to tmitchell/oh-my-zsh that referenced this issue Mar 31, 2016
NobbZ pushed a commit to NobbZ/oh-my-zsh that referenced this issue May 15, 2016
DennisDenuto pushed a commit to DennisDenuto/oh-my-zsh that referenced this issue Oct 29, 2016
fforw pushed a commit to fforw/oh-my-zsh that referenced this issue Feb 21, 2017
Luxcium added a commit to LuxciumProject/ahmyzsh that referenced this issue 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
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.