remote-testgit: implement the "done" feature manually

People who want to write their own remote-helper will find it more useful to see clearly how they are supposed to advertise and implement the "done" feature themselves. Right now we are relying on fast-export to do that by using the --use-done-feature argument. However, people writing their own remote-helper would probably not have such an option, as they would probably be writing the fast-export functionality themselves. It should now be clearer to them. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Felipe Contreras committed Nov 28, 2012 at 23:11 UTC 1d3f9a30938e12b8ef7b807df7565b40b743d421
1 file changed +3 -1
git-remote-testgit
+3 -1
@@ -61,8 +61,10 @@ do
61 echo "feature import-marks=$gitmarks"
62 echo "feature export-marks=$gitmarks"
63 fi
64 - git fast-export --use-done-feature "${testgitmarks_args[@]}" $refs |
64 + echo "feature done"
65 + git fast-export "${testgitmarks_args[@]}" $refs |
66 sed -e "s#refs/heads/#${prefix}/heads/#g"
67 + echo "done"
68 ;;
69 export)
70 before=$(git for-each-ref --format='%(refname) %(objectname)')