Skip to content

Commit

Permalink
remove unused param
Browse files Browse the repository at this point in the history
  • Loading branch information
iesahin committed Nov 29, 2024
1 parent b4b32e8 commit fd18901
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
14 changes: 3 additions & 11 deletions core/src/util/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,7 @@ pub fn exec_git(git_command: &str, xvc_directory: &str, args_str_vec: &[&str]) -
///
/// NOTE: Assumptions for this function:
/// - No submodules
pub fn get_git_tracked_files(
output_snd: &XvcOutputSender,
git_command: &str,
xvc_directory: &str,
) -> Result<Vec<String>> {
pub fn get_git_tracked_files(git_command: &str, xvc_directory: &str) -> Result<Vec<String>> {
let git_ls_files_out = exec_git(git_command, xvc_directory, &["ls-files", "--full-name"])?;
watch!(git_ls_files_out);
let git_ls_files_out = git_ls_files_out
Expand Down Expand Up @@ -289,12 +285,8 @@ pub fn git_auto_stage(
Ok(())
}

pub fn git_ignored(
output_snd: &XvcOutputSender,
git_command: &str,
xvc_root_str: &str,
path: &str,
) -> Result<bool> {
/// Run `git check-ignore` to check if a path is ignored by Git
pub fn git_ignored(git_command: &str, xvc_root_str: &str, path: &str) -> Result<bool> {
let command_res = exec_git(git_command, xvc_root_str, &["check-ignore", path])?;

if command_res.trim().is_empty() {
Expand Down
1 change: 0 additions & 1 deletion file/src/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,6 @@ pub fn targets_from_disk(
let git_command_str = xvc_root.config().get_str("git.command")?.option;
let git_command = get_absolute_git_command(&git_command_str)?;
get_git_tracked_files(
output_snd,
&git_command,
xvc_root
.absolute_path()
Expand Down

0 comments on commit fd18901

Please sign in to comment.