mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-11-30 20:33:14 +01:00
feat(git): add gan and ganpa aliases for git add --intent-to-add
`gapa` only offers hunks from tracked files. `ganpa` marks untracked files with intent-to-add first, so new files show up in the patch prompt too. It needs the `.` pathspec, since `git add --intent-to-add` with no path adds nothing. Reapplies #13609, with the pathspec fix from review. Co-Authored-By: Charles Dunda <241828233+cdunda-perchwell@users.noreply.github.com> Co-Authored-By: Karl Horky <1935696+karlhorky@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b5cb2fe952
commit
02e5c89d20
2 files changed
+4
No files matched your search
@@ -18,6 +18,8 @@ plugins=(... git)
|
||||
| `g` | `git` |
|
||||
| `ga` | `git add` |
|
||||
| `gaa` | `git add --all` |
|
||||
| `gan` | `git add --intent-to-add` |
|
||||
| `ganpa` | `git add --intent-to-add . && git add --patch` |
|
||||
| `gapa` | `git add --patch` |
|
||||
| `gau` | `git add --update` |
|
||||
| `gav` | `git add --verbose` |
|
||||
|
||||
Reference in new issue
Block a user