I often have these kind of results when using git diff:
/*
+ * Newly added comment
+ */
+
+
+ /*
* Old comment
*/
This is technically correct (since the first line did not change) but makes the later commit information hard to understand - especially when this happens with newly inserted functions:
void function(bool param1,
+ bool param2,
+ bool param3)
+{
+ //Something else happens here
+}
+
+void function(bool param1,
bool param2)
{
//Something happens here
}
Is there any possibility to give git diff a hint that a whole new block has been inserted, in order to receive:
+void function(bool param1,
+ bool param2,
+ bool param3)
+{
+ //Something else happens here
+}
+
void function(bool param1,
bool param2)
{
//Something happens here
}