This repository was archived by the owner on Sep 30, 2024. It is now read-only.
gitserver: grpc: port DiffSymbols from client as new GitBackend.ChangedFiles() func#62252
Merged
ggilmore merged 1 commit intoMay 7, 2024
Conversation
This was referenced Apr 29, 2024
Contributor
Author
d02b395 to
39e5cfb
Compare
cc96f91 to
75dd653
Compare
39e5cfb to
3e6f221
Compare
75dd653 to
18d4bba
Compare
3e6f221 to
ca768ec
Compare
18d4bba to
7a9e364
Compare
ca768ec to
dd16782
Compare
7a9e364 to
319d6a9
Compare
dd16782 to
6d618e6
Compare
319d6a9 to
d8cb7fe
Compare
6d618e6 to
a450397
Compare
d8cb7fe to
59cae3e
Compare
a450397 to
48fb88c
Compare
59cae3e to
43d8723
Compare
48fb88c to
1a44563
Compare
43d8723 to
9e1c79e
Compare
1a44563 to
8ad5a04
Compare
This was referenced May 1, 2024
Merged
666d72e to
1740b89
Compare
1137bf8 to
305509c
Compare
1740b89 to
15bf6fb
Compare
305509c to
2e3e0ff
Compare
15bf6fb to
9ffa2d5
Compare
2e3e0ff to
71f085f
Compare
9ffa2d5 to
34cd911
Compare
57d4a5c to
82e2db3
Compare
ggilmore
commented
May 1, 2024
eseliger
approved these changes
May 1, 2024
34cd911 to
b56c84d
Compare
82e2db3 to
5650c82
Compare
b56c84d to
0ed26eb
Compare
5650c82 to
f800d7e
Compare
pjlast
reviewed
May 6, 2024
pjlast
approved these changes
May 6, 2024
Contributor
Author
|
@sourcegraph/source Could you please re-review this (and the upstream PRs)? I refactored the approach to use the iterator pattern. |
eseliger
approved these changes
May 6, 2024
eseliger
left a comment
Member
There was a problem hiding this comment.
LGTM, left a question about using an iterator here as well
Comment on lines
110
to
116
Member
There was a problem hiding this comment.
The logic in LogReverseEach that we had here: https://github.com/sourcegraph/sourcegraph/pull/62260/files#diff-e7b89c0e3e24a2fda065a7cfa5f06f7b7def4d36189d88e495e5b40f5ca9795fL112-L194 also does some more checks on submodule status and stuff. Not sure if needed here, but might be cool for consolidation. We can do that separately though
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Part of https://github.com/sourcegraph/sourcegraph/issues/61691
This PR adds a new method, ChangedFiles to the git cli backend that lists the files that between the base and head commits, along with their added/modified/deleted status. Unlike the current workflow that involves multiple callsites with their own implementations for parsing the raw gitserver exec output, all the parsing now happens server-side and is well tested.
This functionality should be able to subsume the other diff-tree / diff use-cases in:
Test plan
Added new unit tests: