Hi,
On Mon, 21 Apr 2008, Junio C Hamano wrote:
Jörg Sommer [off-list ref] writes:
quoted
@@ -244,6 +252,19 @@ peek_next_command () {
sed -n "1s/ .*$//p" < "$TODO"
}
+mark_to_ref () {
+ case "$1" in
+ :[!/]*)
+ # :/SOMETHING is a reference for the last commit whose
+ # message starts with SOMETHING
+ echo "$mark_prefix${1#:}"
+ ;;
What was the conclusion of the mark-syntax discussion?
Well, I will probably work on something that is not as intrusive and
syntax-changing this week.
While I know the bang in ":[!negated]" is POSIX, I wonder if everybody's
shell we care about groks it.
The common way to do that in the git sources is
switch "$x" in
/*)
# do nothing
;;
*)
<bla>
;;
esac
and frankly, I do not see a reason to move away from that practice.
Especially since consistency in source code is better than inconsistency.
Ciao,
Dscho