You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for creating a great tool.
I'm sorry if the behavior this is a specification.
Describe the bug
The global configuration file has the highest priority.
Is this the expected behavior?
Load the global configuration file even if cliff.toml is in the current directory.
To Reproduce
Create git repository.
Create git-cliff three configuration files.
local (cliff.toml)
global (~/.config/git-cliff/cliff.toml)
The file specified by --config (config.toml)
run git cliff
Load global configuration file.
run git cliff --config config.toml
Load global configuration file.
Expected behavior
This is an environment with a global configuration file.
git cliff
cliff.toml exists in the current directory:: Load cliff.toml in the current directory.
cliff.toml does not exists in the current directory:: Load global configuration.
git cliff --config <PATH>
<PATH> exists:: Load <PATH>.
<PATH> does not exist:: Load embedded default configuration file into the binary.
Screenshots/Logs
Check the file exists & Check diff
$ ls
cliff.toml config.toml
$ diff cliff.toml config.toml
6c6
<# local config
---
># config option
27c27
<<!-- local config -->
---
><!-- config option -->
$ diff cliff.toml ~/.config/git-cliff/cliff.toml
6c6
<# local config
---
># global config
27c27
<<!-- local config -->
---
><!-- global config -->
A global configuration file exists
$ git cliff
# global config## [unreleased]### Miscellaneous Tasks
- Add git-cliff toml
<!-- global config -->
$ git cliff --config config.toml
# global config## [unreleased]### Miscellaneous Tasks
- Add git-cliff toml
<!-- global config -->
Thank you for creating a great tool.
I'm sorry if the behavior this is a specification.
Describe the bug
The global configuration file has the highest priority.
Is this the expected behavior?
Load the global configuration file even if
cliff.toml
is in the current directory.To Reproduce
cliff.toml
)~/.config/git-cliff/cliff.toml
)--config
(config.toml
)git cliff
Load global configuration file.
git cliff --config config.toml
Load global configuration file.
Expected behavior
This is an environment with a global configuration file.
git cliff
cliff.toml
exists in the current directory:: Loadcliff.toml
in the current directory.cliff.toml
does not exists in the current directory:: Load global configuration.git cliff --config <PATH>
<PATH>
exists:: Load<PATH>
.<PATH>
does not exist:: Load embedded default configuration file into the binary.Screenshots/Logs
Check the file exists & Check diff
A global configuration file exists
A global configuration file does not exist
System (please complete the following information):
Additional context
Current Behavior
This is an environment with a global configuration file.
git cliff
cliff.toml
exists in the current directory:: Load global configuration file.cliff.toml
does not exists in the current directory:: Load global configuration file.git cliff --config <PATH>
<PATH>
exists:: Load global configuration file.<PATH>
does not exist:: Load global configuration file.References
Thank you.
The text was updated successfully, but these errors were encountered: