Commit Graph

68 Commits

Author SHA1 Message Date
Daniel Carrillo 365a228b7f [git] Add git-squash function 2022-07-09 20:52:09 +02:00
Jim Boulter 1ff1099d05 Allow users to set a dirty-branch format 2022-04-01 10:36:35 -07:00
David Crook ecaed1cfa7 change polarity of test for BROWSER 2021-11-16 09:55:19 -08:00
Indrajit Raychaudhuri a3643f124e git: Optimize scripts for git helper functions
Optimize git internal calls and adjustment git helper functions to use
more idiomatic Zsh conventions avoiding external calls.
2021-05-21 13:40:49 -05:00
Indrajit Raychaudhuri efebe3efec git: Alias and function cleanup and formatting for clarity
Changes:
- Prefer longer form of git switch for better clarity.
- Move `-S` (`--gpg-sign`) in all the alias definitions to  the end to
  allow custom keyid.
- Simplify operations in helper functions git native calls.
- Apply minor reformatting and rearranging.
2021-05-21 13:40:49 -05:00
Zhiming Wang a132c1007a
git-info: use tab as separator for splitting ahead_and_behind (#902)
The current implementation is not tamper-proof against a modified IFS. See discussion in https://github.com/sorin-ionescu/prezto/pull/902 for details.
2020-06-29 10:26:36 -07:00
Yutian Li dd7a26e219 [git] Also check "commondir" when looking for a stash (#1620) 2018-09-15 09:35:48 -07:00
Diego Rabatone Oliveira b3c27bb164 Replace git with 'command git' (#1551)
to improve performance if git is aliased to hub or other wrappers.
2018-03-05 00:56:25 -08:00
Indrajit Raychaudhuri 043d09bbfe [git] Support short-code and improve completion in 'git-hub-shorten-url'
Changes:
- Add optional short-code support
- Improve completion for github.com URL (`http(s)://*.github.com` only)
- Return with non-zero exit code appropriately
2017-11-28 16:45:28 -08:00
Indrajit Raychaudhuri a60499f933 [general] Miscellaneous cleanup and formatting 2017-08-04 13:45:56 -05:00
Zhiming Wang d25b251ef7 git: Add revert to special action contexts
revert is very similar to cherry-pick and has a sequence variant.
2017-07-11 12:18:19 -07:00
Indrajit Raychaudhuri e6136a517b [git] Fix 'git-hub-shorten-url' helper
Changes:
- Use git.io over 'https'
- Add extra check to conform to *.github.com URLs
- Use built-in _urls function for completion
- Update readme with GitHub blog URL
2017-07-07 13:52:17 -07:00
Kaleb Elwert 7d5beeab51 Add comments into each of the function files to make them easier to find 2017-07-06 16:13:36 -07:00
Zhiming Wang 12d48dfcf9 Remove extra use of grep in git-hub-shorten-url (#904) 2017-04-04 21:36:28 -07:00
Sorin Ionescu d43bcb9720 Revert "Remove extra git-dir call in git-info and use git_dir variable instead"
This reverts commit 3012c0984b.
2014-12-08 18:21:00 -05:00
Yegor Pomortsev 3012c0984b Remove extra git-dir call in git-info and use git_dir variable instead 2014-11-12 19:19:19 -05:00
Sorin Ionescu a84ac5b002 Only one newline at end of file 2014-10-09 23:38:15 -04:00
Johannes Doerfert fedad8e9cf Fix git-info added/deleted count formatting typo
Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
2014-03-07 15:52:39 -05:00
Sorin Ionescu 39b88fe334 Remove the git-info SIGINT message
Users should read the Git module README on how to turn git-info on and
off.
2013-05-18 15:31:34 -04:00
Sorin Ionescu a7623aad6b [Fix #307] Do not auto-off git-info
Instead of turning off git-info when CTRL+C is caught, show instructions
on how to turn it off manually.
2013-05-18 15:31:34 -04:00
Sorin Ionescu db384b2ac6 Remove ununsed variable 2013-05-18 15:31:33 -04:00
Sorin Ionescu e836957e4f [Fix #221] Add a simple git-info 2013-05-18 15:31:32 -04:00
Sorin Ionescu 5306bab7ce [#221] Do not format undefined zstyles 2013-05-18 15:31:31 -04:00
Sorin Ionescu f3ae9dd82c Initialize ahead and behind local variables 2013-05-18 15:31:31 -04:00
Sorin Ionescu cfc95cd5ee [Fix #244] Add Git special action styles 2012-10-02 14:23:01 -04:00
Sorin Ionescu be300dbd80 [Fix #96] Add documentation for git 2012-10-02 13:01:46 -04:00
Sorin Ionescu 3f4d5fac0c Add zstyles for git-log formats 2012-10-02 13:01:46 -04:00
Sorin Ionescu 4c116cb4d2 Rename git-info zstyle patterns 2012-10-02 12:47:37 -04:00
Sorin Ionescu bd9327ca3f Rename the Git status ignore submodules zstyle pattern 2012-10-01 22:46:51 -04:00
Sorin Ionescu 8b8a883718 Add completion for Git submodule moving and removing 2012-09-30 15:53:26 -04:00
Sorin Ionescu 102da8bea0 Make sure that the current directory is a Git repository 2012-09-30 15:44:08 -04:00
Sorin Ionescu 6c1a81b5cf Return inside of the if statement 2012-09-29 23:37:28 -04:00
Sorin Ionescu 39a793af0a Simplify git-config calls 2012-09-29 23:17:39 -04:00
Sorin Ionescu 2bee82dc2a Fix a #compdef bug introduced in 7dd7859 2012-09-29 14:00:38 -04:00
Sorin Ionescu 26d3d16154 Add missing backslashes 2012-09-29 13:45:49 -04:00
Sorin Ionescu c6cdd47b24 Define variable expl as local 2012-09-29 13:42:31 -04:00
Sorin Ionescu b0a71cae3c Load dependencies in Git init 2012-09-29 13:07:31 -04:00
Sorin Ionescu eb0856d2f5 Add a missing '.' 2012-09-25 01:47:23 -04:00
Sorin Ionescu deeb115ae2 Add Git submodule moving and removing 2012-09-25 01:31:08 -04:00
Sorin Ionescu 9785454938 Rename git-hub-short-url to git-hub-shorten-url 2012-09-25 01:31:08 -04:00
Sorin Ionescu 7dd78595ae Rename git-hub to git-hub-browse 2012-09-25 01:31:08 -04:00
Sorin Ionescu e43f2b2659 Add support for browsing GitHub tags 2012-09-25 01:31:08 -04:00
Sorin Ionescu 224dc2eaff Use Git porcelain commands in git-hub 2012-09-25 01:31:08 -04:00
Sorin Ionescu 3d5e302777 [Fix #245] Merge trap into helper 2012-09-08 19:23:39 -04:00
Sorin Ionescu ac04921afa Clarify info functions descriptions 2012-09-06 23:17:38 -04:00
Sorin Ionescu fb9a20591f [Fix #197] Rebrand as Prezto
Conflicts:
	README.md
	runcoms/zshenv
2012-09-03 16:51:27 -04:00
Sorin Ionescu a952a60362 Fix a syntax error introduced in bf654dd 2012-08-28 23:58:09 -04:00
Sorin Ionescu bf654dde09 Improve the readability of _git-action 2012-08-27 21:37:04 -04:00
Sorin Ionescu 8d7f785ea9 Remove the unnecessary action local variable 2012-08-27 20:40:16 -04:00
Sorin Ionescu 722353130e Detect the sequenced Git cherry picking action 2012-08-27 20:38:23 -04:00