Ævar Arnfjörð Bjarmason <avarab@xxxxxxxxx> 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.