Skip to contentSkip to conversation

completion: complete dim retip to local branches

PATCH New Jani Nikula 1 participant 1 message Mar 30, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 completion: complete dim retip to local branches

---
 bash_completion | 8 ++++++++
 1 file changed, 8 insertions(+)
bash_completion +8 -0
index 7dfc4b86cb13..25c8c61f2eac 100644
@@ -9,6 +9,11 @@ dim ()
 	fi
 }
 
+_dim_git_branches()
+{
+	git for-each-ref --format='%(refname:short)' refs/heads
+}
+
 _dim ()
 {
 	local args arg cur prev words cword split
@@ -107,6 +112,9 @@ _dim ()
 				COMPREPLY=( $( compgen -W "$nightly_branches all" -- $cur ) )
 			fi
 			;;
+		retip)
+			COMPREPLY=($(compgen -W "$(_dim_git_branches)" -- $cur))
+			;;
 	esac
 
 	return 0
Signature · 6 lines
2.1.4

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx