Skip to content
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

Show file contents from commit or stash #269

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Rutherther
Copy link
Contributor

This requires #268, otherwise, there would be an error in arguments to stashToMagitChanges.

Emacs magit allows browsing contents of files from older configs or changes that were stashed. I tried to implement something similar here.

The way it works is that it opens an unsaved file, with ~{commit hash}~ before the extension (that is to let vscode recognize language correctly). If the user saves the file, it will be saved right away, without any warnings or anything like that. I think it would be great if that could be changed because it's probably not the intended use case to save the file. The thing is that I am not sure how to achieve that in an effective way.

I am open to ideas on improving this.

@danilonovaisv
Copy link

access

@danilonovaisv
Copy link

approved

@kahole
Copy link
Owner

kahole commented Sep 11, 2023

What in the spam is happening... I would rather not block you ... @danilonovaisv

@kahole
Copy link
Owner

kahole commented Oct 8, 2023

Fix the merge conflicts and I'll be happy to merge this 👍

@Rutherther
Copy link
Contributor Author

Hello. I don't think this is in state where it could be merged. It has some issues, such as showing whether the user wants to save the file, and if the user clicks on save, it will get saved to the directory. I am not very skilled with vscode extensions, so I don't really know what's the best way of getting around this. I made this a draft because of that.

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.

3 participants