diff options
| author | Polesznyák Márk <contact@pml68.dev> | 2025-11-29 01:45:07 +0100 |
|---|---|---|
| committer | Polesznyák Márk <contact@pml68.dev> | 2025-12-29 14:50:02 +0100 |
| commit | bf7347380207d80183ce80ae6547ef08fa579c6a (patch) | |
| tree | ec64896997e4bd76d89738f0b156dde7423ff107 /scripts/gitline | |
| parent | feat: initial commit (diff) | |
| download | dotfiles-bf7347380207d80183ce80ae6547ef08fa579c6a.tar.gz | |
feat: add scripts, TARGET variable for Makefile
Diffstat (limited to '')
| -rwxr-xr-x | scripts/gitline | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/gitline b/scripts/gitline new file mode 100755 index 0000000..0341f27 --- /dev/null +++ b/scripts/gitline @@ -0,0 +1,6 @@ +#!/bin/sh + +lineNumber=${1:-$(echo -n "" | dmenu -i -p "Line number:")} +file=${2:-$(echo -n "" | dmenu -i -p "Filename:")} + +git -C "$(dirname "$file")" log -L"$lineNumber",+1:"$file" |
