mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 05:16:05 +01:00
unposted: vcs_info git: Teach the rebase-apply test case generator to also generate rebase-merge test cases
This commit is contained in:
parent
10ee9e5bd7
commit
75c3664a62
3 changed files with 17 additions and 1 deletions
|
@ -1,5 +1,10 @@
|
|||
2022-01-29 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* unposted: Functions/VCS_Info/test-repo-git-rebase-apply,
|
||||
Functions/VCS_Info/test-repo-git-rebase-merge: vcs_info git:
|
||||
Teach the rebase-apply test case generator to also generate
|
||||
rebase-merge test cases
|
||||
|
||||
* unposted: Functions/VCS_Info/Backends/VCS_INFO_get_data_git:
|
||||
vcs_info git: Add a missing guard against redefining a function.
|
||||
|
||||
|
|
|
@ -44,6 +44,16 @@ append_lines 7 8 9
|
|||
# Specify a rebase that would create the history [1,3,4,5,6,7,8,9].
|
||||
# This will conflict because r7 depends on r2 which is not included.
|
||||
git checkout -b myref
|
||||
git rebase --onto=rebase_onto_this rebase_from_this myref
|
||||
case $0:P in
|
||||
(*/test-repo-git-rebase-apply)
|
||||
git rebase --onto=rebase_onto_this rebase_from_this myref
|
||||
;;
|
||||
(*/test-repo-git-rebase-merge)
|
||||
git -c core.editor=true rebase -i --onto=rebase_onto_this rebase_from_this myref
|
||||
;;
|
||||
(*)
|
||||
echo >&2 "$0: unrecognized basename"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
|
|
1
Functions/VCS_Info/test-repo-git-rebase-merge
Symbolic link
1
Functions/VCS_Info/test-repo-git-rebase-merge
Symbolic link
|
@ -0,0 +1 @@
|
|||
test-repo-git-rebase-apply
|
Loading…
Reference in a new issue