Skip to content

Commit 985f608

Browse files
authored
Merge pull request #12 from cloneable/release-0.2.1
Release 0.2.1
2 parents fbc4f00 + 85d2a58 commit 985f608

8 files changed

Lines changed: 108 additions & 174 deletions

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "stc"
33
description = "[WIP] Easy stacking of dev branches in git repositories."
4-
version = "0.1.2"
4+
version = "0.2.1"
55
authors = ["Folke Behrens <folke@gmail.com>"]
66
edition = "2021"
77
repository = "https://github.com/cloneable/stc/"
@@ -11,25 +11,27 @@ keywords = ["git"]
1111
exclude = [".gitignore", ".github", "target"]
1212

1313
[dependencies]
14-
anyhow = "1.0.57"
15-
const_format = "0.2.24"
16-
serde = { version = "1.0.137", features = ["derive"] }
17-
csv = "1.1.6"
18-
thiserror = "1.0.31"
14+
anyhow = "1"
15+
const_format = "0.2"
16+
serde = { version = "1", features = ["derive"] }
17+
csv = "1"
18+
thiserror = "1"
1919

2020
[dependencies.clap]
21-
version = "3.1.18"
21+
version = "3"
2222
default-features = false
2323
features = ["std", "derive"]
2424

2525
[dev-dependencies]
26-
assert_cmd = "2.0.4"
27-
assert_fs = "1.0.7"
28-
phf = { version = "0.10.1", features = ["macros"] }
29-
predicates = "2.1.1"
26+
assert_cmd = "2"
27+
assert_fs = "1"
28+
phf = { version = "0.11", features = ["macros"] }
29+
predicates = "2"
3030

3131
[profile.release]
3232
lto = true
3333
opt-level = 3
3434
codegen-units = 1
3535
panic = "abort"
36+
debug = 1
37+
strip = "none"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# stc
22

3-
(Work in Progress)
3+
(work in progress; very experimental)
44

55
Easy git rebasing of stacked feature branches
66

src/git.rs

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
1-
use ::anyhow::Result;
2-
use ::const_format::concatcp;
3-
use ::csv::ReaderBuilder;
4-
use ::serde::Deserialize;
5-
use ::std::{
6-
self,
1+
use anyhow::Result;
2+
use const_format::concatcp;
3+
use csv::ReaderBuilder;
4+
use serde::Deserialize;
5+
use std::{
76
borrow::{Cow, ToOwned},
8-
clone::Clone,
97
collections::{BTreeSet, HashMap},
108
convert::{AsRef, Into},
11-
iter::{IntoIterator, Iterator},
12-
option::Option::{self, Some},
13-
result::Result::{Err, Ok},
149
string::{String, ToString},
15-
vec::Vec,
1610
write,
1711
};
18-
use ::thiserror::Error;
12+
use thiserror::Error;
1913

2014
pub const NON_EXISTANT_OBJECT: ObjectName<'static> =
2115
ObjectName::new("0000000000000000000000000000000000000000");
@@ -285,7 +279,7 @@ impl<'a> RefName<'a> {
285279
}
286280
}
287281

288-
#[derive(Deserialize, PartialEq, PartialOrd, Clone, Debug)]
282+
#[derive(Deserialize, PartialEq, Eq, PartialOrd, Clone, Debug)]
289283
pub struct ObjectName<'a>(pub Cow<'a, str>);
290284

291285
impl<'a> ObjectName<'a> {
@@ -302,7 +296,7 @@ impl<'a> ObjectName<'a> {
302296
}
303297
}
304298

305-
#[derive(Deserialize, PartialEq, PartialOrd, Debug)]
299+
#[derive(Deserialize, PartialEq, Eq, PartialOrd, Debug)]
306300
pub struct RemoteName<'a>(Cow<'a, str>);
307301

308302
impl<'a> RemoteName<'a> {
@@ -319,7 +313,7 @@ impl<'a> RemoteName<'a> {
319313
}
320314
}
321315

322-
#[derive(Deserialize, PartialEq, Debug)]
316+
#[derive(Deserialize, PartialEq, Eq, Debug)]
323317
#[serde(rename_all = "lowercase")]
324318
pub enum RefType {
325319
Commit,
@@ -328,7 +322,7 @@ pub enum RefType {
328322
Tag,
329323
}
330324

331-
#[derive(Deserialize, PartialEq, Debug)]
325+
#[derive(Deserialize, PartialEq, Eq, Debug)]
332326
pub struct Ref<'a> {
333327
pub name: RefName<'a>,
334328
pub head: bool,

src/main.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
#![no_implicit_prelude]
21
#![allow(missing_docs)] // TODO: change to warn/deny
32
#![allow(dead_code)] // TODO: remove
43

5-
use ::anyhow::Result;
6-
use ::clap::{self, Parser, Subcommand};
7-
use ::std::{
8-
format,
9-
option::Option::{self, None, Some},
10-
string::String,
11-
};
4+
use anyhow::Result;
5+
use clap::{self, Parser, Subcommand};
126

137
mod git;
148
mod runner;

src/runner.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
use crate::git;
2-
use ::anyhow::Result;
3-
use ::std::{
2+
use anyhow::Result;
3+
use std::{
44
collections::HashMap,
5-
convert::Into,
6-
option::Option::Some,
75
path::PathBuf,
86
process::{Command, Stdio},
9-
result::Result::{Err, Ok},
107
};
118

129
pub struct Runner<'a> {

src/stc.rs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
use crate::git;
2-
use ::anyhow::Result;
3-
use ::std::{
4-
self,
5-
convert::Into,
6-
option::Option::{self, Some},
7-
result::Result::{Err, Ok},
8-
string::{String, ToString},
9-
write,
10-
};
11-
use ::thiserror::Error;
2+
use anyhow::Result;
3+
use std::write;
4+
use thiserror::Error;
125

136
#[derive(Error, Debug)]
147
pub enum StcError {

tests/integration_test.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
use ::assert_fs::{assert::PathAssert, fixture::PathChild};
2-
use ::phf::{phf_map, Map};
3-
use ::predicates::prelude::*;
4-
use ::std::{
1+
use assert_fs::{assert::PathAssert, fixture::PathChild};
2+
use phf::{phf_map, Map};
3+
use predicates::prelude::*;
4+
use std::{
55
env,
66
fs::File,
77
io::{Read, Write},

0 commit comments

Comments
 (0)