The default output format is -raw, which prints a list of changed files: > git-diff-tree -raw -r -find-renames HEAD~ HEAD Git-diff-tree is a low-level (plumbing) git command that can be used to compare the contents of two tree objects and output the comparison result in different ways. Diff “table of contents” with git-diff-tree Lucky for us, Git provides an excellent plumbing command called git-diff-tree. We wanted to verify accuracy and monitor any performance impact by running the old and new diff loading strategies in production, side-by-side, before changing to the new progressive loading strategy. These discrete sections could later be assembled by the user’s browser.īut to achieve this without disrupting the user experience, our new solution also needed to be flexible enough to load and display diffs identically to how we were doing it in production to date. We wanted a solution that would allow us to get a high-level overview of all changes in a diff, and then load the patch texts for the individual changed files “progressively”. To achieve the aforementioned goals, we had to come up with a new and better approach to handling large diffs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |