View Single Post
Old 10-15-2014, 02:12 PM   #1051
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,956
Karma: 6361444
Join Date: Nov 2009
Device: many
Hi,

Thanks for the help, but I would need to do that for each of the 60 commits so I might as well just erase the whole thing and start again since setting the author for each commit is needed, right? It would be safer I think anyway.

Also, can you assign more than 1 author for a single commit?

Thanks,

KevinH


Quote:
EDIT: Never mind, in my test it seems as though amending a commit makes it more fussy.
fatal: Malformed ident string: 'Adam Selene <> 1268438400 +0000'

EDIT #2: use this to "amend" a commit by undoing the commit, recommitting using the saved EDITMSG, then continuing rebase:

Code:
git undo-commit && git commit --author="Adam Selene <>" -m "$(cat .git/COMMIT_EDITMSG)" && git rebase --continue
...
...
Assumes you have created the following alias (should be git builtin):
Code:
# revert "git commit", leaving you with staged changes.
git config --global alias.undo-commit 'reset --soft HEAD^'
KevinH is online now   Reply With Quote