summaryrefslogtreecommitdiff
path: root/git/config
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2023-09-10 18:42:20 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2023-09-10 18:42:20 +0100
commit76dee9bafe2aeb2f47fe30ee99defebb27ecd6c0 (patch)
treeefbb633d8afc1fcea8a50f813328d79a99388e5c /git/config
parent98d5c79eaae6f69019fcb4c155353cacf71a5b59 (diff)
git: Add ‘root’ alias to find top-level directory
Diffstat (limited to 'git/config')
-rw-r--r--git/config15
1 files changed, 8 insertions, 7 deletions
diff --git a/git/config b/git/config
index afd48eb..6878252 100644
--- a/git/config
+++ b/git/config
@@ -1,11 +1,12 @@
[alias]
- br = branch
- co = checkout
- di = diff
- dis = diff --staged
- fa = fetch --all --prune
- gi = grep -i
- st = status
+ br = branch
+ co = checkout
+ di = diff
+ dis = diff --staged
+ fa = fetch --all --prune
+ gi = grep -i
+ root = rev-parse --show-toplevel
+ st = status
[branch]
autoSetupRebase = always