From af22df297aee0e41ad969551c532ecaf518d1d18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 6 Jun 2021 18:47:51 +0200 Subject: Add git.exrc --- git.exrc | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 git.exrc (limited to 'git.exrc') diff --git a/git.exrc b/git.exrc new file mode 100644 index 0000000..687455c --- /dev/null +++ b/git.exrc @@ -0,0 +1,6 @@ +" cut first committed file to commit message +map g dd/committed j0dt:dWdd''PA:  +" convert cut relative file path to absolute +map q !!perl -MCwd=abs_path -pe 'if (/^(.*?): (.*)$/) { $p = abs_path($1); $p =~ s,.*/,, if $p eq $1; $_ = "$p: $2\n" }' $ +" go to first line +1 -- cgit v1.2.3