All of lore.kernel.org
 help / color / mirror / Atom feed
* Warning about conflict markers - undocumented 'diff --check' feature & suggestion
@ 2016-03-28 22:44 Ori Avtalion
  2016-03-28 23:01 ` Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: Ori Avtalion @ 2016-03-28 22:44 UTC (permalink / raw)
  To: git

A bug report and a suggestion:

`git diff --check` has been warning about conflict markers since 2008:
https://marc.info/?l=git&m=122398500726634&w=2

This is an undocumented feature. The current documentation for the
flag only mentions "whitespace errors".

This check will also be useful in `git add`, to prevent accidental
staging of conflict markers.
Perhaps it could be included, if not by default, then at least with a
configuration setting.

Thoughts? Is this perhaps an existing feature that I'm missing? :)

-Ori

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-03-29 19:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-28 22:44 Warning about conflict markers - undocumented 'diff --check' feature & suggestion Ori Avtalion
2016-03-28 23:01 ` Junio C Hamano
2016-03-29 11:19   ` Ori Avtalion
2016-03-29 18:23     ` Junio C Hamano
2016-03-29 18:27       ` Ori Avtalion
2016-03-29 18:59   ` [PATCH] Documentation: git diff --check detects conflict markers Ori Avtalion

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.