dotfiles/home/private_dot_config/private_jj/config.toml

58 lines
1.3 KiB
TOML
Raw Normal View History

2024-11-12 12:41:50 -06:00
[user]
name = "Daylin Morgan"
email = "me@dayl.in"
[signing]
sign-all = true
backend = "gpg"
signingkey = "7AD9DB430EE2B3C1D86BF3243CD66E04B8072F3E"
[git]
2024-11-14 14:37:24 -06:00
private-commits = "description(glob:'wip*') | description(glob:'private:*')"
2024-11-13 09:27:47 -06:00
[ui]
default-command = "log"
pager = "delta"
diff-editor = ":builtin"
[ui.diff]
format = "git"
2024-11-14 14:37:24 -06:00
[aliases]
wip = ["ci", "-m", "wip"]
2024-11-18 16:26:23 -06:00
la = ["log", "-r", "all()"]
2024-11-25 16:40:51 -06:00
bsm = [
"bookmark", "set", "main", "-r",
# first non-empty change from current revset
"latest(::@ & ~empty())"
]
2024-12-06 12:21:10 -06:00
l = ["log", "-T", "log_oneline"]
[template-aliases]
# adapted from log oneline
log_oneline = '''
if(root,
format_root_commit(self),
label(if(current_working_copy, "working_copy"),
concat(
separate(" ",
format_short_change_id_with_hidden_and_divergent_info(self),
if(author.email(), author.username(), email_placeholder),
if(description,
description.first_line(),
label(if(empty, "empty"), description_placeholder),
),
if(empty, label("empty", "(empty)")),
format_timestamp(committer.timestamp()),
bookmarks,
tags,
working_copies,
if(git_head, label("git_head", "git_head()")),
if(conflict, label("conflict", "conflict")),
) ++ "\n",
),
)
)
'''