Log ref changes made by quiltimport.
When importing a quilt patch to a branch which has a reflog record the update to HEAD with a log message indicating the change was made by quiltimport and what patch caused the change. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Shawn Pearce committed
Jul 11, 2006 at 02:10 UTC
09a28eccce58d349d93280fd3ac08c5ad0eaa3c5
1 file changed
+1
-1
git-quiltimport.sh
+1
-1
@@ -112,7 +112,7 @@ for patch_name in $(cat "$QUILT_PATCHES/series" | grep -v '^#'); do
112
git-apply --index -C1 "$tmp_patch" &&
113
tree=$(git-write-tree) &&
114
commit=$((echo "$SUBJECT"; echo; cat "$tmp_msg") | git-commit-tree $tree -p $commit) &&
115
- git-update-ref HEAD $commit || exit 4
115
+ git-update-ref -m "quiltimport: $patch_name" HEAD $commit || exit 4
116
fi
117
done
118
rm -rf $tmp_dir || exit 5