mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[PR #315] [MERGED] feat: default option for depth from config file #419
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/bootandy/dust/pull/315
Author: @yitsushi
Created: 2/28/2023
Status: ✅ Merged
Merged: 3/7/2023
Merged by: @bootandy
Base:
master← Head:default-depth📝 Commits (2)
78df4befeat: default option for depth from config fileff56793remove depth from config.toml and fix style issues📊 Changes
5 files changed (+66 additions, -3 deletions)
View changed files
📝
config/config.toml(+15 -0)📝
src/config.rs(+48 -0)📝
src/display.rs(+1 -1)📝
src/main.rs(+1 -1)📝
tests/test_flags.rs(+1 -1)📄 Description
--depthflag is not defined (or it has an invalid value), a value from the config file will be used.depthentry in the config file (or there is no config file), the defaultusize::MAXwill be used.Added test cases:
usize::MAXshould be usedAdditional changes:
config.tomlfile. (copy from flag description)Closes #314
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.