<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/contrib/git-jump, branch v2.41.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.41.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.41.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2022-11-27T01:49:51Z</updated>
<entry>
<title>git-jump: invoke emacs/emacsclient</title>
<updated>2022-11-27T01:49:51Z</updated>
<author>
<name>Yoichi Nakayama</name>
<email>yoichi.nakayama@gmail.com</email>
</author>
<published>2022-11-27T01:18:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9508dfd9f553019c2e3b2869926a0dcaed7a498f'/>
<id>urn:sha1:9508dfd9f553019c2e3b2869926a0dcaed7a498f</id>
<content type='text'>
It works with GIT_EDITOR="emacs", "emacsclient" or "emacsclient -t"

Signed-off-by: Yoichi Nakayama &lt;yoichi.nakayama@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-jump: move valid-mode check earlier</title>
<updated>2022-11-27T01:49:51Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2022-11-27T01:18:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=64685cb85566c1b0fb288690a300978d3c035431'/>
<id>urn:sha1:64685cb85566c1b0fb288690a300978d3c035431</id>
<content type='text'>
We check if the "mode" argument supplied by the user is valid by seeing
if we have a mode_$mode function defined. But we don't do that until
after creating the tempfile. This is wasteful (we create a tempfile but
never use it), and makes it harder to add new options (the recent stdout
option exits before creating the tempfile, so it misses the check and
"git jump --stdout foo" will produce "git-jump: 92: mode_foo: not found"
rather than the regular usage message).

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-jump: add an optional argument '--stdout'</title>
<updated>2022-11-27T01:49:51Z</updated>
<author>
<name>Yoichi Nakayama</name>
<email>yoichi.nakayama@gmail.com</email>
</author>
<published>2022-11-27T01:18:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cfb7b3b39183e9711340ee464e58199f44e0de4e'/>
<id>urn:sha1:cfb7b3b39183e9711340ee464e58199f44e0de4e</id>
<content type='text'>
It can be used with M-x grep on Emacs.

Signed-off-by: Yoichi Nakayama &lt;yoichi.nakayama@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-jump: pass "merge" arguments to ls-files</title>
<updated>2021-11-09T19:15:21Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2021-11-09T16:35:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=67ba13e5a4b27785391a0e1673d71e506edae13b'/>
<id>urn:sha1:67ba13e5a4b27785391a0e1673d71e506edae13b</id>
<content type='text'>
We currently throw away any arguments given to "git jump merge". We
should instead pass them along to ls-files, since they're likely to be
pathspecs. This matches the behavior of "git jump diff", etc.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>contrib/git-jump/git-jump: jump to exact location</title>
<updated>2018-06-22T19:59:02Z</updated>
<author>
<name>Taylor Blau</name>
<email>me@ttaylorr.com</email>
</author>
<published>2018-06-22T15:49:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=240cf2a25744b45c514fe850363721615a1c4b8c'/>
<id>urn:sha1:240cf2a25744b45c514fe850363721615a1c4b8c</id>
<content type='text'>
Take advantage of 'git-grep(1)''s new option, '--column' in order to
teach Peff's 'git-jump' script how to jump to the correct column for any
given match.

'git-grep(1)''s output is in the correct format for Vim's jump list, so
no additional cleanup is necessary.

Signed-off-by: Taylor Blau &lt;me@ttaylorr.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-jump: give contact instructions in the README</title>
<updated>2017-11-21T02:01:02Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2017-11-20T19:18:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f5da077b1f9e28a473f8219d8b8391450b794abf'/>
<id>urn:sha1:f5da077b1f9e28a473f8219d8b8391450b794abf</id>
<content type='text'>
Let's make it clear how patches should flow into
contrib/git-jump. The normal Git maintainer does not
necessarily care about things in contrib/, and authors of
individual components should be the ones giving the final
review/ack for a patch. Ditto for bug reports, which are
likely to get more attention from the area expert.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Reviewed-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>contrib/git-jump: allow to configure the grep command</title>
<updated>2017-11-21T02:00:27Z</updated>
<author>
<name>Beat Bolli</name>
<email>dev+git@drbeat.li</email>
</author>
<published>2017-11-19T23:05:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=007d06aa57e673c95da583d2afa30bb14fb69e28'/>
<id>urn:sha1:007d06aa57e673c95da583d2afa30bb14fb69e28</id>
<content type='text'>
Add the configuration option "jump.grepCmd" that allows to configure the
command that is used to search in grep mode. This allows the users of
git-jump to use ag(1) or ack(1) as search engines.

Signed-off-by: Beat Bolli &lt;dev+git@drbeat.li&gt;
Reviewed-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>contrib/git-jump: fix typo in README</title>
<updated>2016-07-22T19:34:51Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2016-07-22T16:30:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a91e6925f66f6c08bc6e27aa1278c1df0dfffac8'/>
<id>urn:sha1:a91e6925f66f6c08bc6e27aa1278c1df0dfffac8</id>
<content type='text'>
Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>contrib/git-jump: add whitespace-checking mode</title>
<updated>2016-07-22T19:33:58Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2016-07-22T16:35:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1af9c6096a7ec6cba3a5f7d359cb1caf2152496a'/>
<id>urn:sha1:1af9c6096a7ec6cba3a5f7d359cb1caf2152496a</id>
<content type='text'>
If you have whitespace errors in lines you've introduced, it
can be convenient to be able to jump directly to them for
fixing.  You can't quite use "git jump diff" for this,
because though it passes arbitrary options to "git diff", it
expects to see an actual unified diff in the output.

Whereas "git diff --check" actually produces lines that look
like compiler quickfix lines already, meaning we just need
to run it and feed the output directly to the editor.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>contrib/git-jump: fix greedy regex when matching hunks</title>
<updated>2016-07-22T19:33:45Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2016-07-22T16:28:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=74a7fa44d36c3e93febccdea5f44ff78555463d0'/>
<id>urn:sha1:74a7fa44d36c3e93febccdea5f44ff78555463d0</id>
<content type='text'>
The hunk-header regex looks for "\+\d+" to find the
post-image line numbers, but it skips the pre-image line
numbers with a simple ".*". That means we may greedily eat
the post-image numbers and match a "\+\d" further on, in the
funcname text.

For example, commit 6b9c38e has this hunk header:

  diff --git a/t/t0006-date.sh b/t/t0006-date.sh
  [...]
  @@ -50,8 +50,8 @@ check_show iso-local "$TIME" '2016-06-15 14:13:20 +0000'

If you run:

  git checkout 6b9c38e
  git jump diff HEAD^ t/

it will erroneously match "+0000" as the starting line
number and jump there, rather than line 50.

We can fix it by just making the "skip" regex non-greedy,
taking the first "+" we see, which should be the post-image
line information.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
