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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Helpful convenience.

Signed-off-by: Jani Nikula <jani.nikula@xxxxxxxxx>
---
 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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux