Skip to content

Commit 193b790

Browse files
committed
chore(deps): Bump major change to git-warp-time
1 parent f96f723 commit 193b790

File tree

4 files changed

+60
-9
lines changed

4 files changed

+60
-9
lines changed

Cargo.lock

Lines changed: 47 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ unic-langid = "0.9"
3737
default-features = false
3838

3939
[dependencies.git-warp-time]
40-
version = "0.5"
40+
version = "0.6"
4141
default-features = false
4242

4343
[dependencies.Inflector]

src/script/mod.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,20 @@ pub fn run(name: String, arguments: Vec<OsString>) -> Result<()> {
2424
.env("PROJECTVERSION", git_version);
2525
let repo = get_repo()?;
2626
let workdir = repo.workdir().unwrap();
27-
process = process.cwd(workdir);
28-
let process = process.stderr(Redirection::Pipe).stdout(Redirection::Pipe);
27+
process = process
28+
.cwd(workdir)
29+
.stderr(Redirection::Pipe)
30+
.stdout(Redirection::Pipe);
31+
eprintln!("all the way to base whatsit");
2932
let mut popen = process.popen()?;
30-
let buf = io::BufReader::new(popen.stdout.as_mut().unwrap());
31-
for line in buf.lines() {
33+
let bufstdout = io::BufReader::new(popen.stdout.as_mut().unwrap());
34+
// let bufstderr = io::BufReader::new(popen.stderr.as_mut().unwrap());
35+
for line in bufstdout.lines() {
3236
let text: &str =
3337
&line.unwrap_or_else(|_| String::from("INVALID UTF-8 FROM CHILD PROCESS STREAM"));
3438
println!("{text}");
3539
}
40+
let status = popen.wait().expect("Failed for foo");
41+
dbg!(status);
3642
Ok(())
3743
}

src/setup/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use crate::*;
33

44
use colored::Colorize;
55
use git2::{Repository, Status};
6-
use git_warp_time::reset_mtime;
6+
use git_warp_time::reset_mtimes;
77
use std::io::prelude::*;
88
use std::sync::{Arc, RwLock};
99
use std::{fs, io, path};
@@ -174,7 +174,7 @@ fn warp_time(repo: Repository) -> Result<()> {
174174
let opts = git_warp_time::Options::new();
175175
let text = LocalText::new("setup-warp-time").fmt();
176176
eprintln!("{} {}", "┠┄".cyan(), text);
177-
let files = reset_mtime(repo, opts)?;
177+
let files = reset_mtimes(repo, opts)?;
178178
match CONF.get_bool("verbose")? {
179179
true => {
180180
for file in files.iter() {

0 commit comments

Comments
 (0)