<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/xdiff-interface.c, branch v1.7.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.7.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.7.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2010-05-04T22:20:47Z</updated>
<entry>
<title>Merge branch 'maint-1.7.0' into maint</title>
<updated>2010-05-04T22:20:47Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-05-04T22:20:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6b6f5d4664c9088636418653a61f600b5e3a9ea4'/>
<id>urn:sha1:6b6f5d4664c9088636418653a61f600b5e3a9ea4</id>
<content type='text'>
* maint-1.7.0:
  remove ecb parameter from xdi_diff_outf()
</content>
</entry>
<entry>
<title>remove ecb parameter from xdi_diff_outf()</title>
<updated>2010-05-04T22:19:14Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2010-05-04T20:41:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dfea79004c54bc96143386d6ac22de500ba4f747'/>
<id>urn:sha1:dfea79004c54bc96143386d6ac22de500ba4f747</id>
<content type='text'>
xdi_diff_outf() overrides the structure members of its last parameter,
ignoring any value that callers pass in.  It's no surprise then that all
callers pass a pointer to an uninitialized structure.  They also don't
read it after the call, so the parameter is neither used for input nor
for output.   Turn it into a local variable of xdi_diff_outf().

Signed-off-by: Rene Scharfe &lt;rene.scharfe@lsrfire.ath.cx&gt;
Acked-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>refactor duplicated fill_mm() in checkout and merge-recursive</title>
<updated>2010-02-17T23:11:33Z</updated>
<author>
<name>Michael Lukashov</name>
<email>michael.lukashov@gmail.com</email>
</author>
<published>2010-02-16T23:42:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=06b65939b083ba1b71043005bf83b4883e98264e'/>
<id>urn:sha1:06b65939b083ba1b71043005bf83b4883e98264e</id>
<content type='text'>
The following function is duplicated:

  fill_mm

Move it to xdiff-interface.c and rename it 'read_mmblob', as suggested
by Junio C Hamano.

Also, change parameters order for consistency with read_mmfile().

Signed-off-by: Michael Lukashov &lt;michael.lukashov@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>userdiff: add xdiff_clear_find_func()</title>
<updated>2009-07-02T02:16:37Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2009-07-01T22:01:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8cfe5f1cd5dabc3a21bc792327747deefeff6dff'/>
<id>urn:sha1:8cfe5f1cd5dabc3a21bc792327747deefeff6dff</id>
<content type='text'>
xdiff_set_find_func() is used to set user defined regular expressions
for finding function signatures.  Add xdiff_clear_find_func(), which
frees the memory allocated by the former, making the API complete.

Also, use the new function in diff.c (the only call site of
xdiff_set_find_func()) to clean up after ourselves.

Signed-off-by: Rene Scharfe &lt;rene.scharfe@lsrfire.ath.cx&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Remove unused function scope local variables</title>
<updated>2009-03-08T04:52:17Z</updated>
<author>
<name>Benjamin Kramer</name>
<email>benny.kra@googlemail.com</email>
</author>
<published>2009-03-07T20:02:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=eb3a9dd3279fe4b05f286665986ebf6d43a6ccc0'/>
<id>urn:sha1:eb3a9dd3279fe4b05f286665986ebf6d43a6ccc0</id>
<content type='text'>
These variables were unused and can be removed safely:

  builtin-clone.c::cmd_clone(): use_local_hardlinks, use_separate_remote
  builtin-fetch-pack.c::find_common(): len
  builtin-remote.c::mv(): symref
  diff.c::show_stats():show_stats(): total
  diffcore-break.c::should_break(): base_size
  fast-import.c::validate_raw_date(): date, sign
  fsck.c::fsck_tree(): o_sha1, sha1
  xdiff-interface.c::parse_num(): read_some

Signed-off-by: Benjamin Kramer &lt;benny.kra@googlemail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>xdiff-interface.c: remove 10 duplicated lines</title>
<updated>2008-11-26T18:47:41Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2008-11-26T13:27:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c095a1db3095f26092ee2d2a9c606b8b656936af'/>
<id>urn:sha1:c095a1db3095f26092ee2d2a9c606b8b656936af</id>
<content type='text'>
Remove an accidentally duplicated sequence of 10 lines.
This happens to plug a leak, too.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'rs/blame'</title>
<updated>2008-11-09T00:05:39Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-11-09T00:05:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1e2bba92d21d9c72d4a6816c3a98a22779856f9e'/>
<id>urn:sha1:1e2bba92d21d9c72d4a6816c3a98a22779856f9e</id>
<content type='text'>
* rs/blame:
  blame: use xdi_diff_hunks(), get rid of struct patch
  add xdi_diff_hunks() for callers that only need hunk lengths
  Allow alternate "low-level" emit function from xdl_diff
  Always initialize xpparam_t to 0
  blame: inline get_patch()
</content>
</entry>
<entry>
<title>add xdi_diff_hunks() for callers that only need hunk lengths</title>
<updated>2008-10-25T19:09:31Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2008-10-25T13:31:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=86295bb6bac1482d29650d1f77f19d8e7a7cc2fe'/>
<id>urn:sha1:86295bb6bac1482d29650d1f77f19d8e7a7cc2fe</id>
<content type='text'>
Based on a patch by Brian Downing, this uses the xdiff emit_func feature
to implement xdi_diff_hunks().  It's a function that calls a callback for
each hunk of a diff, passing its lengths.

Signed-off-by: Rene Scharfe &lt;rene.scharfe@lsrfire.ath.cx&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'maint'</title>
<updated>2008-10-17T08:52:32Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-10-17T08:52:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=46dc1b0e332612aa32c139007fa33f4b429de9d1'/>
<id>urn:sha1:46dc1b0e332612aa32c139007fa33f4b429de9d1</id>
<content type='text'>
* maint:
  t1301-shared-repo.sh: don't let a default ACL interfere with the test
  git-check-attr(1): add output and example sections
  xdiff-interface.c: strip newline (and cr) from line before pattern matching
  t4018-diff-funcname: demonstrate end of line funcname matching flaw
  t4018-diff-funcname: rework negated last expression test
  Typo "does not exists" when git remote update remote.
  remote.c: correct the check for a leading '/' in a remote name
  Add testcase to ensure merging an early part of a branch is done properly

Conflicts:
	t/t7600-merge.sh
</content>
</entry>
<entry>
<title>xdiff-interface.c: strip newline (and cr) from line before pattern matching</title>
<updated>2008-10-16T15:31:56Z</updated>
<author>
<name>Brandon Casey</name>
<email>casey@nrlssc.navy.mil</email>
</author>
<published>2008-10-01T19:28:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=563d5a2c84fb5daf77dd8bfe569e92566a8fd52b'/>
<id>urn:sha1:563d5a2c84fb5daf77dd8bfe569e92566a8fd52b</id>
<content type='text'>
POSIX doth sayeth:

   "In the regular expression processing described in IEEE Std 1003.1-2001,
    the &lt;newline&gt; is regarded as an ordinary character and both a period and
    a non-matching list can match one. ... Those utilities (like grep) that
    do not allow &lt;newline&gt;s to match are responsible for eliminating any
    &lt;newline&gt; from strings before matching against the RE."

Thus far git has not been removing the trailing newline from strings matched
against regular expression patterns. This has the effect that (quoting
Jonathan del Strother) "... a line containing just 'FUNCNAME' (terminated by
a newline) will be matched by the pattern '^(FUNCNAME.$)' but not
'^(FUNCNAME$)'", and more simply not '^FUNCNAME$'.

Signed-off-by: Brandon Casey &lt;casey@nrlssc.navy.mil&gt;
Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
</feed>
