Edward Thomson
aaf42c8df7
Merge pull request #3051 from jeffhostetler/jeffhostetler/memleak_windows_tls_data
...
Attempt to fix Windows TLS memory leak.
2015-04-21 18:21:59 -04:00
Carlos Martín Nieto
7636f740b3
Merge pull request #2992 from ethomson/rebase_fixes
...
Rebase fixes
2015-04-21 14:38:23 +02:00
Carlos Martín Nieto
3a63e8c299
Merge pull request #3060 from ethomson/2851
...
Handle invalid multiline configuration
2015-04-21 14:04:45 +02:00
Edward Thomson
aa9bb425a9
rebase: correct documentation, CHANGELOG
2015-04-20 17:22:39 -04:00
Edward Thomson
94c988f6d6
rebase: include checkout opts within rebase opts
2015-04-20 17:19:08 -04:00
Edward Thomson
7838235890
rebase: test checkout options for rebase
2015-04-20 16:22:59 -04:00
Edward Thomson
f3a199dd99
rebase: init and open take a rebase_options
...
`git_rebase_init` and `git_rebase_open` should take a
`git_rebase_options` and use it for future rebase operations on
that `rebase` object.
2015-04-20 16:22:54 -04:00
Edward Thomson
5ae38538c6
rebase: take checkout_options
where appropriate
2015-04-20 16:22:49 -04:00
Edward Thomson
649834fd6e
reset: git_checkout_options
is const
2015-04-20 16:22:44 -04:00
Edward Thomson
eaf0d68830
rebase: block rebase_commit with unstaged changes
2015-04-20 16:22:39 -04:00
Edward Thomson
49b3ddf216
rebase: commit should return GIT_EUNMERGED
...
git_rebase_commit should return `GIT_EUNMERGED` when unmerged items
exist in the index, per the documentation. Test that this is correct.
2015-04-20 16:22:31 -04:00
Edward Thomson
30640aa9ad
rebase: identify a rebase that has not started
...
In `git_rebase_operation_current()`, indicate when a rebase has not
started (with `GIT_REBASE_NO_OPERATION`) rather than conflating that
with the first operation being in-progress.
2015-04-20 16:22:27 -04:00
Edward Thomson
e009a7059d
config_file: comment char can be invalid escape
...
Don't assume that comment chars are comment chars, they may be (an
attempt to be escaped). If so, \; is not a valid escape sequence,
complain.
2015-04-20 00:26:00 -04:00
Edward Thomson
7f2e61f3ee
config_file: parse multilines generously
...
Combine unquoting and multiline detection to avoid ambiguity when
parsing.
2015-04-20 00:25:44 -04:00
Edward Thomson
08c45213b1
Merge pull request #3024 from git-up/diff_merge_fix
...
Make sure to also update delta->nfiles when merging diffs
2015-04-19 19:58:03 -04:00
Jeff Hostetler
06c985d864
Rename routine to free TLS data
2015-04-18 09:07:48 -04:00
Edward Thomson
4c02d39374
Merge pull request #3016 from pks-t/ignore-exclude-fix
...
ignore: fix negative ignores without wildcards.
2015-04-17 16:57:26 -05:00
Edward Thomson
a0e652d281
Merge pull request #2999 from pks-t/submodule-set-url
...
Implement git_submodule_set_branch.
2015-04-17 12:35:41 -05:00
Edward Thomson
a5bf599c9d
Merge pull request #3047 from git-up/diff_fixes
...
Diff fixes
2015-04-17 12:32:39 -05:00
Edward Thomson
c694f9fae8
Merge pull request #3052 from jeffhostetler/jeffhostetler/memleak_test_core_mkdir
...
Fix memleak in test/core/mkdir reported by CRTDBG
2015-04-17 10:53:46 -05:00
Jeff Hostetler
e3737a4185
Fix memleak in test/core/mkdir reported by CRTDBG
2015-04-17 10:30:33 -04:00
Jeff Hostetler
d3fb7d93a6
Remove DllMain now that TLS data freed by threads
2015-04-17 10:04:01 -04:00
Jeff Hostetler
f5ffb40e2b
Also fix leak of TLS data on main thread.
2015-04-17 09:58:09 -04:00
Jeff Hostetler
55c5f756d8
Attempt to fix Windows TLS memory leak.
2015-04-17 09:30:22 -04:00
Patrick Steinhardt
4f3586034b
ignore: fix negative ignores without wildcards.
2015-04-17 09:59:16 +02:00
Edward Thomson
c332bb70cd
Merge pull request #3042 from libgit2/cmn/odd-slowdown
...
revwalk: detect when we're out of interesting commits
2015-04-16 19:26:40 -05:00
Edward Thomson
6f80bf4afb
Merge pull request #3037 from libgit2/cmn/hide-then-push
...
Handle hide-then-push in the revwalk
2015-04-16 19:12:28 -05:00
Edward Thomson
fa7281db4e
Merge pull request #3039 from jeffhostetler/jeffhostetler/msvc_crtdbg
...
Add memory leak detection/reporting using MSVC CRTDBG facility.
2015-04-16 18:26:47 -05:00
Pierre-Olivier Latour
db853748f6
Fixed GIT_DIFF_UPDATE_INDEX not being aware of executable bit changes
...
In the prior implementation, enabling GIT_DIFF_UPDATE_INDEX would overwrite
entries in the index with the ones generated from scanning the working if the
OID was the same.
Because this OID comparison ignores file modes, this means an file in the
workdir with only an exec bit difference with the one in the index would end
up being overwritten, resulting in the exec bit being loss. There might be
other related bugs but the fix of comparing OIDs and file modes should
address them all.
2015-04-15 15:28:03 -07:00
Pierre-Olivier Latour
cc93ad1650
Removed unnecessary condition
...
The variable noid is guaranteed to be zero at this point of the code path.
2015-04-15 15:27:59 -07:00
Pierre-Olivier Latour
35df76bdd9
Use git_oid_cpy() instead of memcpy()
2015-04-15 15:27:56 -07:00
Jeff Hostetler
d06c589f48
Add MSVC CRTDBG memory leak reporting.
2015-04-15 10:25:09 -04:00
Carlos Martín Nieto
a05416951e
revwalk: detect when we're out of interesting commits
...
When walking backwards and marking parents uninteresting, make sure we
detect when the list of commits we have left has run out of
uninteresting commits so we can stop marking commits as
uninteresting. Failing to do so can mean that we walk the whole history
marking everything uninteresting, which eats up time, CPU and IO for
with useless work.
While pre-marking does look for this, we still need to check during the
main traversal as there are setups for which pre-marking does not leave
enough information in the commits. This can happen if we push a commit
and hide its parent.
2015-04-14 03:26:45 +02:00
Carlos Martín Nieto
05d9202678
revwalk: reword the push text
...
As it seems it's not quite clear what it means to push a commit, try to
be more explicit about adding a new root and that we may not see this
commit if it is hidden.
2015-04-13 18:03:03 +02:00
Patrick Steinhardt
129788a623
Implement git_submodule_set_branch.
2015-04-12 10:51:08 +02:00
Edward Thomson
623fbd93f1
Merge pull request #2974 from libgit2/cmn/clone-everything
...
Make sure to pack referenced objects for non-branches
2015-04-10 11:38:07 +02:00
Edward Thomson
63af449e24
Merge pull request #3030 from linquize/symlink_supported
...
If work_dir is not specified, use repo_dir to test if symlink is supported
2015-04-10 11:33:14 +02:00
Edward Thomson
8932c32c21
Merge branch 'pr/3035'
2015-04-10 10:50:01 +02:00
Edward Thomson
eb1eb58449
Merge pull request #3038 from pks-t/fix-regcomp-retval-check
...
Fix checking of return value for regcomp.
2015-04-10 10:32:42 +02:00
Patrick Steinhardt
129022ee1e
Fix checking of return value for regcomp.
...
The regcomp function returns a non-zero value if compilation of
a regular expression fails. In most places we only check for
negative values, but positive values indicate an error, as well.
Fix this tree-wide, fixing a segmentation fault when calling
git_config_iterator_glob_new with an invalid regexp.
2015-04-10 09:40:33 +02:00
Carlos Martín Nieto
50fdfe2bcb
revwalk: don't insert uninteresting commits into the queue
...
When a commit is first set as unintersting and then pushed, we must take
care that we do not put it into the commit list as that makes us return
at least that commit (but maybe more) as we've inserted it into the list
because we have the assumption that we want anything in the commit list.
2015-04-08 23:51:49 +02:00
Carlos Martín Nieto
5a503fffbc
revwalk: add failing test for hiding and then pushing a commit
...
When we hide a commit which we later push into the revwalk, we do not
handle this well and return commits which we should not.
2015-04-08 23:42:36 +02:00
Edward Thomson
a01d3a0b50
Merge pull request #3033 from pks-t/describe-oid-fallback
...
Fix describe without refs and OID fallbacks
2015-04-08 16:32:28 +02:00
Jozef Matula
2a06976165
ISO C90 forbids mixed declarations and code
...
GIT_UNUSED() macro generates code therefore it should be used after
variable declarations.
2015-04-08 16:30:44 +02:00
Patrick Steinhardt
08e1fd6517
describe: only abort without tags if fallback is not allowed.
...
When no reference names could be found we did error out when trying to describe
a commit. This is wrong, though, when the option to fall back to a commit's
object ID is set.
2015-04-07 17:32:56 +02:00
Patrick Steinhardt
c843736d63
describe example: enable building by default.
2015-04-07 14:55:05 +02:00
Linquize
7c2a2172b8
Test: Create repo in while current dir is readonly and checkout symlink
2015-04-04 23:23:19 +08:00
Linquize
466d2e7a5f
For bare repository, use repo_dir to test if symlinks are supported
2015-04-04 23:23:06 +08:00
Edward Thomson
47f3740025
Merge pull request #3031 from git-up/git_index_add
...
Entry argument passed to git_index_add_frombuffer() should be const
2015-04-04 09:17:59 -05:00
Pierre-Olivier Latour
807566d554
Entry argument passed to git_index_add_frombuffer() should be const
2015-04-03 18:59:11 -07:00