Re: Very limited pathspec wildcards..
Linus Torvalds <torvalds@osdl.org> writes:
Show 7 quoted lines
> Btw, I'm not sure this is a wonderful idea. I found it useful for doing
>
> git-whatchanged -p drivers/scsi/aic7xxx/aic79xx*
>
> since I was interested in seeign if only that particular driver had had
> changes. But it's hacky and pretty limited, so I throw this patch out more
> as a "maybe others think it is a good idea" thing.
Wouldn't something like this work equally well?
#!/bin/sh
git-whatchanged -r |
sed -ne '
/^:/s|aic7xxx/aic79xx|&|p
/^:/d
p' | git-diff-helper