Skip to content

Commit

Permalink
git: simplify the 'latest' alias
Browse files Browse the repository at this point in the history
  • Loading branch information
geodimm committed Dec 4, 2023
1 parent 25049b8 commit 0c4215e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git/gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
tree = log --graph --date=local --pretty=format:'%Cgreen%ad%Creset %Cred%h%Creset %an: %s %Creset %C(yellow)%d%Creset' --all
find = !git log -p -S
all = "!f() { ls -R -d */.git | sed s,/.git,, | xargs -t -P0 -I{} git -C {} $1; }; f"
latest = "!f() { git for-each-ref --color=always --sort=committerdate refs/remotes --format='%(color:bold green)%(committerdate:relative) %(HEAD)%(color:yellow)%(refname:short) %(color:blue)%(subject) %(color:magenta)%(authorname)%(color:reset)'; }; f"$1; }; f"
latest = for-each-ref --color=always --sort=committerdate refs/remotes --format='%(color:bold green)%(committerdate:relative) %(HEAD)%(color:yellow)%(refname:short) %(color:blue)%(subject) %(color:magenta)%(authorname)%(color:reset)'
[color]
branch = auto
diff = auto
Expand Down

0 comments on commit 0c4215e

Please sign in to comment.