htgoebel avatar htgoebel committed edb8e82

Add end-of-line normalization and inclusion of .gitattributes.

Comments (0)

Files changed (1)

stage-9-postfixes.sh

 
 git checkout -b git-migration
 
-cp $workbase/_gitignore .gitignore
+cp $bindir/_gitignore .gitignore
 git add .gitignore
 $EDITOR .gitignore
 git commit -m 'Convert svn:ignore properties to .gitignore.'
 
 echo
-echo '##### Files containing \\r'
-find * -type f -printf '%f\n' | sed 's/.*\.//' | sort -u
+cp $bindir/_gitattributes .gitattributes
+echo >> .gitattributes
+echo >> .gitattributes '##### Suffixes of files containing CR'
+find * -type f -printf '%f\t-text\n' | sed 's/.*\./# /' | \
+    sort -u >> .gitattributes
 $EDITOR .gitattributes
 
 rm .git/index     # Remove the index to force git to
+set -x
 git reset         # re-scan the working directory
 git status        # Show files that will be normalized
 git add -u
 git add .gitattributes
+set +x
 
 cat <<EOF
-Now check if the line-endings are goiung to be correct. Then:
+Now check if the line-endings are going to be correct. Then:
 
   cd $GIT_WDIR-final
   git commit -m "Introduce end-of-line normalization."
   $bindir/upload-git-repo.sh
 
 EOF
+
+exit
+git apply ../000{2,3,4}*.patch --check 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.