Re: [PATCH] [v9] safecrlf: Add mechanism to warn about irreversible crlf conversions

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Steffen Prohaska
Date: Wednesday, February 6, 2008 - 1:35 pm

On Feb 6, 2008, at 8:42 PM, Junio C Hamano wrote:


Yeah, I recognized this, too; but was to lazy to send another
correction ;)



Ok, amend it as you proposed but also squash in the following ...

-- >8 --
diff --git a/builtin-apply.c b/builtin-apply.c
index d0b3586..3b5618d 100644
--- a/builtin-apply.c
+++ b/builtin-apply.c
@@ -1430,7 +1430,7 @@ static int read_old_data(struct stat *st, const  
char *path, struct strbuf *buf)
  	case S_IFREG:
  		if (strbuf_read_file(buf, path, st->st_size) != st->st_size)
  			return error("unable to open or read %s", path);
-		convert_to_git(path, buf->buf, buf->len, buf, safe_crlf);
+		convert_to_git(path, buf->buf, buf->len, buf, 0);
  		return 0;
  	default:
  		return -1;
-- >8 --

... because ...

[...]


... now after I read this I fully understand what you meant before.
But my v9 patch does not match your description without the change
to builtin-apply.c from above.  In v9 the mechanism was still activated
in "git apply".

	Steffen
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH v7] safecrlf: Add mechanism to warn about irrev ..., Johannes Schindelin, (Sun Feb 3, 3:29 pm)
Re: [PATCH v7] safecrlf: Add mechanism to warn about irrev ..., Johannes Schindelin, (Mon Feb 4, 8:01 am)
Re: [PATCH] [v8] safecrlf: Add mechanism to warn about irr ..., Johannes Schindelin, (Mon Feb 4, 8:02 am)
Re: [PATCH] [v8] safecrlf: Add mechanism to warn about irr ..., Johannes Schindelin, (Mon Feb 4, 10:27 am)
Re: [PATCH] [v9] safecrlf: Add mechanism to warn about irr ..., Steffen Prohaska, (Wed Feb 6, 1:35 pm)