Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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/, 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's differences without having to type the whole path?

share|improve this question
Normally one has to type the full path, unless something like */*/ worked. You'd still need one star per directory though. – Collin Grady Jan 14 '14 at 17:33
up vote 1 down vote accepted

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

share|improve this answer

Your Answer


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.