<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 28, 2020 at 9:11 AM Paul C. Anagnostopoulos via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">I was about to push a revision and did my customary <br>
<br>
> git log origin/main...HEAD --oneline<br>
<br>
Here is what it displayed:<br>
<br>
48dfad4d2e7b (HEAD -> main, bang) [TableGen] Fix bug in !interleave operator<br>
496fb70b141c (origin/main) [MachO] Fix enum-int mismatch warning<br>
e73f885c988d (origin/master, origin/HEAD) [PowerPC] Remove redundant<br>
COPY_TO_REGCLASS introduced by 8a58f21f5b6c<br>
c3b9d85bd4b7 [clang-tidy][NFC] Remove unnecessary headers<br>
<br>
What is going on with the third commit?<br></blockquote><div><br></div><div>The `...` you're using in `git log` shows you the difference between your local branch and the remote. So all these commits are the ones that are in either but not both.</div><div>If you just want to see your local change not in the remote branch, you need to use online two dots: <i>git log origin/main..HEAD --oneline</i></div><div>This last syntax is equivalent to <i>git log ^origin/main HEAD --oneline</i></div><div>And HEAD is also implicit so you can write:</div><div>git log origin/main.. --oneline<br></div><div>or: git log ^origin/main --oneline<br></div><div><br></div><div>-- </div><div>Mehdi</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div></div></div></div></div></div>