On Mon, 30 May 2005, Dave Jones wrote: > > GIT_AUTHOR_NAME="John Doe" \ > GIT_AUTHOR_EMAIL="jdoe@foo.com" \ > git-commit-tree `git-write-tree` \ > -p $(cat .git/HEAD ) \ > < changelog.txt \ > > .git/HEAD You _really_ want to script this. Also, I'd seriously suggest you avoid using ".git/HEAD" _and_ writing to .git/HEAD in the same command. Maybe it works, maybe it doesn't. So script it with something like #!/bin/sh export GIT_AUTHOR_NAME="$1" export GIT_AUTHOR_EMAIL="$2" tree=$(git-write-tree) || exit 1 commit=$(git-commit-tree $tree -p HEAD) || exit 1 echo $commit > .git/HEAD and now you can just do commit-as "John Doe" "jdoe@foo.com" < changelog.txt or something like that. The git commands really are designed to be scripted. Linus - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Tue May 31 10:50:45 2005
This archive was generated by hypermail 2.1.8 : 2005-05-31 10:50:46 EST