aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-01-24 17:14:45 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-01-24 17:14:45 +0300
commit347a68546c0d7df97000bc2a80ebd1d5ceb39e40 (patch)
tree92f621dbd04547c0a1fcc8044332393bea6dda1e /%HOME%
parent.bashrc_work -> .bashrc_local (diff)
downloadlinux-home-347a68546c0d7df97000bc2a80ebd1d5ceb39e40.tar.gz
linux-home-347a68546c0d7df97000bc2a80ebd1d5ceb39e40.zip
.gitconfig: no more external scripts
Diffstat (limited to '')
-rw-r--r--%HOME%/.gitconfig10
-rw-r--r--[-rwxr-xr-x]%HOME%/.local/bin/git-fixup-old (renamed from %HOME%/.local/bin/git-fixup)0
-rw-r--r--[-rwxr-xr-x]%HOME%/.local/bin/git-pulll-old (renamed from %HOME%/.local/bin/git-pulll)0
3 files changed, 10 insertions, 0 deletions
diff --git a/%HOME%/.gitconfig b/%HOME%/.gitconfig
index 07b1c3b..5369d34 100644
--- a/%HOME%/.gitconfig
+++ b/%HOME%/.gitconfig
@@ -15,11 +15,17 @@
# If no refspec is given, push to the branch with the same name.
default = upstream
+# Git submodules suck, but they suck less if you read
+# https://medium.com/@porteneuve/mastering-git-submodules-34c65e940407.
+
# Show submodule changes in a more verbose way.
[diff]
submodule = log
[status]
submoduleSummary = true
+[alias]
+ # Pull and sync submodules.
+ pulll = !git pull && git submodule sync --recursive && git submodule update --init --recursive
# Automatically remove obsolete things/publish new things.
[fetch]
@@ -62,6 +68,10 @@
unhide = update-index --no-skip-worktree
hidden = !git ls-files -v | grep --basic-regexp \"^\\([[:lower:]]\\|S\\)\"
+ # Squash the staging area with the latest commit.
+ # Pass "-a" to skip using `git add`.
+ fixup = !GIT_EDITOR=true git commit --amend
+
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
diff --git a/%HOME%/.local/bin/git-fixup b/%HOME%/.local/bin/git-fixup-old
index 3883f10..3883f10 100755..100644
--- a/%HOME%/.local/bin/git-fixup
+++ b/%HOME%/.local/bin/git-fixup-old
diff --git a/%HOME%/.local/bin/git-pulll b/%HOME%/.local/bin/git-pulll-old
index 79299e5..79299e5 100755..100644
--- a/%HOME%/.local/bin/git-pulll
+++ b/%HOME%/.local/bin/git-pulll-old