Skip to content

Commit

Permalink
refactor: minor comments/names fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
norskeld committed Apr 7, 2024
1 parent 4fcd5b5 commit b7f51d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub struct Cli {
#[command(subcommand)]
pub command: BaseCommand,

/// Cleanup on failure.
/// Cleanup on failure. No-op if failed because target directory already exists.
#[arg(global = true, short = 'C', long)]
cleanup: bool,

Expand Down Expand Up @@ -139,7 +139,7 @@ impl App {
// Try to fetch refs early. If we can't get them, there's no point in continuing.
remote.fetch_refs()?;

// Try to select a ref.
// Try to resolve a ref to specific hash.
let hash = remote.resolve_hash()?;

let name = path.as_ref().unwrap_or(&remote.repo);
Expand Down
4 changes: 2 additions & 2 deletions src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const CACHE_ROOT: &str = "AppData/Local/arx/.cache";
#[cfg(not(target_os = "windows"))]
const CACHE_ROOT: &str = ".cache/arx";

/// `<CACHE_ROOT>/cached/<hash>.tar.gz`
/// `<CACHE_ROOT>/tarballs/<hash>.tar.gz`
const CACHE_TARBALLS_DIR: &str = "tarballs";

/// `<CACHE_ROOT>/manifest.toml`
Expand Down Expand Up @@ -82,7 +82,7 @@ pub struct Template {
pub struct Item {
/// Unix timestamp in milliseconds.
timestamp: i64,
/// BLAKE3 hash of the tarball contents.
/// Ref/commit hash, either short of full
hash: String,
}

Expand Down

0 comments on commit b7f51d7

Please sign in to comment.