Mickaël Lacour
09/20/2024, 9:29 AMgit diff sha1 sha2
you might have for example +3 added. If you do it the other ways around git diff sha2 sha1
you have -3 removed.
I was expected the same concept with LakeFS, but this is not the case. I tagged an old commit, and then I do (UI and python sdk have the same results) a diff with the head. One way gives me +3 added, the others way around 0 change. Is it an expected behavior?
I’m posting in 🧵 the two screenshots.
Have an excellent day !Mickaël Lacour
09/20/2024, 9:29 AMMickaël Lacour
09/20/2024, 9:29 AMMickaël Lacour
09/20/2024, 9:30 AMAriel Shaqed (Scolnicov)
09/20/2024, 10:16 AMcompare
into base
. It shows all commits that are in compare but not in base.
And I think you're probably after the three-dot diff: all the differences between the two tags.Ariel Shaqed (Scolnicov)
09/20/2024, 10:20 AMAriel Shaqed (Scolnicov)
09/20/2024, 10:25 AM❯ lakectl diff --two-way <lakefs://quickstart/main> <lakefs://quickstart/branch>
Left ref: <lakefs://quickstart/main>
Right ref: <lakefs://quickstart/branch>
+ added foo
❯ lakectl diff --two-way <lakefs://quickstart/branch> <lakefs://quickstart/main>
Left ref: <lakefs://quickstart/branch>
Right ref: <lakefs://quickstart/main>
- removed foo
Ariel Shaqed (Scolnicov)
09/20/2024, 10:29 AMThis branch is 9 commits ahead of, 4 commits behind master.It's a bit hard (for me 👓 ) to see, but there are TWO different links in there, one in each direction.
Mickaël Lacour
09/20/2024, 12:32 PMAriel Shaqed (Scolnicov)
09/20/2024, 2:16 PMMickaël Lacour
09/23/2024, 7:08 AMMickaël Lacour
09/23/2024, 7:09 AMAriel Shaqed (Scolnicov)
09/23/2024, 8:34 AMMickaël Lacour
09/23/2024, 8:44 AMAriel Shaqed (Scolnicov)
09/23/2024, 8:52 AMMickaël Lacour
09/23/2024, 8:54 AM