Teach "guilt graph" the "-x exclude-pattern" option.
commit669732c2fd05199054ae7d4c76a88c7eb3040bf1
authorPer Cederqvist <cederp@opera.com>
Fri, 23 Jan 2015 14:10:06 +0000 (23 15:10 +0100)
committerPer Cederqvist <cederp@opera.com>
Fri, 23 Jan 2015 16:53:47 +0000 (23 17:53 +0100)
treea7e70c51c871b0e83df44d32b3f90ff2e1150396
parent33b3f012952a3cb96c044a4d1cc8b0c9682673df
Teach "guilt graph" the "-x exclude-pattern" option.

Some projects keep a ChangeLog which every commit modifies.  This
makes the graph a very uninteresting single line of commits.  It is
sometimes useful to see how the graph would look if we ignore the
ChangeLog file.

The new -x option is useful in situations like this.  It can be
repeated several times to ignore many files.  Each argument is saved
to a temporary file and "grep -v -f $TEMPORARY" is used to filter out
the file names you want to ignore.

Also added a minimal test case and documentation.

Signed-off-by: Per Cederqvist <cederp@opera.com>
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Documentation/guilt-graph.txt
guilt-graph
regression/t-033.out
regression/t-033.sh