Search code examples
version-controlstatuslsdarcs

How to list the untracked files in darcs?


For example, in Git, when I run git status, I see whether there are any untracked files in my working dir.

How do I check whether there are untracked files with darcs?

(I'm using darcs-2.1.2.)


Solution

  • darcs whatsnew (which can be abbreviated to just darcs wh or darcs wha) is equivalent to git diff (keep in mind, though, that darcs has no concept of Git index).

    darcs whatsnew -ls(same as --look-for-adds --summary) is closer to git status, giving an overview of changes in the working directory:

    helm:myproj oleg$ darcs wha -ls
    M ./basicmodule.py -2 +1
    A ./newfile.py
    a ./temp.txt