Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

File history revert - #1009

Merged
StanleyGoldman merged 2 commits into
github-for-unity:file-history-viewfrom
bonfirestudios:file-history-revert
Feb 12, 2019
Merged

StanleyGoldman merged 2 commits into
github-for-unity:file-history-viewfrom
bonfirestudios:file-history-revert

Conversation

@sambonfire

Copy link
Copy Markdown
Contributor

Description of the Change

The main change is that this allows you to revert an individual file to a specific point in time.

This PR also has some changes in it that allow the UI to survive domain reloads (previously, the title and icon would disappear but the history view would persist).

Alternate Designs

Many ways to do this; happy to make changes if I'm breaking any sorts of conventions.

Benefits

Users are prompted if the file they are reverting is changed locally (so it's safe). Perhaps an even better fix would be to move the existing file into the recycle bin so they could restore it if necessary? This also allows the UI to survive domain reloads

Possible Drawbacks

I don't see much use of the GitClient in the UI layer so I'm not sure if I'm violating some convention..

Applicable Issues

none

@StanleyGoldman

Copy link
Copy Markdown
Contributor

Thanks @sambonfire

I got some changes to what you did here but it's looking good.

@StanleyGoldman
StanleyGoldman merged commit 24dd8be into github-for-unity:file-history-view Feb 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants