aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Porter2023-08-21 18:19:24 -0700
committerJim Porter2023-08-21 18:22:59 -0700
commit0df2efa4d6953fb3dbc50c5faa845e80154b447b (patch)
treea267efeb67f5d4c1ea87a54724a27ca2ad4aed65
parentb7bd7e92a969f012c8e6ad8d0cdbffd758054cab (diff)
downloademacs-0df2efa4d6953fb3dbc50c5faa845e80154b447b.tar.gz
emacs-0df2efa4d6953fb3dbc50c5faa845e80154b447b.zip
; Fix issues running gitmerge
* .gitattributes: Ignore whitespace issues in java/INSTALL. * build-aux/git-hooks/pre-commit (git_diff): Explicitly allow "ChangeLog.android". * java/README: Remove extra trailing newline.
-rw-r--r--.gitattributes4
-rwxr-xr-xbuild-aux/git-hooks/pre-commit3
-rw-r--r--java/README1
3 files changed, 7 insertions, 1 deletions
diff --git a/.gitattributes b/.gitattributes
index b56f0ec617d..39a82cc0efc 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -116,3 +116,7 @@ build-aux/msys-to-w32 diff=shell
116build-aux/update-subdirs diff=shell 116build-aux/update-subdirs diff=shell
117lib-src/rcs2log diff=shell 117lib-src/rcs2log diff=shell
118/make-dist diff=shell 118/make-dist diff=shell
119
120# This file contains in-line diffs, which can include trailing
121# whitespace.
122java/INSTALL -whitespace
diff --git a/build-aux/git-hooks/pre-commit b/build-aux/git-hooks/pre-commit
index 12b08d2c25f..2e0dd7dfd7c 100755
--- a/build-aux/git-hooks/pre-commit
+++ b/build-aux/git-hooks/pre-commit
@@ -60,6 +60,9 @@ while IFS= read -r new_name; do
60 -* | */-*) 60 -* | */-*)
61 echo "$new_name: File name component begins with '-'." 61 echo "$new_name: File name component begins with '-'."
62 exit 1;; 62 exit 1;;
63 ChangeLog.android)
64 # This file is explicitly ok.
65 ;;
63 ChangeLog | */ChangeLog) 66 ChangeLog | */ChangeLog)
64 echo "$new_name: Please use git commit messages, not ChangeLog files." 67 echo "$new_name: Please use git commit messages, not ChangeLog files."
65 exit 1;; 68 exit 1;;
diff --git a/java/README b/java/README
index a6adb805b9e..e518e9fbb2f 100644
--- a/java/README
+++ b/java/README
@@ -1046,4 +1046,3 @@ public class Foo
1046{ 1046{
1047 Object bar; 1047 Object bar;
1048}; 1048};
1049