Skip to content

Rename file diffs and commits - #505

Merged
shiftkey merged 14 commits into
masterfrom
rename-diffs
Oct 10, 2016
Merged

shiftkey merged 14 commits into
masterfrom
rename-diffs

Conversation

@niik

@niik niik commented Oct 10, 2016

Copy link
Copy Markdown
Member

Fixes #174, #495

This fixes comitting of already-staged renamed files, changes the diff of a renamed to only show any changes from the original file, and adds experimental support for partial committing of renamed+modified files.

There's one caveat which I've documented in getWorkingDirectoryDiff that I think we'll have to live with for now unless anyone has a great idea.

private static async applyPatchToIndex(repository: Repository, file: WorkingDirectoryFileChange): Promise<void> {

// If the file was a rename we have to recreate that rename since we've
// just blown away the index. This of this block of weird looking commands

This comment was marked as spam.

@shiftkey

Copy link
Copy Markdown
Member

#jolo so I can take the diffs stuff further in #508

@shiftkey
shiftkey merged commit 434563c into master Oct 10, 2016
@shiftkey
shiftkey deleted the rename-diffs branch October 10, 2016 08:44
@niik niik mentioned this pull request Nov 8, 2016
2 tasks done
mijiang168 pushed a commit to mijiang168/desktop that referenced this pull request Apr 22, 2022
mijiang168 pushed a commit to mijiang168/desktop that referenced this pull request Apr 22, 2022
yasuking0304 pushed a commit to yasuking0304/desktop that referenced this pull request Jan 22, 2023
yasuking0304 pushed a commit to yasuking0304/desktop that referenced this pull request Jan 22, 2023
yasuking0304 pushed a commit to yasuking0304/desktop that referenced this pull request Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants