You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⭐ **Tip**: Remote git repository hosting services (like Github) support access to files on different git branches by URL. Use these repository branch URL to compare fonts across git branches in your repository.
105
106
107
+
#### As Git's diff driver for fonts
108
+
109
+
Git can be configured to automatically use a specific tool to diff specific file types. These are the steps to use `fdiff` as the default diff output for font files.
110
+
111
+
1. Tell Git how to run the tool. As with most git configuration options this may be set for a repository (`--local`), for your user (`--global`), or system (`--system`). We recommend setting this at the user level. Assuming `fdiff` is available in your path, this setting should do the trick:
This will write it to your `$HOME/.gitconfig` file looking like this:
116
+
117
+
```gitconfig
118
+
[diff "fdiff"]
119
+
command=fdiff-c--git
120
+
```
121
+
122
+
Of course you may also edit it there.
123
+
124
+
2. Tell Git to use that specific tool for supported file types. This may also be done at multiple places. Each repository may have it's own `.gitattributes` file, a user may have one setting global defaults in `$XDG_HOME/git/attributes`, or there may be a system wide default file. Wherever you choose to place this, the lines are the same:
125
+
126
+
```gitattributes
127
+
.otf diff=fdiff
128
+
.ttf diff=fdiff
129
+
```
130
+
106
131
### Options
107
132
108
133
#### Color diffs
@@ -229,5 +254,3 @@ Unless required by applicable law or agreed to in writing, software distributed
0 commit comments