Skip to content

Commit

Permalink
Release v0.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ajeetdsouza committed Jun 10, 2021
1 parent e739168 commit a95e3c7
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 42 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.7.2] - 2021-06-10

### Fixed

- `zoxide -V` not printing version.

## [0.7.1] - 2021-06-09

### Added
Expand Down Expand Up @@ -242,6 +248,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- GitHub Actions pipeline to build and upload releases.
- Support for zsh.

[0.7.2]: https://github.com/ajeetdsouza/zoxide/compare/v0.7.1...v0.7.2
[0.7.1]: https://github.com/ajeetdsouza/zoxide/compare/v0.7.0...v0.7.1
[0.7.0]: https://github.com/ajeetdsouza/zoxide/compare/v0.6.0...v0.7.0
[0.6.0]: https://github.com/ajeetdsouza/zoxide/compare/v0.5.0...v0.6.0
Expand Down
65 changes: 28 additions & 37 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
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zoxide"
version = "0.7.1"
version = "0.7.2"
authors = ["Ajeet D'Souza <[email protected]>"]
edition = "2018"
description = "A smarter cd command for your terminal"
Expand Down
11 changes: 7 additions & 4 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ use std::env;
use std::process::Command;

fn git_version() -> Option<String> {
// Packages releases of zoxide almost always use the source tarball
// provided by GitHub, which does not include the `.git` folder. Since this
// feature is only useful for development, there's no need of printing a
// warning here.
let mut git = Command::new("git");
git.args(&["describe", "--tags", "--broken"]);

let output = git.output().ok()?;
if !output.status.success() || output.stdout.is_empty() || !output.stderr.is_empty() {
return None;
}
String::from_utf8(output.stdout).ok()
}

Expand Down Expand Up @@ -39,6 +38,10 @@ fn generate_completions() {
}

fn main() {
// Packaged releases of zoxide almost always use the source tarball
// provided by GitHub, which does not include the `.git` folder. Since this
// feature is only useful for development, we can silently fall back to
// using the crate version.
let version = git_version().unwrap_or_else(crate_version);
println!("cargo:rustc-env=ZOXIDE_VERSION={}", version);

Expand Down
2 changes: 2 additions & 0 deletions man/zoxide-query.1
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ algorithm is described in \fBzoxide\fR(1).
.TP
.B --all
Show deleted directories.
.B --exclude \fIPATH\fR
Exclude a path from query results.
.TP
.B -h, --help
Print help information.
Expand Down

0 comments on commit a95e3c7

Please sign in to comment.