LEP: Git-style revision show command proposal#109
Open
theRTC204 wants to merge 1 commit into
Open
Conversation
Collaborator
|
Hey thanks for this LEP. Could you please elaborate a bit more on what the use case for this is and why, besides the N~1 issue for the root revision, it's not ok to just call the two separate commands to get the info you need (info and diff). I'm not sure adding a new command to do something similar which can already be composed is the right solution. I think too many variants of similar things is one of the failings of git. |
Signed-off-by: Ryan Carbotte <ryancarbotte@gmail.com>
3b3ed5c to
cdecf51
Compare
Author
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Summary
This proposal adds a Git-style
lore revision show <revision>command that combines the outputs oflore revision info --deltaandlore file diffinto a single output similar to that ofgit show <revision>.At present two distinct commands are required in order to get details of a specific commit.
lore revision info --deltafor the metadata and file-action summarylore file difffor the content of the changesThe current design complicates the implementation for consumers of the CLI/CAPI who wish to visualize the contents of a repository on a per-commit basis, such as a visual diff tool, IDE or engine integration. Furthermore, the current implementation of
lore file diffmakes it impossible to visually display the contents of the root revision in a Lore repository.