diff options
-rw-r--r-- | aliases.sh | 5 | ||||
-rw-r--r-- | configs/shared/.gitconfig | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/aliases.sh b/aliases.sh index e00fefeeb88b..0ed3e1d349f1 100644 --- a/aliases.sh +++ b/aliases.sh @@ -59,14 +59,17 @@ fi # git-specific aliases git config --global alias.recent 'for-each-ref --count=10 --sort=-committerdate refs/heads/ --format="%(refname:short)"' -git config --global alias.today 'log --since=00:00:00 --all --no-merges --oneline --author="$(git config --get user.email)"' +git config --global alias.yday '! git log --name-only --since=yesterday.midnight --until=today.midnight --author="$(git config --get user.email)"' git config --global alias.conflicts 'diff --name-only --diff-filter=U' +alias gyday='git log --name-only --since=yesterday.midnight --until=today.midnight --author="$(git config --get user.email)"' + alias glp="git log --graph --pretty=format:'%Cred%h%Creset -%Cblue %an %Creset - %C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative" alias gprom="git pull --rebase origin master" alias gcan='git commit --amend --no-edit' alias gpf='git push --force' alias gds='git diff --staged' +alias gfx='git commit --fixup' # elixir-specific aliases diff --git a/configs/shared/.gitconfig b/configs/shared/.gitconfig index cd33cfa01c99..8d62d1e610c3 100644 --- a/configs/shared/.gitconfig +++ b/configs/shared/.gitconfig @@ -4,9 +4,10 @@ signingkey = C7A53CC58D3B1F8C [alias] recent = for-each-ref --count=10 --sort=-committerdate refs/heads/ --format=\"%(refname:short)\" - today = log --since=00:00:00 --all --no-merges --oneline --author=\"$(git config --get user.email)\" + today = ! git log --date=relative --since=00:00:00 --all --no-merges --oneline --author=\"$(git config --get user.email)\" changed-files = conflicts = diff --name-only --diff-filter=U + yday = ! git log --name-only --since=yesterday.midnight --until=today.midnight --author=\"$(git config --get user.email)\" [commit] gpgsign = true [gpg] @@ -17,3 +18,4 @@ default = current [rebase] autosquash = true + autostash = true |