summaryrefslogtreecommitdiffstats
path: root/src/modules/git_commit.rs
AgeCommit message (Collapse)Author
2023-02-21chore: use updated gitoxide crate names (#4913)David Knaack
2022-12-24build(deps): update gitoxide crates (#4748)David Knaack
* build(deps): update gitoxide crates * remove call to removed function (env is loaded automatically now) * bump git-repository to v0.30.1 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-18fix(git_commit): fix potential test failure (#4734)Foster Z
Changes git command used in tests to avoid potential failures with lightweight tags.
2022-11-22feat(git_commit): support showing lightweight tags (#4632)David Knaack
2022-11-12build(deps): upgrade to git-repository v0.27 (#4588)Sebastian Thiel
* upgrade to git-repository v0.27 * thanks clippy
2022-11-06fix(git): check `tag_disabled` option (#4527)Loong Wang
* fix(git): check `tag_disabled` option * Check in `map` and test fixes
2022-11-05chore: fix new clippy lints (#4557)David Knaack
2022-09-04refactor: replace `ansi_term` with `nu_ansi_term` (#4339)David Knaack
2022-08-19perf(git_commit): only use exact match for tag by default (#4281)David Knaack
2022-08-18fix(git): upgrade `gitoxide` to v0.21 (#4277)Sebastian Thiel
* upgrade `gitoxide` to v0.21 This release comes with lenient configuration handling by default, allowing to open repositories even their configuration values are invalid (even for git), as long as there are viable defaults. Furthermore this release adds the ability to open submodule repsitories. Fixes https://github.com/starship/starship/issues/4266 and fixes https://github.com/starship/starship/issues/4272 * Assure an object cache is set to speed up `commit.describe()` Related to https://github.com/starship/starship/issues/4275 bringing performance to spitting distance compared to git.
2022-08-08feat(git): replace `git2` with `git-repository` (#3883)David Knaack
2022-05-23chore(clippy): fix new lints (#4002)David Knaack
2022-03-26refactor: replace module_config_derive with serde (#3786)David Knaack
* refactor: replace module_config_derive with serde Changes include: * Removing `starship_module_config_derive` and replacing it with `serde::Deserialize` * Removing `RootModuleConfig::load_config`. While potentially useful, it was only used in tests. And it would require something like `serde::DeserializeSeed` which is not derived by serde. * Merging `RootModuleConfig` into `ModuleConfig` * Implementing a `ValueDeserializer` that holds a reference to a `toml::Value` in `serde_utils.rs` * Deserialization errors (invalid type) are now logged and include the current key and the struct names * Unknown keys are now considered an error. "Did you mean?"-messages are still possible * fix typo Co-authored-by: Matan Kushner <hello@matchai.dev> Co-authored-by: Matan Kushner <hello@matchai.dev>
2021-12-03fix(git_branch): more robust handling of .git (#3290)arcnmx
2021-12-03chore(clippy): fix new clippy lints (#3294)David Knaack
2021-11-01fix(escaping): move escaping to individual variables (#3107)Fred Cox
2021-07-16fix(windows): avoid inadvertly running exes from cwd (#2885)David Knaack
On Windows when running commands with their name instead of the path with Command::new, executable with that name from the current working directory will be executed. This PR replaces all instances of Command::new with a new create_command function which will first resolve any executable paths and avoid this issue.
2021-07-04refactor(git_commit): small refactor to remove duplicate code (#2752)filip
2021-05-19fix(git_commit): remove unwraps (#2743)David Knaack
2021-05-08fix(git_commit): leading space in git commit tag (#2697)Jason-S-Ross
* Move git_commit tag leading space into config Fixes #2692 * Update doc default commit tag
2021-03-25chore(clippy): fix new lints (#2507)David Knaack
2020-12-07fix(git_commit): show last created tag on current commit (#1919)Miguel Ángel Melón Pérez
* fix(git_commit): show last created tag on current commit * style(git_commit): fixed linter & format alerts on PR checks * test(git_commit): added 'test_latest_tag_shown_with_tag_enabled' * test(git_commit): add a second between tags on same commit in 'test_latest_tag_shown_with_tag_enabled'
2020-10-23feat(git_commit): add git tag to module (#950)Miguel Ángel Melón Pérez
2020-08-07test: introduce env variable mocking (#1490)Tilmann Meyer
2020-07-07feat: refactor modules to use format strings (#1374)Zhenhui Xie
2020-02-12feat(git_commit): Show the hash of commits when detached HEAD (#738)nesmyslny
2019-12-06feat: Add git_commit module (#673)Qingping Hou