-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
79 additions
and
0 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
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,49 @@ | ||
$ export RUST_BACKTRACE=1 | ||
$ git init -q 1> /dev/null | ||
|
||
$ echo contents1 > file1 | ||
$ git add . | ||
$ git commit -m "add file1" 1> /dev/null | ||
|
||
$ git log --graph --pretty=%s | ||
* add file1 | ||
|
||
$ git checkout -b branch2 | ||
Switched to a new branch 'branch2' | ||
|
||
$ echo contents2 > file1 | ||
$ git add . | ||
$ git commit -m "mod file1" 1> /dev/null | ||
|
||
$ echo contents3 > file3 | ||
$ git add . | ||
$ git commit -m "mod file3" 1> /dev/null | ||
|
||
$ git checkout master | ||
Switched to branch 'master' | ||
|
||
$ echo contents3 > file2 | ||
$ git add . | ||
$ git commit -m "add file2" 1> /dev/null | ||
|
||
$ git merge -q branch2 --no-ff | ||
|
||
$ git log --graph --pretty=%H | ||
* 1d69b7d2651f744be3416f2ad526aeccefb99310 | ||
|\ | ||
| * 86871b8775ad3baca86484337d1072aa1d386f7e | ||
| * 975d4c4975912729482cc864d321c5196a969271 | ||
* | e707f76bb6a1390f28b2162da5b5eb6933009070 | ||
|/ | ||
* 0b4cf6c9efbbda1eada39fa9c1d21d2525b027bb | ||
|
||
$ josh-filter -s :start=0b4cf6c9efbbda1eada39fa9c1d21d2525b027bb[:prefix=x] --update refs/heads/filtered | ||
|
||
$ git log --graph --decorate --pretty=%H refs/heads/filtered | ||
* 1d69b7d2651f744be3416f2ad526aeccefb99310 | ||
|\ | ||
| * 86871b8775ad3baca86484337d1072aa1d386f7e | ||
| * 975d4c4975912729482cc864d321c5196a969271 | ||
* | e707f76bb6a1390f28b2162da5b5eb6933009070 | ||
|/ | ||
* 0b4cf6c9efbbda1eada39fa9c1d21d2525b027bb |