community/git-warp-time: upgrade to 0.6.1

This commit is contained in:
Celeste 2023-12-08 03:53:24 +00:00 committed by Michał Polański
parent fc2b4951d6
commit fe87cdf0ef
2 changed files with 39 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=git-warp-time
pkgver=0.5.2
pkgver=0.6.1
pkgrel=0
pkgdesc="Reset timestamps of Git repository files to the time of the last modifying commit"
url="https://github.com/alerque/git-warp-time"
@ -10,7 +10,9 @@ arch="all"
makedepends="cargo cargo-auditable"
subpackages="$pkgname-bash-completion $pkgname-fish-completion $pkgname-zsh-completion"
options="net"
source="https://github.com/alerque/git-warp-time/archive/v$pkgver/git-warp-time-$pkgver.tar.gz"
source="https://github.com/alerque/git-warp-time/archive/v$pkgver/git-warp-time-$pkgver.tar.gz
fix-doctest.patch
"
prepare() {
default_prepare
@ -46,5 +48,6 @@ package() {
}
sha512sums="
bd16733164251d8ccec1cb52d434c56c3db7d65ad00d1a1340606acf07b3a53c69f4d01dbe182887e97c4b08d92040c3fd82e53670dcc958a6a04249f1fb1ae8 git-warp-time-0.5.2.tar.gz
86a60482415c938b431f3c009b63d2a09276710989d7d1c5747268527a1303c6709789581ca932ba285f475b1632457e68bd78b1456d7fab9711558a5e54fc82 git-warp-time-0.6.1.tar.gz
e88ba011e5cdf06415652652a9944388eec701f152508c65d720a33ed3fec75b3e74f6f2d038c502aa777e9109feb79c25689ae28fd431ff0f24b065c46916c5 fix-doctest.patch
"

View File

@ -0,0 +1,33 @@
Patch-Source: https://github.com/alerque/git-warp-time/commit/da9d375a9eb8ef4f720ecd687d2ec89a86621e65.patch
--
From da9d375a9eb8ef4f720ecd687d2ec89a86621e65 Mon Sep 17 00:00:00 2001
From: Caleb Maclennan <caleb@alerque.com>
Date: Thu, 7 Dec 2023 17:24:41 +0300
Subject: [PATCH] docs: Update docs with recent API change
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index f95e47d..9ac6485 100644
--- a/README.md
+++ b/README.md
@@ -52,7 +52,7 @@ git-warp-time = "0.5"
Then use the crate functions and types in your project something like this:
```rust
-use git_warp_time::{get_repo, reset_mtime};
+use git_warp_time::{get_repo, reset_mtimes};
use git_warp_time::{FileSet, Options};
fn main() {
@@ -61,7 +61,7 @@ fn main() {
paths.insert("foo.txt".to_string());
let mut opts = Options::new();
opts.verbose(true).paths(Some(paths));
- let files = reset_mtime(repo, opts).unwrap();
+ let files = reset_mtimes(repo, opts).unwrap();
println!("Actioned files: {:?}", files);
}
```