Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-06-05 03:17:41 +0400
committerRussell Belfer <rb@github.com>2012-06-08 23:09:10 +0400
commit0abd724454078f2089701b54be94df7306dcfb8e (patch)
tree603540e3cabb66601f063d3538fbce7f7d022af0 /tests-clar/resources/filemodes/.gitted/info/exclude
parent80c03754ae57ad387a6c02a5e58a59a327d44638 (diff)
Fix filemode comparison in diffs
File modes were both not being ignored properly on platforms where they should be ignored, nor be diffed consistently on platforms where they are supported. This change adds a number of diff and status filemode change tests. This also makes sure that filemode-only changes are included in the diff output when they occur and that filemode changes are ignored successfully when core.filemode is false. There is no code that automatically toggles core.filemode based on the capabilities of the current platform, so the user still needs to be careful in their .git/config file.
Diffstat (limited to 'tests-clar/resources/filemodes/.gitted/info/exclude')
-rw-r--r--tests-clar/resources/filemodes/.gitted/info/exclude6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests-clar/resources/filemodes/.gitted/info/exclude b/tests-clar/resources/filemodes/.gitted/info/exclude
new file mode 100644
index 000000000..a5196d1be
--- /dev/null
+++ b/tests-clar/resources/filemodes/.gitted/info/exclude
@@ -0,0 +1,6 @@
+# git ls-files --others --exclude-from=.git/info/exclude
+# Lines that start with '#' are comments.
+# For a project mostly in C, the following would be a good set of
+# exclude patterns (uncomment them if you want to use them):
+# *.[oa]
+# *~