mirror of
https://github.com/git/git.git
synced 2026-01-28 03:22:25 +00:00
Merge 'sequencer-i' into HEAD
This commit is contained in:
1107
sequencer.c
1107
sequencer.c
File diff suppressed because it is too large
Load Diff
@@ -7,7 +7,8 @@ const char *git_path_seq_dir(void);
|
||||
|
||||
enum replay_action {
|
||||
REPLAY_REVERT,
|
||||
REPLAY_PICK
|
||||
REPLAY_PICK,
|
||||
REPLAY_INTERACTIVE_REBASE
|
||||
};
|
||||
|
||||
struct replay_opts {
|
||||
@@ -23,6 +24,7 @@ struct replay_opts {
|
||||
int allow_empty;
|
||||
int allow_empty_message;
|
||||
int keep_redundant_commits;
|
||||
int verbose;
|
||||
|
||||
int mainline;
|
||||
|
||||
|
||||
@@ -237,6 +237,22 @@ test_expect_success 'retain authorship' '
|
||||
git show HEAD | grep "^Author: Twerp Snog"
|
||||
'
|
||||
|
||||
test_expect_success 'retain authorship w/ conflicts' '
|
||||
git reset --hard twerp &&
|
||||
test_commit a conflict a conflict-a &&
|
||||
git reset --hard twerp &&
|
||||
GIT_AUTHOR_NAME=AttributeMe \
|
||||
test_commit b conflict b conflict-b &&
|
||||
set_fake_editor &&
|
||||
test_must_fail git rebase -i conflict-a &&
|
||||
echo resolved >conflict &&
|
||||
git add conflict &&
|
||||
git rebase --continue &&
|
||||
test $(git rev-parse conflict-a^0) = $(git rev-parse HEAD^) &&
|
||||
git show >out &&
|
||||
grep AttributeMe out
|
||||
'
|
||||
|
||||
test_expect_success 'squash' '
|
||||
git reset --hard twerp &&
|
||||
echo B > file7 &&
|
||||
|
||||
Reference in New Issue
Block a user