Last active
January 5, 2019 00:11
-
-
Save mgoodness/3f99876a9422525b23725061ba83c517 to your computer and use it in GitHub Desktop.
Revisions
-
mgoodness revised this gist
Jan 5, 2019 . 1 changed file with 12 additions and 12 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,16 +1,16 @@ git-rebase-preserve-author() { git rebase --preserve-merges $1 root_dir=(git rev-parse --show-toplevel) while [[ -f ${root_dir}/.git/rebase-merge/stopped-sha ]]; do stopped_sha=(cat ${root_dir}/.git/rebase-merge/stopped-sha) git_author_string=(git show -s --format='%an <%ae>' ${stopped_sha}) for c in (git diff --name-only --diff-filter=U); do eval ${EDITOR} ${root_dir}/$c done git commit --all--author=${git_author_string} git rebase --continue done } -
mgoodness revised this gist
Jan 4, 2019 . 2 changed files with 16 additions and 16 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 @@ -0,0 +1,16 @@ #!/usr/bin/env bash git rebase --preserve-merges $1 root_dir=(git rev-parse --show-toplevel) while [[ -f ${root_dir}/.git/rebase-merge/stopped-sha ]]; do stopped_sha=(cat ${root_dir}/.git/rebase-merge/stopped-sha) git_author_string=(git show -s --format='%an <%ae>' ${stopped_sha}) for c in (git diff --name-only --diff-filter=U); do eval ${EDITOR} ${root_dir}/$c done git commit --all--author=${git_author_string} git rebase --continue done 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,16 +0,0 @@ -
mgoodness created this gist
Jan 4, 2019 .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,16 @@ git-rebase-preserve-author() { git rebase --preserve-merges $1 root_dir=(git rev-parse --show-toplevel) while [[ -f ${root_dir}/.git/rebase-merge/stopped-sha ]]; do stopped_sha=(cat ${root_dir}/.git/rebase-merge/stopped-sha) git_author_string=(git show -s --format='%an <%ae>' ${stopped_sha}) for c in (git diff --name-only --diff-filter=U); do eval ${EDITOR} ${root_dir}/$c done git commit --all--author=${git_author_string} git rebase --continue done }