LEP: Git-style revision show command proposal#109
Conversation
|
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
|
Ok I understand the pain for sure and I've come around a bit. I think your alternaive of something like Then theres the case where we want only a patch, no metadata. We already have @ajcarberry @mjansson wdyt? |

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.