summaryrefslogtreecommitdiff
path: root/git-whatchanged
diff options
context:
space:
mode:
Diffstat (limited to 'git-whatchanged')
-rwxr-xr-xgit-whatchanged9
1 files changed, 6 insertions, 3 deletions
diff --git a/git-whatchanged b/git-whatchanged
index 6fbd115..85a49fc 100755
--- a/git-whatchanged
+++ b/git-whatchanged
@@ -1,4 +1,7 @@
#!/bin/sh
-git-rev-list $(git-rev-parse --default HEAD --revs-only "$@") |
- git-diff-tree --stdin --pretty -r $(git-rev-parse --no-revs "$@") |
- LESS="$LESS -S" ${PAGER:-less}
+rev_list_args=$(git-rev-parse --sq --default HEAD --revs-only "$@") &&
+diff_tree_args=$(git-rev-parse --sq --no-revs "$@") &&
+
+eval "git-rev-list $rev_list_args" |
+eval "git-diff-tree --stdin --pretty -r $diff_tree_args" |
+LESS="$LESS -S" ${PAGER:-less}