Skip to content

Commit

Permalink
cleanup: feature "man-pages" > "separate-binaries"
Browse files Browse the repository at this point in the history
Rename some leftover (feature = "man-pages") to "separate-binaries"
which is more descriptive. This is still an un-implemented feature, but
it could be revived in the future for better user experience.
  • Loading branch information
bryango committed Mar 10, 2024
1 parent afaa91e commit cf4275a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions git-branchless-init/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ fn uninstall_hooks(effects: &Effects, git_run_info: &GitRunInfo, repo: &Repo) ->
/// subcommand is included in the `man` invocation, so it can show more specific
/// help.
fn should_use_wrapped_command_alias() -> bool {
cfg!(feature = "man-pages")
cfg!(feature = "separate-binaries") // unimplemented
}

#[instrument]
Expand Down Expand Up @@ -694,7 +694,7 @@ contents 3

#[test]
fn test_all_alias_binaries_exist() {
let all_alias_binaries_installed = cfg!(feature = "man-pages");
let all_alias_binaries_installed = cfg!(feature = "separate-binaries"); // unimplemented
if !all_alias_binaries_installed {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion git-branchless/tests/test_init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ fn test_init_uninstall() -> eyre::Result<()> {
Ok(())
}

#[cfg(feature = "man-pages")]
#[cfg(feature = "separate-binaries")] // unimplemented
#[test]
fn test_man_viewer_installed() -> eyre::Result<()> {
use std::collections::HashMap;
Expand Down

0 comments on commit cf4275a

Please sign in to comment.