mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-03 08:11:03 +02:00
43586: vcs_info git: Reformat to minimise next diff. No functional change.
This commit is contained in:
parent
abc94e8f6a
commit
a27fad1ae2
2 changed files with 17 additions and 2 deletions
|
@ -1,5 +1,9 @@
|
||||||
2018-10-07 Daniel Shahaf <d.s@daniel.shahaf.name>
|
2018-10-07 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||||
|
|
||||||
|
* 43586: Functions/VCS_Info/Backends/VCS_INFO_get_data_git:
|
||||||
|
vcs_info git: Reformat to minimise next diff. No functional
|
||||||
|
change.
|
||||||
|
|
||||||
* 43585: Functions/VCS_Info/Backends/VCS_INFO_get_data_svn:
|
* 43585: Functions/VCS_Info/Backends/VCS_INFO_get_data_svn:
|
||||||
vcs_info svn: Recognize working copies in need of an upgrade.
|
vcs_info svn: Recognize working copies in need of an upgrade.
|
||||||
|
|
||||||
|
|
|
@ -191,8 +191,19 @@ elif [[ -d "${gitdir}/rebase-merge" ]]; then
|
||||||
# pick/edit/fixup/squash/reword: Add "$hash $subject" to $git_patches_applied.
|
# pick/edit/fixup/squash/reword: Add "$hash $subject" to $git_patches_applied.
|
||||||
# exec: Add "exec ${command}" to $git_patches_applied.
|
# exec: Add "exec ${command}" to $git_patches_applied.
|
||||||
# (anything else): As 'exec'.
|
# (anything else): As 'exec'.
|
||||||
p=${p/(#s)(p|pick|e|edit|r|reword|f|fixup|s|squash) /}
|
case $p in
|
||||||
p=${p/(#s)x /exec }
|
((p|pick|e|edit|r|reword|f|fixup|s|squash)' '*)
|
||||||
|
# The line is of the form "pick $hash $subject".
|
||||||
|
# Just strip the verb and we're good to go.
|
||||||
|
p=${p#* }
|
||||||
|
;;
|
||||||
|
(x *)
|
||||||
|
# The line is of the form 'exec foo bar baz' where 'foo bar
|
||||||
|
# baz' is a shell command. There's no way to map _that_ to
|
||||||
|
# "$hash $subject", but I hope this counts as making an effort.
|
||||||
|
p=${p/x /exec }
|
||||||
|
;;
|
||||||
|
esac
|
||||||
git_patches_applied+=("$p")
|
git_patches_applied+=("$p")
|
||||||
done
|
done
|
||||||
if [[ -f "${patchdir}/git-rebase-todo" ]] ; then
|
if [[ -f "${patchdir}/git-rebase-todo" ]] ; then
|
||||||
|
|
Loading…
Reference in a new issue