Fossil

Check-in [44987916]
Login

Check-in [44987916]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fixed a broken link in the new colordiff doc due to being extracted from the gitusers doc.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 449879163a4dda516d3fc510616d7d1d9e4794d9ab0ae045ab9a29fdf8befdcf
User & Date: wyoung 2024-04-26 17:35:32
Context
2024-04-26
17:36
Added internal link spacer to colordiff doc, without which the #diffutils reference appears to be a no-op. (Comment edit needed to fix Fossil eating the rest of the Vim-edited comment after the "#".) (check-in: fdd8057d user: wyoung tags: trunk)
17:35
Fixed a broken link in the new colordiff doc due to being extracted from the gitusers doc. (check-in: 44987916 user: wyoung tags: trunk)
17:33
Explained why we don't leave diff-command unset for the "bat" alternative. (check-in: 9fca91e8 user: wyoung tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to www/colordiff.md.

85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101

[bat]: https://github.com/sharkdp/bat


<a id="colordiff"></a>
## Colordiff

A method that works on systems predating GNU diffutils 3.4 or the
widespread availability of `bat` is to install [`colordiff`][cd], as
it is included in [many package systems][cdpkg], including ones for
outdated OSes. That then lets you say:

    fossil set --global diff-command 'colordiff -dwu'

The main reason we list this alternative last is that it has the same
limitation of unconditional color as [above](#diffutils).

[cd]: https://www.colordiff.org/








|








|
>
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[bat]: https://github.com/sharkdp/bat


<a id="colordiff"></a>
## Colordiff

A method that works on systems predating GNU diffutils 3.4 or the
widespread availability of `bat` is to install [`colordiff`][cdurl], as
it is included in [many package systems][cdpkg], including ones for
outdated OSes. That then lets you say:

    fossil set --global diff-command 'colordiff -dwu'

The main reason we list this alternative last is that it has the same
limitation of unconditional color as [above](#diffutils).

[cdurl]: https://www.colordiff.org/
[cdpkg]: https://repology.org/project/colordiff/versions

Changes to www/gitusers.md.

860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
writing, `fossil diff` produces traditional uncolored [unified diff
format][udiff] output, suitable for producing a [patch file][pfile].

There are [many methods](./colordiff.md) for solving this.
Viewed this way, Fossil doesn’t lack colorized diffs, it simply has
*one* method where they *aren’t* colorized.

[cdpkg]: https://repology.org/project/colordiff/versions
[pfile]: https://en.wikipedia.org/wiki/Patch_(Unix)
[udiff]: https://en.wikipedia.org/wiki/Diff#Unified_format


## <a id="show"></a> Showing Information About Commits

While there is no direct equivalent to Git’s “`show`” command, similar







<







860
861
862
863
864
865
866

867
868
869
870
871
872
873
writing, `fossil diff` produces traditional uncolored [unified diff
format][udiff] output, suitable for producing a [patch file][pfile].

There are [many methods](./colordiff.md) for solving this.
Viewed this way, Fossil doesn’t lack colorized diffs, it simply has
*one* method where they *aren’t* colorized.


[pfile]: https://en.wikipedia.org/wiki/Patch_(Unix)
[udiff]: https://en.wikipedia.org/wiki/Diff#Unified_format


## <a id="show"></a> Showing Information About Commits

While there is no direct equivalent to Git’s “`show`” command, similar