From c8142ca53997e222d783ef77ca83217bf7f6d5ab Mon Sep 17 00:00:00 2001 From: spacewander Date: Tue, 1 Nov 2016 10:22:45 +0800 Subject: [PATCH 1/3] Relax #! format check --- check_integrity.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_integrity.sh b/check_integrity.sh index cc029a4..f6dc186 100755 --- a/check_integrity.sh +++ b/check_integrity.sh @@ -15,7 +15,7 @@ check_bash_script() { || err "Run 'chmod +x bin/$cmd' to make it executable" shebang=$(head -n1 "bin/$cmd") - test "$shebang" == "#!/usr/bin/env bash" \ + [[ "$shebang" =~ \#![[:space:]]*/usr/bin/env[[:space:]]+bash ]] \ || err "Start git-$1 with '#!/usr/bin/env bash'" } From dead6873dba03c40a297d1452a8c6bac309cf5e0 Mon Sep 17 00:00:00 2001 From: spacewander Date: Tue, 1 Nov 2016 10:24:12 +0800 Subject: [PATCH 2/3] Add git-reauthor to completion script --- etc/git-extras-completion.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/git-extras-completion.zsh b/etc/git-extras-completion.zsh index 03d760d..09be7a1 100644 --- a/etc/git-extras-completion.zsh +++ b/etc/git-extras-completion.zsh @@ -391,6 +391,7 @@ zstyle ':completion:*:*:git:*' user-commands \ pr:'checks out a pull request locally' \ psykorebase:'rebase a branch with a merge commit' \ pull-request:'create pull request to GitHub project' \ + reauthor:'replace the author and/or committer identities in commits and tags' \ rebase-patch:'rebases a patch' \ refactor:'create refactor branch' \ release:'commit, tag and push changes to the repository' \ From 7aa7bcf740f0dbf1c4a6800805a0735de08055db Mon Sep 17 00:00:00 2001 From: spacewander Date: Sat, 12 Nov 2016 14:59:29 +0800 Subject: [PATCH 3/3] Add travis ci --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..46c0dc6 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,4 @@ +os: + - linux + - osx +script: ./check_integrity.sh $(find bin | cut -b 5- | xargs)