<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/editor.h, branch jch</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=jch</id>
<link rel='self' href='https://git.shady.money/git/atom?h=jch'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2024-08-13T17:01:00Z</updated>
<entry>
<title>editor: do not rely on `the_repository` for interactive edits</title>
<updated>2024-08-13T17:01:00Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2024-08-13T09:13:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=419dbb29d82b78bcaf0ff22ac7d5db7d1c327575'/>
<id>urn:sha1:419dbb29d82b78bcaf0ff22ac7d5db7d1c327575</id>
<content type='text'>
We implicitly rely on `the_repository` when editing a file interactively
because we call `git_path()`. Adapt the function to instead take a
`struct repository` as a parameter so that we can remove this hidden
dependency.

Signed-off-by: Patrick Steinhardt &lt;ps@pks.im&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>editor: move editor-related functions and declarations into common file</title>
<updated>2023-04-11T15:52:10Z</updated>
<author>
<name>Elijah Newren</name>
<email>newren@gmail.com</email>
</author>
<published>2023-04-11T07:41:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4e120823a345cf348a052683d726c90bc4b256ca'/>
<id>urn:sha1:4e120823a345cf348a052683d726c90bc4b256ca</id>
<content type='text'>
cache.h and strbuf.[ch] had editor-related functions.  Move these into
editor.[ch].

Signed-off-by: Elijah Newren &lt;newren@gmail.com&gt;
Acked-by: Calvin Wan &lt;calvinwan@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
