Git for Darcs UsersThe table below lists the corresponding git command for each darcs command. The GHC project has also started their own git-darcs translation table; you can find it here Note that git has a concept of the index, which is a set of changes which lives in limbo somewhere between the current state of the workspace and the most recent commit. In darcs, the corresponding concept includes only a list of files that have been darcs added; the actual changes are selected at the time that darcs record is invoked. Because of this, there isn't just a single command corresponding to darcs whatsnew.
The easiest way to understand this is to think of the git index as the set of changes selected via interactive darcs record. The big difference is that in darcs, selection of changes and recording of changes is a single atomic operation; in git these are two distinct operations, and other things may happen between them! Also, note that darcs add adds files to darcs' list of tracked files; git add adds changes to git's index. A darcs record will ask the user which of the changes to the tracked files should become part of the changeset; git commit will include all indexed changes in the changeset.
darcs init git init
darcs check git fsck darcs repair git fsck darcs add git add darcs mv git mv darcs remove git rm darcs revert git reset --hard (everything) git checkout -- <filename> (one file) darcs unrevert darcs record git commit (you must "git add" first) darcs record -a git commit -a (implicit "git add" on tracked files) darcs unrecord git reset HEAD^ darcs tag git tag darcs rollback git revert darcs dist git archive darcs diff <ver> git diff <ver> (show changes between specific versions) darcs whatsnew git diff HEAD (show changes since last commit) git diff (show non-indexed changes) git diff --cached (show indexed changes) darcs changes git log darcs pull git pull darcs unpull git reset --hard REVISION~1 git rebase -i REVISON~1 (finer control) darcs push git push darcs send git send-email darcs apply git am darcs trackdown git bisect darcs get git fetch The following commands manipulate the index, so they don't correspond to commands in darcs so much as ways of interacting with darcs' hunk-selection prompts:
|