summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRamiro Romero Arjona <1270015+rromeroar@users.noreply.github.com>2019-05-02 21:27:25 +0200
committerGitHub <noreply@github.com>2019-05-02 21:27:25 +0200
commitf60a403c1bc7cf8aa44dbd628d3b7a33417dea5b (patch)
treeb7b1b2f2e54a8131183d0668a7d5b80efc3bcfa0
parent92972bed4fb4ff6dffd32169bc437de34acac6a9 (diff)
Change regular expression for git blame to one more supported
Change regular expression in git blame, removing braces. New expression is supported on various awk engines used in some distributions as default ones. As trade-off, the new expression accepts more input character sequences.
-rw-r--r--rc/tools/git.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/tools/git.kak b/rc/tools/git.kak
index 3398dd2d..93540d36 100644
--- a/rc/tools/git.kak
+++ b/rc/tools/git.kak
@@ -76,7 +76,7 @@ Available commands:\n add\n rm\n blame\n commit\n checkout\n diff\n hide-
print "set-option -add buffer=" ENVIRON["kak_bufname"] " git_blame_flags " flag | cmd
close(cmd)
}
- /^([0-9a-f]{40}) ([0-9]+) ([0-9]+) ([0-9]+)/ {
+ /^([0-9a-f]+) ([0-9]+) ([0-9]+) ([0-9]+)/ {
send_flags()
sha=$1
line=$3