UiPath 2019 treats JSON & XAML files that are added to a git repository as binary by creating a
$DIR/.git/info/attributes file with the following contents
*.json binary *.xaml binary
This results in being unable to see the file differences
D:\RPA\UiPath\test\test2019>git diff Main.xaml diff --git a/Main.xaml b/Main.xaml index 115ce60..75801f8 100644 Binary files a/Main.xaml and b/Main.xaml differ
This file is created/updated when
- Git Init a project within Studio
- Opening a Project/Workspace that is already tracked within a Git repository.
Is this intended? If so, what is the reason?
Is this configurable so that users can continue to use their Git CLI or GUI of their choice without having to modify the attributes file each time the workspace is opened?
.git/info/attributes takes precedence over the other configurations so while that file exists with those values, users cannot override the settings by other means.
When deciding what attributes are assigned to a path, Git consults
$GIT_DIR/info/attributesfile (which has the highest precedence),
.gitattributesfile in the same directory as the path in question, and its parent directories up to the toplevel of the work tree (the further the directory that contains
.gitattributesis from the path in question, the lower its precedence). Finally global and system-wide files are considered (they have the lowest precedence).