From: Karthik Nayak Date: Tue, 10 Jan 2017 08:49:37 +0000 (+0530) Subject: ref-filter: modify "%(objectname:short)" to take length X-Git-Tag: v2.13.0-rc0~174^2~17 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/42d0eb05eed8e6c66d93091f5b0ece3a1872246c?hp=42d0eb05eed8e6c66d93091f5b0ece3a1872246c ref-filter: modify "%(objectname:short)" to take length Add support for %(objectname:short=) which would print the abbreviated unique objectname of given length. When no length is specified, the length is 'DEFAULT_ABBREV'. The minimum length is 'MINIMUM_ABBREV'. The length may be exceeded to ensure that the provided object name is unique. Add tests and documentation for the same. Mentored-by: Christian Couder Mentored-by: Matthieu Moy Helped-by: Jacob Keller Signed-off-by: Karthik Nayak Signed-off-by: Junio C Hamano ---