freebsd-src/usr.bin/diff/tests/group-format.out
Baptiste Daroussin fddcb7b82f Implement a basic --changed-group-format
etcupdate(8) requires that option, while GNU diff supports many more variation
of that options, their behaviour beside the simple verion implemented here are
quite inconsistent as such I do not plan to implement those.

The only special keyword supported by this implementation are: %< and %>
%= is not implemented as the documentation of GNU diff says: common lines, but
it actually when tested print the changes from the first file
2017-04-20 14:22:33 +00:00

28 lines
281 B
Plaintext

/*
* A comment
*
<<<<<<< (local)
* And another bla
=======
* And another bla
>>>>>>> (stock)
*
<<<<<<< (local)
* And yet another
=======
* and yet another
>>>>>>> (stock)
*/
int
main(void)
{
<<<<<<< (local)
=======
>>>>>>> (stock)
printf("something");
return (0);
}