Jim Boulter
0df602b6c0
Allow users to set a dirty-branch format
3 years ago
Indrajit Raychaudhuri
050f906f03
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.
4 years ago
Indrajit Raychaudhuri
5b32fa6962
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.
4 years ago
Zhiming Wang
9f07e3db72
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.
4 years ago
Yutian Li
b8f7a14daa
[git] Also check "commondir" when looking for a stash ( #1620 )
6 years ago
Diego Rabatone Oliveira
0ce0659709
Replace git with 'command git' ( #1551 )
...
to improve performance if git is aliased to hub or other wrappers.
7 years ago
Zhiming Wang
d25b251ef7
git: Add revert to special action contexts
...
revert is very similar to cherry-pick and has a sequence variant.
7 years ago
Sorin Ionescu
d43bcb9720
Revert "Remove extra git-dir call in git-info and use git_dir variable instead"
...
This reverts commit 3012c0984b
.
10 years ago
Yegor Pomortsev
3012c0984b
Remove extra git-dir call in git-info and use git_dir variable instead
10 years ago
Sorin Ionescu
a84ac5b002
Only one newline at end of file
10 years ago
Johannes Doerfert
fedad8e9cf
Fix git-info added/deleted count formatting typo
...
Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
11 years ago
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.
12 years ago
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.
12 years ago
Sorin Ionescu
db384b2ac6
Remove ununsed variable
12 years ago
Sorin Ionescu
e836957e4f
[ Fix #221 ] Add a simple git-info
12 years ago
Sorin Ionescu
5306bab7ce
[ #221 ] Do not format undefined zstyles
12 years ago
Sorin Ionescu
f3ae9dd82c
Initialize ahead and behind local variables
12 years ago
Sorin Ionescu
cfc95cd5ee
[ Fix #244 ] Add Git special action styles
12 years ago
Sorin Ionescu
be300dbd80
[ Fix #96 ] Add documentation for git
12 years ago
Sorin Ionescu
4c116cb4d2
Rename git-info zstyle patterns
12 years ago
Sorin Ionescu
bd9327ca3f
Rename the Git status ignore submodules zstyle pattern
12 years ago
Sorin Ionescu
b0a71cae3c
Load dependencies in Git init
12 years ago
Sorin Ionescu
3d5e302777
[ Fix #245 ] Merge trap into helper
12 years ago
Sorin Ionescu
ac04921afa
Clarify info functions descriptions
12 years ago
Sorin Ionescu
fb9a20591f
[ Fix #197 ] Rebrand as Prezto
...
Conflicts:
README.md
runcoms/zshenv
12 years ago
Sorin Ionescu
a952a60362
Fix a syntax error introduced in bf654dd
12 years ago
Sorin Ionescu
bf654dde09
Improve the readability of _git-action
12 years ago
Sorin Ionescu
8d7f785ea9
Remove the unnecessary action local variable
12 years ago
Sorin Ionescu
722353130e
Detect the sequenced Git cherry picking action
12 years ago
Sorin Ionescu
d3cad0721b
Remove 'prompt' from the Git position zstyle
13 years ago
Sorin Ionescu
aa925d22b4
[ Fix #170 ] Remove Git stash count leading spaces
13 years ago
Sorin Ionescu
3c084f57bb
[ #169 ] Move _git-dir out of git-info into git-dir
13 years ago
Sorin Ionescu
73f22c2a32
Revert "[ Fix #64 ] Remove the clean git-info style"
...
This reverts commit a06f13f036
.
Conflicts:
modules/git/functions/git-info
plugins/git/style.zsh
13 years ago
Colin Hebert
5b6855e3eb
Always format Git dirty
13 years ago
Sorin Ionescu
aa0c1faa19
[ Fix #88 ] Allow arbitrary git-info formats
...
The terms 'prompt' and 'rprompt' are not always appropriate.
A multi-line theme may choose 'line-one' and 'line-two' instead.
@ColinHebert contributed to this commit.
13 years ago
Sorin Ionescu
c9b8ad569d
Convert add-zsh-trap into a module
13 years ago
Sorin Ionescu
d13b697792
Simplify Git submodule ignore settings
13 years ago
Sorin Ionescu
68dd3109fc
Move Git zstyles into the git-info header comment
13 years ago
Sorin Ionescu
48dcd2f723
Shorten git zstyle namespace
13 years ago
Sorin Ionescu
a7340886b3
[ #23 ] Rename plugins to modules
13 years ago
Colin Hebert
568830cf02
Add a style that shows the HEAD position
...
Show the HEAD position in relation to the nearest branch, remote, tag.
13 years ago
Colin Hebert
c435dca233
Use git-rev-parse to get the git directory path
13 years ago
Sorin Ionescu
a06f13f036
[ Fix #64 ] Remove the clean git-info style
...
Free up `%C` by using `%(D.clean.dirty:%D)` instead.
13 years ago
Colin Hebert
11f3d2c5ae
[ Fix #40 ] Use Git porcelain commands
13 years ago
Sorin Ionescu
6a9a4ea8d6
[ Fix #60 ] Do not use parentheses in function names
13 years ago
Sorin Ionescu
854c67ada4
Format clean when the Git repository is not dirty
13 years ago
Sorin Ionescu
5e5a7803b6
Fix a formatting bug introduced in cdb95f8
13 years ago
Colin Hebert
7d08a49432
[ Fix #37 ] Improve Git status parsing
13 years ago
Colin Hebert
cdb95f810f
[ Fix #41 ] Do not truncate the commit id
13 years ago
Colin Hebert
514aaa014b
[ Fix #42 ] Count dirty files in Git repositories
13 years ago