Replies: 2 comments
-
aside: there is a PR for adding |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Git contains a number of flags on
git log
for grepping diffs and commit messages (listed below). Today,jj
supports some of this functionality with thediff_contains(string_pattern, [fileset pattern])
,description(string_pattern)
, andsubject(string_pattern)
revset functions. However, Git's tooling here provides a few advantages:-S
you can search only for commits that change the number of occurrences of a pattern, letting users filter out diffs that simply move code around.jj log -r '::@ & diff_contains(regex:"foo")'
is pretty clumsy compared togit log -G foo
.To be clear, the revset language is (IMO) one of
jj
's best features, and I'm not suggesting we build features that don't leverage it. These features should be available in the revset language first, but I think there's a lot of value in having dedicated command-line flags for common use-cases.Questions for discussion:
jj
?git log -G
queries in a row (until I find the commit I'm looking for), and the revset language means I can't just change the last word or argument of the previous invocation.Flags
Here are the flags mentioned in
man git-log
. I mostly miss-G
and-S
(and occasionally--grep
).Beta Was this translation helpful? Give feedback.
All reactions