{"thread":{"id":"4843","subject":"[PATCH] Log ref changes made by quiltimport.","startedAt":"2006-07-11T06:10:19Z","lastAt":"2006-07-11T06:10:19Z","messageCount":1,"participants":["Shawn Pearce"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"23616","messageId":"20060711061019.GA11822@spearce.org","threadId":"4843","inReplyTo":null,"subject":"[PATCH] Log ref changes made by quiltimport.","fromName":"Shawn Pearce","fromEmail":"spearce@spearce.org","sentAt":"2006-07-11T06:10:19Z","receivedAt":"2006-07-11T06:10:19Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"When importing a quilt patch to a branch which has a reflog record\nthe update to HEAD with a log message indicating the change was\nmade by quiltimport and what patch caused the change.\n\nSigned-off-by: Shawn O. Pearce <spearce@spearce.org>\n---\n Aside from git-resolve and git-clone this is the last shell script\n which didn't include a log message when invoking update-ref.  So\n here it is.  :-)\n\n git-quiltimport.sh |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/git-quiltimport.sh b/git-quiltimport.sh\nindex 86b51ab..9f16e18 100755\n--- a/git-quiltimport.sh\n+++ b/git-quiltimport.sh\n@@ -112,7 +112,7 @@ for patch_name in $(cat \"$QUILT_PATCHES/\n \t\tgit-apply --index -C1 \"$tmp_patch\" &&\n \t\ttree=$(git-write-tree) &&\n \t\tcommit=$((echo \"$SUBJECT\"; echo; cat \"$tmp_msg\") | git-commit-tree $tree -p $commit) &&\n-\t\tgit-update-ref HEAD $commit || exit 4\n+\t\tgit-update-ref -m \"quiltimport: $patch_name\" HEAD $commit || exit 4\n \tfi\n done\n rm -rf $tmp_dir || exit 5\n-- \n1.4.1.gc48f\n"}]}