···7979git config jump.grepCmd "ag --column"
8080--------------------------------------------------
81818282+You can use the optional argument '--stdout' to print the listing to
8383+standard output instead of feeding it to the editor. You can use the
8484+argument with M-x grep on Emacs:
8585+8686+--------------------------------------------------
8787+# In Emacs, M-x grep and invoke "git jump --stdout <mode>"
8888+M-x grep<RET>git jump --stdout diff<RET>
8989+--------------------------------------------------
82908391Related Programs
8492----------------
···100108-----------
101109102110This script was written and tested with vim. Given that the quickfix
103103-format is the same as what gcc produces, I expect emacs users have a
111111+format is the same as what gcc produces, I expect other tools have a
104112similar feature for iterating through the list, but I know nothing about
105113how to activate it.
106114
+24-1
contrib/git-jump/git-jump
···2233usage() {
44 cat <<\EOF
55-usage: git jump <mode> [<args>]
55+usage: git jump [--stdout] <mode> [<args>]
6677Jump to interesting elements in an editor.
88The <mode> parameter is one of:
···1515 configured, to the command in `jump.grepCmd`.
16161717ws: elements are whitespace errors. Arguments are given to diff --check.
1818+1919+If the optional argument `--stdout` is given, print the quickfix
2020+lines to standard output instead of feeding it to the editor.
1821EOF
1922}
2023···6467 git diff --check "$@"
6568}
66697070+use_stdout=
7171+while test $# -gt 0; do
7272+ case "$1" in
7373+ --stdout)
7474+ use_stdout=t
7575+ ;;
7676+ --*)
7777+ usage >&2
7878+ exit 1
7979+ ;;
8080+ *)
8181+ break
8282+ ;;
8383+ esac
8484+ shift
8585+done
6786if test $# -lt 1; then
6887 usage >&2
6988 exit 1
7089fi
7190mode=$1; shift
9191+if test "$use_stdout" = "t"; then
9292+ "mode_$mode" "$@"
9393+ exit 0
9494+fi
72957396trap 'rm -f "$tmp"' 0 1 2 3 15
7497tmp=`mktemp -t git-jump.XXXXXX` || exit 1