[Intel-gfx] [maintainer-tools PATCH v2 14/33] dim: add alias command to list aliases

Jani Nikula jani.nikula at intel.com
Thu Jan 28 05:27:08 PST 2016


Helpful convenience.

Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
 dim     | 7 +++++++
 dim.rst | 5 +++++
 2 files changed, 12 insertions(+)

diff --git a/dim b/dim
index 98b090eadf33..651ee5882ca3 100755
--- a/dim
+++ b/dim
@@ -743,6 +743,13 @@ function assert_branch
 	fi
 }
 
+function dim_alias
+{
+	# use posix mode to omit functions in set output
+	( set -o posix; set ) | grep "^dim_alias_[a-zA-Z0-9_]*=" |\
+		sed 's/^dim_alias_/\t/;s/=/\t/'
+}
+
 # dim subcommand aliases
 dim_alias_af=apply-fixes
 dim_alias_ai=apply-igt
diff --git a/dim.rst b/dim.rst
index 7b8930269aa8..61bec7f29731 100644
--- a/dim.rst
+++ b/dim.rst
@@ -273,6 +273,11 @@ for-each-workdir|fw *command*
 Run the given command in all active workdirs including the main repository under
 \$DIM_DRM_INTEL.
 
+alias
+-----
+
+List all aliases for the subcommand names.
+
 help
 ----
 Show this help. Install **rst2man(1)** for best results.
-- 
2.1.4



More information about the Intel-gfx mailing list