History

Hookup explain command (#427)

Sebastian Thiel committed 4 years ago

Commit 1049b001 parent 12e62774 files · +25 −1Browse files

Showing the changes to src (1 of 4 files). Show all

Unified · Split

src/plumbing/main.rs+10−1
@@ -161,7 +161,16 @@ pub fn main() -> Result<()> { · 160 unmodified lines
161161 let repository = git::ThreadSafeRepository::discover(repository)?;
162162 match cmd {
163163 repo::Subcommands::Revision { cmd } => match cmd {
164− repo::revision::Subcommands::Explain { spec: _ } => todo!("describe spec"),
164+ repo::revision::Subcommands::Explain { spec } => prepare_and_run(
165+ "repository-commit-describe",
166+ verbose,
167+ progress,
168+ progress_keep_open,
169+ None,
170+ move |_progress, out, err| {
171+ core::repository::revision::explain(repository.into(), spec, out, err)
172+ },
173+ ),
165174 },
166175 repo::Subcommands::Commit { cmd } => match cmd {
167176 repo::commit::Subcommands::Describe {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t