1

Sometimes I make a few changes before remembering to commit. Sometimes they are unrelated. So I first hg stat to see which files I changed, and then I hg diff specific files if I don't remember every change I made to them, so I can make an accurate description in my commit message.

I have a file in my project, a/b/c.pl, which is listed when I hg stat. However, if I hg diff -I *c* no results are shown, just the command prompt again. AFAICT from hg diff -h I am using the correct syntax, but apparently not. So, what's the correct syntax to see c.pl's differences without having to type the whole path?

Oliver Salzburg
  • 86,445
  • 63
  • 260
  • 306
Kev
  • 1,142
  • 2
  • 14
  • 37
  • Normally one has to type the full path, unless something like `*/*/c.pl` worked. You'd still need one star per directory though. – Collin Grady Jan 14 '14 at 17:33

1 Answers1

2

The correct syntax is hg diff -I **c*.

Kev
  • 1,142
  • 2
  • 14
  • 37