Thread (1 message) 1 message, 1 author, 2021-04-07

Re: [PATCH] bash completion: complete CHERRY_PICK_HEAD

From: Junio C Hamano <hidden>
Date: 2021-04-07 22:21:13

Ævar Arnfjörð Bjarmason  [off-list ref] writes:
-			for i in HEAD FETCH_HEAD ORIG_HEAD MERGE_HEAD REBASE_HEAD; do
+			for i in HEAD FETCH_HEAD ORIG_HEAD MERGE_HEAD REBASE_HEAD CHERRY_PICK_HEAD; do
 				case "$i" in
 				$match*)
 					if [ -e "$dir/$i" ]; then
					echo "$pfx$i$sfx"
				fi
				;;
Hmph, it gets tempting to do this instead:

	for i in $(cd "$dir/" && echo HEAD *_HEAD)
	do
		case "$i" in
		$match*)
			echo "$pfx$i$sfx"
			;;
		esac
	done

but I am no completion expert, so I'll queue the patch as-is.

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