summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAssaf Gordon <assafgordon@gmail.com>2017-03-07 03:49:26 (GMT)
committerAssaf Gordon <assafgordon@gmail.com>2017-03-07 03:51:01 (GMT)
commit4f3fb068090869b1b30f522694af43c687afab15 (patch)
tree2e6003d13453173e80564fc55ce02f7ce71998b0
parent5eb60f048a4463c9b3cedb4ff1115431c7e62054 (diff)
downloaddot-files-4f3fb068090869b1b30f522694af43c687afab15.zip
dot-files-4f3fb068090869b1b30f522694af43c687afab15.tar.gz
dot-files-4f3fb068090869b1b30f522694af43c687afab15.tar.bz2
gitconfig: add drypushlog/drypushlol
Show log of commits that would be pushed with 'git push' (like 'git push --dry-run' except shows log instead of commit-ids)
-rw-r--r--gitconfig3
1 files changed, 3 insertions, 0 deletions
diff --git a/gitconfig b/gitconfig
index 057e674..0099d47 100644
--- a/gitconfig
+++ b/gitconfig
@@ -54,6 +54,9 @@
dist = "!A=$(basename $(pwd))-$(git describe --tags --always)-$(date +%F); git ls-files -z | tar --null --files-from=- -cJf $A.tar.xz --transform \"s;^;$A/;\" && echo $A.tar.xz"
#dist = "!A=$(basename $(pwd)tar -cJf $(basename $(pwd))-$().tar.xz --transform \"s;^;$(basename $(pwd))-$(date +%F-%H%M%S)/;\" $(git ls) && echo $(basename $(pwd))-$(date +%F-%H%M%S).tar.xz"
redate = "!D=$(date -R); git commit --amend --date \"$D\" "
+ drypushlog = "!l=$(git push --porcelain --dry-run | awk 'NR==2 { print $2 }') ; git log $l"
+ drypushlol = "!l=$(git push --porcelain --dry-run | awk 'NR==2 { print $2 }') ; git log --oneline $l"
+
[push]
default = simple