Re: [PATCH] commit: switch core.commentChar if it's found in existing commit

2014-05-16 Thread Junio C Hamano
Junio C Hamano writes: > Nguyễn Thái Ngọc Duy writes: > >> If we need to use core.commentChar and it's already in the prepared >> message, find another char among a small subset. This should stop >> surprises because git strips some lines unexpectedly. Of course if >> candicate characters happe

Re: [PATCH] commit: switch core.commentChar if it's found in existing commit

2014-05-16 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > If we need to use core.commentChar and it's already in the prepared > message, find another char among a small subset. This should stop > surprises because git strips some lines unexpectedly. Of course if > candicate characters happen to be all out, this change doe

[PATCH] commit: switch core.commentChar if it's found in existing commit

2014-05-16 Thread Nguyễn Thái Ngọc Duy
If we need to use core.commentChar and it's already in the prepared message, find another char among a small subset. This should stop surprises because git strips some lines unexpectedly. Of course if candicate characters happen to be all out, this change does not help. Signed-off-by: Nguyễn Thái