<div class="gmail_quote">On Tue, Oct 4, 2011 at 7:38 PM, David Narvaez <span dir="ltr"><<a href="mailto:david.narvaez@computer.org">david.narvaez@computer.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br><br>I wanted to draw your attention to the following use case: In git, if you have changes that include new files these are not shown with git diff, but with git diff HEAD. So, currently, if I want to generate a patch that includes new files, I can't do that from the View Differences... menu in the Git plugin. Would it be good to change the command to git diff HEAD instead? Would it break anything else?<br>
<br>To replicate this use case you can do the following:<br><br>$ mkdir gittest<br>$ cd gittest<br>$ git init<br>$ echo "First file" > first-file<br>$ git add first-file<br>$ git commit -m "adding first file"<br>
$ echo "First file modified" > first-file<br>$ echo "Second file" > second-file<br>$ git add second-file<br>$ git diff<br>$ git diff HEAD<br><br>Notice the difference between the last two outputs.<br>
<br>David E. Narvaez<br>
<br>--<br>
KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
<br></blockquote><div> </div><div>Please report in <a href="http://bugs.kde.org">bugs.kde.org</a>, we read there too ;)</div><div><br></div><div>Aleix</div></div><br>