mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-20 07:30:22 +01:00
e231594b6b
## Summary resolves #15272, take 2 of #58950 tl;dr: add following options: ```json { "git": { "date_format": "locale", // "locale" (default), "iso", or a strftime format like "%Y-%m-%d %H:%M" "blame": { "date_style": "relative" }, "inline_blame": { "date_style": "relative" }, "branch_picker": { "date_style": "relative" }, "stash_picker": { "date_style": "relative" } }, "git_panel": { "date_style": "relative" }, "git_graph": { "date_style": "absolute" } } ``` design per https://github.com/zed-industries/zed/pull/58950#issuecomment-6017682621, also pinging @smitbarmase per request ## Testing screenshots are taken on fedora linux 44 + kde plasma 6.7.5 <img width="2560" height="1440" alt="image" src="https://github.com/user-attachments/assets/0784f1f7-0e00-4be5-893d-775d617b33e4" /> <img width="1125" height="937" alt="image" src="https://github.com/user-attachments/assets/7ae6c876-3a93-4876-a151-85632d54d982" /> <img width="1407" height="340" alt="image" src="https://github.com/user-attachments/assets/2178804a-444b-4613-9024-3700b15e0cfe" /> changed each config values `Date Format {locale/iso/strftime} x Date Style {relative/absolute}` and they all seem to work without issues also, invalid date format will default to `locale` (with an warning log like below) ``` 2026-11-05T00:14:08+09:00 WARN [project::project_settings] Invalid git.date_format: invalid component name `Q` at byte index 1 ``` ## Self-review - [x] I've reviewed my diff for quality, security, reliability, and performance. - [x] UI changes follow the [checklist](https://zed.dev/docs/development/ui-checklist). - [x] Tests cover the new or changed behavior. Release Notes: - Added `git.date_format` and per-view `date_style` settings for git dates --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com> Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
101 lines
2.7 KiB
TOML
101 lines
2.7 KiB
TOML
[package]
|
|
name = "git_ui"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
publish.workspace = true
|
|
license = "GPL-3.0-or-later"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[lib]
|
|
name = "git_ui"
|
|
path = "src/git_ui.rs"
|
|
doctest = false
|
|
|
|
[features]
|
|
test-support = ["multi_buffer/test-support", "remote_connection/test-support"]
|
|
call = ["dep:call"]
|
|
|
|
[dependencies]
|
|
agent_settings.workspace = true
|
|
anyhow.workspace = true
|
|
askpass.workspace = true
|
|
async-channel.workspace = true
|
|
buffer_diff.workspace = true
|
|
call = { workspace = true, optional = true }
|
|
client.workspace = true
|
|
collections.workspace = true
|
|
component.workspace = true
|
|
db.workspace = true
|
|
editor.workspace = true
|
|
file_icons.workspace = true
|
|
futures-lite.workspace = true
|
|
futures.workspace = true
|
|
fuzzy.workspace = true
|
|
fuzzy_nucleo.workspace = true
|
|
git.workspace = true
|
|
gpui.workspace = true
|
|
itertools.workspace = true
|
|
language.workspace = true
|
|
language_model.workspace = true
|
|
log.workspace = true
|
|
markdown.workspace = true
|
|
menu.workspace = true
|
|
multi_buffer.workspace = true
|
|
notifications.workspace = true
|
|
picker.workspace = true
|
|
project.workspace = true
|
|
prompt_store.workspace = true
|
|
rand.workspace = true
|
|
release_channel.workspace = true
|
|
remote_connection.workspace = true
|
|
schemars.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
settings.workspace = true
|
|
smallvec.workspace = true
|
|
strum.workspace = true
|
|
sysinfo.workspace = true
|
|
task.workspace = true
|
|
telemetry.workspace = true
|
|
terminal.workspace = true
|
|
theme.workspace = true
|
|
theme_settings.workspace = true
|
|
time.workspace = true
|
|
time_format.workspace = true
|
|
tracing.workspace = true
|
|
ui.workspace = true
|
|
ui_input.workspace = true
|
|
unicode-width.workspace = true
|
|
util.workspace = true
|
|
watch.workspace = true
|
|
workspace.workspace = true
|
|
git_ui_core.workspace = true
|
|
zed_actions.workspace = true
|
|
ztracing.workspace = true
|
|
|
|
[dev-dependencies]
|
|
ctor.workspace = true
|
|
db = { workspace = true, features = ["test-support"] }
|
|
editor = { workspace = true, features = ["test-support"] }
|
|
fs = { workspace = true, features = ["test-support"] }
|
|
git = { workspace = true, features = ["test-support"] }
|
|
gpui = { workspace = true, features = ["test-support"] }
|
|
indoc.workspace = true
|
|
language = { workspace = true, features = ["test-support"] }
|
|
pretty_assertions.workspace = true
|
|
project = { workspace = true, features = ["test-support"] }
|
|
rand.workspace = true
|
|
remote_connection = { workspace = true, features = ["test-support"] }
|
|
search.workspace = true
|
|
settings = { workspace = true, features = ["test-support"] }
|
|
task.workspace = true
|
|
tree-sitter-md.workspace = true
|
|
unindent.workspace = true
|
|
workspace = { workspace = true, features = ["test-support"] }
|
|
zlog.workspace = true
|
|
|
|
[package.metadata.cargo-shear]
|
|
ignored = ["component", "remote_connection", "tracing"]
|