Skip to content

Commit 6af0292

Browse files
committed
Rename Stupid::diff_tree_files_status()
This method is a particular invocation of `git diff-tree` meant to supplement the output of `stg files`. This frees the name `diff_tree_files` for a more general purpose behavior.
1 parent ac42629 commit 6af0292

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cmd/files.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ fn run(matches: &ArgMatches) -> Result<()> {
5757
let opt_spec = crate::argset::get_one_str(matches, "stgit-revision");
5858
let commit = parse_stgit_revision(&repo, opt_spec, None)?.peel_to_commit()?;
5959
let parent = commit.parent(0)?;
60-
let mut output = repo.stupid().diff_tree_files(
60+
let mut output = repo.stupid().diff_tree_files_status(
6161
parent.tree_id(),
6262
commit.tree_id(),
6363
matches.contains_id("stat"),

src/stupid.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ impl<'repo, 'index> StupidContext<'repo, 'index> {
559559
}
560560

561561
/// Interative diff-tree (for 'stg files').
562-
pub(crate) fn diff_tree_files(
562+
pub(crate) fn diff_tree_files_status(
563563
&self,
564564
tree1: git2::Oid,
565565
tree2: git2::Oid,

0 commit comments

Comments
 (0)