-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle the case where we have - base - 1.md 2.md a - 1.md 2.md 3.md b - 1.md In this case the file was deleted in 2.md and should not appear in the final merged entries. This represents a common case where the file was deleted in the remote branch but not locally. Fixes GitJournal/GitJournal#962
- Loading branch information
Showing
16 changed files
with
123 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import 'package:test/test.dart'; | ||
|
||
import 'common.dart'; | ||
|
||
void main() { | ||
late GitCommandSetupResult s; | ||
|
||
setUpAll(() async { | ||
s = await gitCommandTestFixtureSetupAll('merge-delete'); | ||
}); | ||
|
||
setUp(() async => gitCommandTestSetup(s)); | ||
|
||
var commands = [ | ||
'merge del2', | ||
]; | ||
|
||
for (var command in commands) { | ||
test( | ||
command, | ||
() async => testGitCommand(s, command, ignoreOutput: true, env: { | ||
'GIT_AUTHOR_DATE': '2020-02-15T09:08:07.000Z', | ||
'GIT_AUTHOR_NAME': 'Vishesh Handa', | ||
'GIT_AUTHOR_EMAIL': '[email protected]', | ||
'GIT_COMMITTER_DATE': '2020-02-15T09:08:07.000Z', | ||
'GIT_COMMITTER_NAME': 'Vishesh Handa', | ||
'GIT_COMMITTER_EMAIL': '[email protected]', | ||
})); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
// import 'package:test/test.dart'; | ||
import 'package:test/test.dart'; | ||
|
||
// import 'common.dart'; | ||
import 'common.dart'; | ||
|
||
void main() { | ||
/* | ||
late GitCommandSetupResult s; | ||
|
||
setUpAll(() async { | ||
|
@@ -31,7 +30,6 @@ void main() { | |
'GIT_COMMITTER_EMAIL': '[email protected]', | ||
})); | ||
} | ||
*/ | ||
} | ||
|
||
// FIXME: We aren't taking directories into account! | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ref: refs/heads/main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[core] | ||
repositoryformatversion = 0 | ||
filemode = true | ||
bare = false | ||
logallrefupdates = true | ||
ignorecase = true | ||
precomposeunicode = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Unnamed repository; edit this file 'description' to name the repository. |
Binary file not shown.
Binary file added
BIN
+1.29 KB
.../data/merge-delete/.gitted/objects/pack/pack-658dda105e10610dfa100591e3529ecb81effa6c.idx
Binary file not shown.
Binary file added
BIN
+580 Bytes
...data/merge-delete/.gitted/objects/pack/pack-658dda105e10610dfa100591e3529ecb81effa6c.pack
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# pack-refs with: peeled fully-peeled sorted | ||
138451d299ab7dfdb8ad27bc37098d953cb09a3c refs/heads/del2 | ||
f6fde458426a0eb55fe19b74eb4d12f877b8f40a refs/heads/main |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters