Last active
August 29, 2015 14:19
-
-
Save bmcorser/9f73a4a7b428a65cd26b to your computer and use it in GitHub Desktop.
Revisions
-
bmcorser revised this gist
Apr 24, 2015 . 1 changed file with 4 additions and 26 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,26 +1,4 @@ git log --format=%H > git-log shuf git-log > git-log-shuf git rev-list --no-walk $(< git-log-shuf) > git-rev-list diff git-log git-rev-list -
bmcorser renamed this gist
Apr 23, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
bmcorser revised this gist
Apr 23, 2015 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,25 +1,25 @@ $ git log --format=%H > git-log # normal log $ cat git-log b4da36d7eb5e4f167bd269ec29c3f26e8f799c9e 34283291e1f2e71f8540d03b2c73eb2b04bbc1aa 35b8a229a984ef99841eb701da9258abf4a4ce60 3dcd39064a39c4a49c4439402c2a9b9dd26b38ef b2f524d66720671d4a16ba35f88bf20c3830479c $ shuf git-log > git-log-shuf # shuffle the log $ cat git-log-shuf b4da36d7eb5e4f167bd269ec29c3f26e8f799c9e b2f524d66720671d4a16ba35f88bf20c3830479c 3dcd39064a39c4a49c4439402c2a9b9dd26b38ef 34283291e1f2e71f8540d03b2c73eb2b04bbc1aa 35b8a229a984ef99841eb701da9258abf4a4ce60 $ git rev-list --no-walk $(< git-log-shuf) > git-rev-list # pass shuffled log to rev-list cat git-rev-list b4da36d7eb5e4f167bd269ec29c3f26e8f799c9e 34283291e1f2e71f8540d03b2c73eb2b04bbc1aa 35b8a229a984ef99841eb701da9258abf4a4ce60 b2f524d66720671d4a16ba35f88bf20c3830479c 3dcd39064a39c4a49c4439402c2a9b9dd26b38ef $ diff git-log git-rev-list # why is it different? 4d3 < 3dcd39064a39c4a49c4439402c2a9b9dd26b38ef 5a5 -
bmcorser created this gist
Apr 23, 2015 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ $ git log --format=%H > git-log $ cat git-log b4da36d7eb5e4f167bd269ec29c3f26e8f799c9e 34283291e1f2e71f8540d03b2c73eb2b04bbc1aa 35b8a229a984ef99841eb701da9258abf4a4ce60 3dcd39064a39c4a49c4439402c2a9b9dd26b38ef b2f524d66720671d4a16ba35f88bf20c3830479c $ shuf git-log > git-log-shuf $ cat git-log-shuf b4da36d7eb5e4f167bd269ec29c3f26e8f799c9e b2f524d66720671d4a16ba35f88bf20c3830479c 3dcd39064a39c4a49c4439402c2a9b9dd26b38ef 34283291e1f2e71f8540d03b2c73eb2b04bbc1aa 35b8a229a984ef99841eb701da9258abf4a4ce60 $ git rev-list --no-walk $(< git-log-shuf) > git-rev-list cat git-rev-list b4da36d7eb5e4f167bd269ec29c3f26e8f799c9e 34283291e1f2e71f8540d03b2c73eb2b04bbc1aa 35b8a229a984ef99841eb701da9258abf4a4ce60 b2f524d66720671d4a16ba35f88bf20c3830479c 3dcd39064a39c4a49c4439402c2a9b9dd26b38ef $ diff git-log git-rev-list 4d3 < 3dcd39064a39c4a49c4439402c2a9b9dd26b38ef 5a5 > 3dcd39064a39c4a49c4439402c2a9b9dd26b38ef