Thread (6 messages) flat view 6 messages, 2 authors, 2016-06-15

Re: [PATCH/RFCv4 2/2] git rebase -i: warn about removed commits

From: Remi Galan Alfonso <hidden>
Date: 2016-06-15 23:05:07

Galan Rémi [off-list ref] writes:
+                comm -2 -3 "$todo".oldsha1 "$todo".newsha1 >"$todo".miss
+
+                # Make the list user-friendly
+                opt="--no-walk=sorted --format=oneline --abbrev-commit --stdin"
+                git rev-list $opt <"$todo".miss >"$todo".miss+
+                mv "$todo".miss+ "$todo".miss
+
+                # Check missing commits
Found a bug here, got an error message from git rev-list if
"$todo".miss is empty.

Now it looks like:
		# Check missing commits
		if test -s "$todo".miss
		then
			# Make the list user-friendly
			opt="--no-walk=sorted --format=oneline --abbrev-commit --stdin"
			git rev-list $opt <"$todo".miss >"$todo".miss+
			mv "$todo".miss+ "$todo".miss

			warn "Warning: some commits may have been dropped" \
Thus the empty case is tested by the test -s of the warnings.

By the way, should I add --quiet to the options of the call to git
rev-list?

Rémi
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help