From: Karthik Nayak Date: Tue, 10 Jan 2017 08:49:49 +0000 (+0530) Subject: ref-filter: add an 'rstrip=' option to atoms which deal with refnames X-Git-Tag: v2.13.0-rc0~174^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/1a34728e6bb469083dd46ff35362fdfc6e489d07?ds=inline;hp=1a34728e6bb469083dd46ff35362fdfc6e489d07 ref-filter: add an 'rstrip=' option to atoms which deal with refnames Complimenting the existing 'lstrip=' option, add an 'rstrip=' option which strips `` slash-separated path components from the end of the refname (e.g., `%(refname:rstrip=2)` turns `refs/tags/foo` into `refs`). Signed-off-by: Karthik Nayak Signed-off-by: Junio C Hamano ---