nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 2af10e3589307fea749012a2d757feda0f4e108a
parent 42a5a2c1065c4b31c26d56abd1ee6ca6f877cbd1
Author: Phil Runninger <PhilRunninger@users.noreply.github.com>
Date:   Tue, 14 Jul 2020 08:49:44 -0400

Update PULL_REQUEST_TEMPLATE.md

Use a shorter command to display the recent patches: replace `| head -2` with `-m2` grep switch; replace a `sed` with `cut` to get the line numbers.
Diffstat:
M.github/PULL_REQUEST_TEMPLATE.md | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
@@ -17,6 +17,6 @@ Closes #    <!-- Enter the issue number this PR addresses. If none, remove this 
     ```bash
     git checkout master
     git pull
-    sed -n "$(grep -n '####' CHANGELOG.md | head -2 | sed -e 's/:.*//' | sed 'N;s/\n/,/')p" CHANGELOG.md | sed '$d'
+    sed -n "$(grep -n -m2 '####' CHANGELOG.md | cut -f1 -d: | sed 'N;s/\n/,/')p" CHANGELOG.md | sed '$d'
     git tag -a $(read -p "Tag Name: " tag;echo $tag) -m"$(git show --quiet --pretty=%s)";git push origin --tags
     ```