Skip to content

Commit

Permalink
guilt graph: Simplify getfiles.
Browse files Browse the repository at this point in the history
git diff-tree by default emits TAB-separated fields.  cut by defaults
processes TAB-separated fields.  Simplify getfiles() by using TAB as
the separator.

Signed-off-by: Per Cederqvist <[email protected]>
Signed-off-by: Josef 'Jeff' Sipek <[email protected]>
  • Loading branch information
Per Cederqvist committed Jan 23, 2015
1 parent 1703c57 commit 33b3f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guilt-graph
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fi

getfiles()
{
git diff-tree -r "$1^" "$1" | tr '\t' ' ' | cut -d' ' -f6
git diff-tree -r "$1^" "$1" | cut -f2
}

cache="$GUILT_DIR/$branch/.graphcache.$$"
Expand Down

0 comments on commit 33b3f01

Please sign in to comment.