Skip to content

Commit

Permalink
users: reorder date and committer data in jj
Browse files Browse the repository at this point in the history
  • Loading branch information
moni-dz committed Jan 29, 2025
1 parent 96f590e commit 9947ed2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/shared/home-manager/vcs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,13 @@
format_short_commit_id(self.commit_id()),
self.bookmarks(),
self.tags(),
if(author.name() && author.email(), separate(" as ", author.email().local(), author.name())),
self.working_copies(),
if(self.git_head(), label("git_head", "git_head()")),
commit_timestamp(self).local().format("%Y-%m-%d"),
if(author.name() && author.email(), concat("by ", separate(" as ", author.email().local(), author.name()))),
if(author.name() && !author.email(), author.name()),
if(!author.name() && author.email(), author.email().local()),
if(!author.name() && !author.email(), email_placeholder),
commit_timestamp(self).local().format("%Y-%m-%d"),
self.working_copies(),
if(self.git_head(), label("git_head", "git_head()")),
if(config("ui.show-cryptographic-signatures").as_boolean(),
format_short_cryptographic_signature(self.signature())),
)
Expand Down

0 comments on commit 9947ed2

Please sign in to comment.