diff options
| author | Robert Günzler <r@gnzler.io> | 2026-09-27 17:38:39 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2026-09-27 17:38:39 +0200 |
| commit | 0860db73ae6fd9a6f6347219d820bf026a6b8b91 (patch) | |
| tree | 11318c3670d1c32c5aa0bf404c22fba3bf63fc53 /.config/git | |
| parent | 4e34cbf9673aeaba252e01df554a0d204e83c5e2 (diff) | |
| download | dotfiles-master.tar.gz | |
Automated-commit-by: dots Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to '.config/git')
| -rw-r--r-- | .config/git/config | 18 | ||||
| -rw-r--r-- | .config/git/ignore | 3 | ||||
| -rw-r--r-- | .config/git/url.cfg | 14 |
3 files changed, 21 insertions, 14 deletions
diff --git a/.config/git/config b/.config/git/config index 458280d..8c7f26e 100644 --- a/.config/git/config +++ b/.config/git/config @@ -27,7 +27,7 @@ helper = !sh -c 'rbw get f94a873d-9d72-412e-a46d-53e4cd19a291 | xargs printf password=%s\\n' [core] - excludesfile = $HOME/.config/git/ignore + excludesfile = ~/.config/git/ignore filemode = false pager = less -F @@ -65,7 +65,7 @@ fix = "!f() { local c=${1:-$(git fuzzy commits || :)}; test -n \"$c\" && git fixup $c && git ri $c^; }; f" fixup = "!f() { local c=${1:-$(git fuzzy commits || :)}; test -n \"$c\" && git commit --fixup=$c; }; f" grep = grep --break --heading --line-number - l = !tig + l = nvlog ls = log --graph --decorate --stat mt = mergetool pushf = push --force-with-lease @@ -175,17 +175,7 @@ [includeIf "gitdir:~/src/unikraft/**"] path = ~/src/unikraft/.gitconfig - - -# url rewrites -; [url "git@github.com:"] -; insteadOf = "https://github.com/" -[url "git@git.sr.ht:"] - insteadOf = "https://git.sr.ht/" -; [url "git@bitbucket.org:"] -; insteadOf = "https://bitbucket.org/" -; [url "git@gitlab.com:"] -; insteadOf = "https://gitlab.com/" - +[includeIf "gitdir:~/src/**"] + path = ~/.config/git/url.cfg ; vim: expandtab shiftwidth=4 diff --git a/.config/git/ignore b/.config/git/ignore index 33b0186..56516aa 100644 --- a/.config/git/ignore +++ b/.config/git/ignore @@ -47,6 +47,9 @@ bower_components # personal stuff .todo.md .org.md +todo.txt +.nvim.lua +.autowt.toml # clangd .cache/ diff --git a/.config/git/url.cfg b/.config/git/url.cfg new file mode 100644 index 0000000..1631797 --- /dev/null +++ b/.config/git/url.cfg @@ -0,0 +1,14 @@ +# url rewrites + +[url "git@git.sr.ht:"] + insteadOf = "https://git.sr.ht/" + +[url "git@codeberg.org:"] + insteadOf = "https://codeberg.org/" + +[url "git@github.com:"] + insteadOf = "https://github.com/" + +[url "git@gitlab.com:"] + insteadOf = "https://gitlab.com/" + |