Browse Source

Makefile: Add git make alias

pull/15/head
10sr 8 years ago
parent
commit
3881f026b0
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      Makefile

+ 1
- 0
Makefile View File

@@ -357,6 +357,7 @@ endif
$(git_conf) alias.snap '! gitdir="`git rev-parse --git-dir`" && export GIT_INDEX_FILE="$$gitdir"/snapshot.index && cp "$$gitdir"/index "$$GIT_INDEX_FILE" && git add -A && : >>"$$gitdir"/logs/refs/snapshot && git update-ref refs/snapshot $$(git commit-tree $$(git write-tree) -m Snapshot -p HEAD) && git show --stat snapshot' $(git_conf) alias.snap '! gitdir="`git rev-parse --git-dir`" && export GIT_INDEX_FILE="$$gitdir"/snapshot.index && cp "$$gitdir"/index "$$GIT_INDEX_FILE" && git add -A && : >>"$$gitdir"/logs/refs/snapshot && git update-ref refs/snapshot $$(git commit-tree $$(git write-tree) -m Snapshot -p HEAD) && git show --stat snapshot'


$(git_conf) alias.setcmd '! f(){ git config alias.$$1 "! $$2"; }; f' $(git_conf) alias.setcmd '! f(){ git config alias.$$1 "! $$2"; }; f'
$(git_conf) alias.make '!make'


#$(git_conf) alias.wc "!git ls-files -z | xargs -0 wc" #$(git_conf) alias.wc "!git ls-files -z | xargs -0 wc"
# $(git_conf) push.default "simple" # $(git_conf) push.default "simple"


Loading…
Cancel
Save