Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
    
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 at 17:33

1 Answer 1

up vote 1 down vote accepted

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.