1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-11-16 08:31:13 +00:00
Commit Graph

47 Commits

Author SHA1 Message Date
hidekuro
c4a8f446c6 git: Use update instead of foreach in alias 'gSu'
Modern `git` can use `submodule` option `update` instead of `foreach`
to achieve approximately similar outcome.

To allows call without assuming that all submodules will have default
branch as `master`, the preferred approach would be to call
`git submodule update --remote --recursive` after registering the
correct branch for submodule in `.gitmodules`:

```
git config -f .gitmodules submodule.<path>.branch <branch>
```

For more discussion, see: https://stackoverflow.com/a/33835815

Signed-off-by: Indrajit Raychaudhuri <irc@indrajit.com>
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
hidekuro
20a78c04e5
Remove --all from git alias glg (#1853) 2020-06-29 10:23:08 -07:00
Diego Rabatone Oliveira
649c0e4561 [git] Add git pull autostash alias
Adds the gfma and gfra aliases with the `--autostash` flag.
2020-05-14 15:19:03 -03:00
Kaleb Elwert
eee3c9c166 git: add documentation for new aliases 2018-12-13 10:51:56 -08:00
Bruno Oliveira da Silva
39e1a63349 Aliases to digital sign/verify commits and tags (#651) 2018-12-13 10:43:23 -08:00
François VANTOMME
1b441e7654 Feat (git): add an alias displaying the commits yet to be applied to upstream (#1565) 2018-04-04 15:20:21 -07:00
Rick Jones
4325f74f9d git: add tag aliases
Originally submitted in https://github.com/sorin-ionescu/prezto/pull/1094
2018-02-21 13:48:51 -08:00
Khai Do
ebae698f70 change alias to gfcr 2017-07-11 12:10:18 -07:00
Khai Do
d69070268a add alias for cloning a repo including all submodules 2017-07-11 12:10:18 -07:00
Ihab Soliman
a75c63768c Add git aliases for signing commits (#1126) 2017-06-19 01:40:44 -07:00
Kyle Rich
3d7a8c2870 Add some new git aliases, modify a few more. (#1301)
* Add some new git aliases, modify a few more.
* Add `gbV` command to show more verbose git branch info.
* Add `gcam` to make it possible to execute `gca; gcm '<your message
  here>'` more simply.
* Add `gii` command to temporarily untrack (ignore) a file.
* Add `giI` command to uningore a file.
* Change alias of `gbl` to `gbv`. Personally, I think aliases that
  include a switch in the command should include the switch in the alias
  if possible.  This makes them easier to remember.
* Change alias of `gbL` to `gba`. I think the `-a` switch is more
  salient to what this alias does than the `-v`.  Furthermore, with this
  PR there are already `gbv` and `gbV` aliases, so those are out.
* Change implementation of `gCl` alias to use built-in capabilities of
  git, rather than sed.
* Rename gbx and gbX to gbd and gbD respectively
* Mostly revert alias changes
* Add gbr and gbR aliases to gbm and gbM commands
2017-05-01 09:41:17 -07:00
Sudarshan Wadkar
f15557159a New alias gfa=git fetch --all for git module
Also includes an updated README.md !
2017-04-18 02:44:01 -07:00
François Vantomme
fb6f3f7ee9 Feat (aliases): add aliases for git flow 2017-04-13 02:23:05 -07:00
Eduardo San Martin Morote
c0049855c5 Added option to skip git aliases definition
Fixes #947
2017-04-04 23:43:46 -07:00
Justin Filip
ddfc870f9a Use less destructive git push --force-with-lease. 2017-04-04 22:06:57 -07:00
Milan Milanov
17a6124b43 Fix git log pretty format argument 2014-10-18 16:32:49 +02:00
Sorin Ionescu
a84ac5b002 Only one newline at end of file 2014-10-09 23:38:15 -04:00
Sorin Ionescu
75c0d49f56 Swap aliases gsd and gsL 2013-05-18 15:31:33 -04:00
Sorin Ionescu
d4e78d427a Rename alias gRc to gRp 2013-05-18 15:31:32 -04:00
Sorin Ionescu
05a6653284 Sort Git conflict aliases 2013-04-25 00:19:33 -04:00
Sorin Ionescu
14da495193 [Fix #349] Display diff when committing 2013-01-12 11:28:33 -05:00
Sorin Ionescu
bb6b590919 [Fix #360] Set alias giR to reset the index interactively 2013-01-12 11:25:06 -05:00
Sorin Ionescu
1d0b0e2e9b [Fix #357] Set alias gcO to check out hunks interactively 2013-01-03 13:13:46 -05:00
Sorin Ionescu
c737369083 Add an alias to ammend a git commit, including the message 2012-12-20 19:49:07 -05:00
Sorin Ionescu
3f4d5fac0c Add zstyles for git-log formats 2012-10-02 13:01:46 -04:00
Sorin Ionescu
5b2dcb8844 Rename gk prefixed aliases to gC 2012-10-02 13:01:39 -04:00
Sorin Ionescu
bd9327ca3f Rename the Git status ignore submodules zstyle pattern 2012-10-01 22:46:51 -04:00
Sorin Ionescu
768c9d6ad3 Rename aliases gSu to gSI and gSU to gSu 2012-10-01 08:44:04 -04:00
Sorin Ionescu
0899dd4d38 Rename the alias gsc to gsX 2012-10-01 08:44:04 -04:00
Sorin Ionescu
770737bd83 Remove the gig alias
It escaped removal in 7b453c1.
2012-10-01 08:44:04 -04:00
Sorin Ionescu
6cf368cf4d Silence git-branch-current in aliases 2012-09-30 15:44:09 -04:00
Sorin Ionescu
7b453c1073 Add git-grep aliases 2012-09-25 01:31:09 -04:00
Sorin Ionescu
003ca8365b Add an alias for stashing the Git working copy 2012-09-25 01:31:09 -04:00
Sorin Ionescu
deeb115ae2 Add Git submodule moving and removing 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
935e6a5060 Show references in Git one line and graph formats 2012-08-31 21:08:46 -04:00
Sorin Ionescu
2b186900cb Improve Git submodule updating aliases 2012-06-23 14:03:25 -04:00
Sorin Ionescu
a4cf629c2f Refactor the listing of lost Git commits 2012-05-21 17:25:36 -04:00
Sorin Ionescu
f932fa792e Add the ability to recover dropped Git stashes 2012-05-21 17:22:49 -04:00
Sorin Ionescu
00394b6069 Rename git-current-branch to git-branch-current 2012-05-21 16:12:03 -04:00
Sorin Ionescu
0cd33ca694 [Fix #169] Ask for confirmation when executing gsc 2012-05-08 22:37:24 -04:00
Sorin Ionescu
ea19b5e6a7 Add an alias to git show-branch 2012-04-15 10:38:42 -04:00
Sorin Ionescu
9f0336b9d8 Remove '--mixed' from the 'gir' alias
Fix a bug introduced in d4a5bed.

Though '--mixed' is the default for 'git reset', using it with paths
returns the following warning.

warning: --mixed with paths is deprecated; use 'git reset -- <paths>'
instead.
2012-04-09 17:45:32 -04:00
Sorin Ionescu
c6793d38b9 [#23] Remove unnecessary compdef calls 2012-04-08 15:07:14 -04:00
Sorin Ionescu
e2859daba4 [#23] Prevent errors when completion is disabled 2012-04-08 15:07:14 -04:00
Sorin Ionescu
a7340886b3 [#23] Rename plugins to modules 2012-04-05 13:39:40 -04:00