.TH "datalad diff" "1" "2019\-02\-08" ""datalad diff 0.11.2"" .SH NAME \fBdatalad diff\fR \- report changes of dataset components. .SH SYNOPSIS .nh .HP \fBdatalad diff\fR [-h] [-d\~DATASET] [--revision [REVISION\~EXPRESSION]] [--staged] [--ignore-subdatasets\~IGNORE_SUBDATASETS] [--report-untracked\~REPORT_UNTRACKED] [-r] [--recursion-limit\~LEVELS] [PATH [PATH ...]] .hy .SH DESCRIPTION Reports can be generated for changes between recorded revisions, or between a revision and the state of a dataset's work tree. .PP Unlike 'git diff', this command also reports untracked content when comparing a revision to the state of the work tree. Such content is marked with the property STATE='UNTRACKED' in the command results. .PP The following types of changes are distinguished and reported via the STATE result property: .PP \- added \- copied \- deleted \- modified \- renamed \- typechange \- unmerged \- untracked .PP Whenever applicable, source and/or destination revisions are reported to indicate when exactly within the requested revision range a particular component changed its status. .PP Optionally, the reported changes can be limited to a subset of paths within a dataset. .SH OPTIONS .TP PATH path to be evaluated. Constraints: value must be a string [Default: None] .TP \fB-h\fR, \fB--help\fR, \fB--help-np\fR show this help message. --help-np forcefully disables the use of a pager for displaying the help message .TP \fB-d\fR \fI\s-1DATASET\s0\fR, \fB--dataset\fR \fI\s-1DATASET\s0\fR specify the dataset to query. If no dataset is given, an attempt is made to identify the dataset based on the input and/or the current working directory. Constraints: Value must be a Dataset or a valid identifier of a Dataset (e.g. a path) [Default: None] .TP \fB--revision\fR [REVISION EXPRESSION] comparison reference specification. Three modes are supported: 1) changes you have in your working tree relative to the named revision (this can also be a branch name, tag, commit or any label Git can understand). 2) .. changes between two arbitrary revisions. 3) ... changes on the branch containing and up to the second , starting at a common ancestor of both revisions. [Default: None] .TP \fB--staged\fR get the changes already staged for a commit relative to an optionally given revision (by default the most recent one). [Default: False] .TP \fB--ignore-subdatasets\fR \fI\s-1IGNORE_SUBDATASETS\s0\fR speed up execution by (partially) not evaluating the state of subdatasets in a parent dataset. With "none" a subdataset is considered modified when it either contains untracked or modified content or its last saved state differs from that recorded in the parent dataset. When "untracked" is used subdatasets are not considered modified when they only contain untracked content (but they are still scanned for modified content). Using "dirty" ignores all changes to the work tree of subdatasets, only changes to the revisions stored in the parent dataset are shown. Using "all" hides all changes to subdatasets. Note, even with "all" recursive execution will still report other changes in any existing subdataset, only the subdataset record in a parent dataset is not evaluated. Constraints: value must be one of ('none', 'untracked', 'dirty', 'all') [Default: 'none'] .TP \fB--report-untracked\fR \fI\s-1REPORT_UNTRACKED\s0\fR If and how untracked content is reported when comparing a revision to the state of the work tree. 'no': no untracked files are reported; 'normal': untracked files and entire untracked directories are reported as such; 'all': report individual files even in fully untracked directories. Constraints: value must be one of ('no', 'normal', 'all') [Default: 'normal'] .TP \fB-r\fR, \fB--recursive\fR if set, recurse into potential subdataset. [Default: False] .TP \fB--recursion-limit\fR LEVELS limit recursion into subdataset to the given number of levels. Constraints: value must be convertible to type 'int' [Default: None] .SH AUTHORS datalad is developed by The DataLad Team and Contributors .