May 2017
Beginner
552 pages
28h 47m
English
The fossil diff command has several options. When looking for the code that introduced a problem, we generally want to perform a diff on two versions of a file. The -from and -to options to fossil diff perform this action:
$ fossil diff -from ID-1 -to ID-2FILENAME
ID-1 and ID-2 are identifiers used in the repository. They may be SHA-1 hashes, tags or dates, and so on. The FILENAME is the file that was committed to fossil.
For example, to find the difference between two revisions of main.tcl use the following command:
$ fossil diff -from 47c85 -to 7a7e25 main.tcl
Index: main.tcl
==================================================================
--- main.tcl
+++ main.tcl
@@ -9,10 +9,5 @@
set max 10
set min 1
+ while ...