Skip to content

Commit

Permalink
chore(deps): Bump major change to git-warp-time
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Dec 7, 2023
1 parent f96f723 commit 193b790
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 9 deletions.
49 changes: 47 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -37,7 +37,7 @@ unic-langid = "0.9"
default-features = false

[dependencies.git-warp-time]
version = "0.5"
version = "0.6"
default-features = false

[dependencies.Inflector]
Expand Down
14 changes: 10 additions & 4 deletions src/script/mod.rs
Expand Up @@ -24,14 +24,20 @@ pub fn run(name: String, arguments: Vec<OsString>) -> Result<()> {
.env("PROJECTVERSION", git_version);
let repo = get_repo()?;
let workdir = repo.workdir().unwrap();
process = process.cwd(workdir);
let process = process.stderr(Redirection::Pipe).stdout(Redirection::Pipe);
process = process
.cwd(workdir)
.stderr(Redirection::Pipe)
.stdout(Redirection::Pipe);
eprintln!("all the way to base whatsit");
let mut popen = process.popen()?;
let buf = io::BufReader::new(popen.stdout.as_mut().unwrap());
for line in buf.lines() {
let bufstdout = io::BufReader::new(popen.stdout.as_mut().unwrap());
// let bufstderr = io::BufReader::new(popen.stderr.as_mut().unwrap());
for line in bufstdout.lines() {
let text: &str =
&line.unwrap_or_else(|_| String::from("INVALID UTF-8 FROM CHILD PROCESS STREAM"));
println!("{text}");
}
let status = popen.wait().expect("Failed for foo");
dbg!(status);
Ok(())
}
4 changes: 2 additions & 2 deletions src/setup/mod.rs
Expand Up @@ -3,7 +3,7 @@ use crate::*;

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

0 comments on commit 193b790

Please sign in to comment.