-
Notifications
You must be signed in to change notification settings - Fork 36.5k
Initial support for a timeline (file history) view #89262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
99eb494
Adds timeline view & api providers (wip) — #84297
c9fab1f
Adds timeline diff on click and icon support
3705e68
Adds refresh for when timeline changes
5233761
Adds index (staged changes) to timeline
4f42834
Polishes the timeline UI/UX
2f0ea06
Removes open diff command from palette
e2bbb45
Fixes open diff command (backwards)
0bdf0b8
Adds nls folder for timeline
d6f818b
Removes ==
89970a6
Removes timeout/racing for now
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ | |
| *--------------------------------------------------------------------------------------------*/ | ||
|
|
||
| import 'mocha'; | ||
| import { GitStatusParser, parseGitCommit, parseGitmodules, parseLsTree, parseLsFiles } from '../git'; | ||
| import { GitStatusParser, parseGitCommits, parseGitmodules, parseLsTree, parseLsFiles } from '../git'; | ||
| import * as assert from 'assert'; | ||
| import { splitInChunks } from '../util'; | ||
|
|
||
|
|
@@ -191,42 +191,42 @@ suite('git', () => { | |
| const GIT_OUTPUT_SINGLE_PARENT = `52c293a05038d865604c2284aa8698bd087915a1 | ||
| [email protected] | ||
| 8e5a374372b8393906c7e380dbb09349c5385554 | ||
| This is a commit message.`; | ||
| This is a commit message.\x00`; | ||
|
|
||
| assert.deepEqual(parseGitCommit(GIT_OUTPUT_SINGLE_PARENT), { | ||
| assert.deepEqual(parseGitCommits(GIT_OUTPUT_SINGLE_PARENT), [{ | ||
| hash: '52c293a05038d865604c2284aa8698bd087915a1', | ||
| message: 'This is a commit message.', | ||
| parents: ['8e5a374372b8393906c7e380dbb09349c5385554'], | ||
| authorEmail: '[email protected]', | ||
| }); | ||
| }]); | ||
| }); | ||
|
|
||
| test('multiple parent commits', function () { | ||
| const GIT_OUTPUT_MULTIPLE_PARENTS = `52c293a05038d865604c2284aa8698bd087915a1 | ||
| [email protected] | ||
| 8e5a374372b8393906c7e380dbb09349c5385554 df27d8c75b129ab9b178b386077da2822101b217 | ||
| This is a commit message.`; | ||
| This is a commit message.\x00`; | ||
|
|
||
| assert.deepEqual(parseGitCommit(GIT_OUTPUT_MULTIPLE_PARENTS), { | ||
| assert.deepEqual(parseGitCommits(GIT_OUTPUT_MULTIPLE_PARENTS), [{ | ||
| hash: '52c293a05038d865604c2284aa8698bd087915a1', | ||
| message: 'This is a commit message.', | ||
| parents: ['8e5a374372b8393906c7e380dbb09349c5385554', 'df27d8c75b129ab9b178b386077da2822101b217'], | ||
| authorEmail: '[email protected]', | ||
| }); | ||
| }]); | ||
| }); | ||
|
|
||
| test('no parent commits', function () { | ||
| const GIT_OUTPUT_NO_PARENTS = `52c293a05038d865604c2284aa8698bd087915a1 | ||
| [email protected] | ||
|
|
||
| This is a commit message.`; | ||
| This is a commit message.\x00`; | ||
|
|
||
| assert.deepEqual(parseGitCommit(GIT_OUTPUT_NO_PARENTS), { | ||
| assert.deepEqual(parseGitCommits(GIT_OUTPUT_NO_PARENTS), [{ | ||
| hash: '52c293a05038d865604c2284aa8698bd087915a1', | ||
| message: 'This is a commit message.', | ||
| parents: [], | ||
| authorEmail: '[email protected]', | ||
| }); | ||
| }]); | ||
| }); | ||
| }); | ||
|
|
||
|
|
||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, I'll wait for this to come in before merging #89005.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The merge probably wouldn't go very well, since I changed the parsing from how it was. But I can easily add
commitDatein if we want.