Thread (8 messages) flat view 8 messages, 4 authors, 2016-06-15

Re: [PATCH v2 04/13] Teach rebase interactive the mark command

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:44:31

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help