Is there some way to stage individual lines of a file which has just been changed to include newline at EOF? I tried add -p, but it wouldn't split the relevant hunk into small enough parts, and it's well known that git-gui throws a "corrupt patch" error when dealing with files without a newline at the end. The relevant hunk:
$courier: "courier new", courier, freemono, "nimbus mono l",
"liberation mono", monospace;
-
-$monaco: monaco, "lucida console", "dejavu sans mono",
- "bitstream vera sans mono", "liberation mono",
- monospace;
\ No newline at end of file
+
+$monaco: monaco, "lucida console", "dejavu sans mono",
+ "bitstream vera sans mono", "liberation mono",
+ monospace;
+
+h1 {
+ font-size: 2em;
+}
[snip]
I'd like to commit everything up to h1 as a whitespace fix, and everything after in a separate commit.