Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-05-28Liike thisVicent Marti
2013-05-28This refs iterator pleases the gods.Vicent Marti
2013-05-28Fixing unwrapped callocRussell Belfer
2013-05-27Merge pull request #1614 from schu/packbuilder-writeVicent Martí
packbuilder: also write index in git_packbuilder_write
2013-05-27packbuilder: also write index in git_packbuilder_writeMichael Schubert
git_packbuilder_write() used to write a packfile to the passed file path. Instead, ask for a destination directory and create both the packfile and an index, as most users probably do expect.
2013-05-27Merge pull request #1613 from schu/transport-sshVicent Martí
tests: don't verify SSH unsupported with GIT_SSH
2013-05-27tests: don't verify SSH unsupported with GIT_SSHMichael Schubert
2013-05-26Merge pull request #1612 from drodriguez/fix-branch-delete-docsRussell Belfer
Fix documentation of git_branch_delete.
2013-05-26Fix documentation of git_branch_delete.Daniel Rodríguez Troitiño
The reference should be freed by the user, not the library.
2013-05-25Merge pull request #1609 from ethomson/qsort_r_glibcVicent Martí
qsort_r appeared in glibc 2.8
2013-05-25qsort_r appeared in glibc 2.8Edward Thomson
2013-05-24Merge pull request #1608 from arrbee/various-cleanups-and-tweaksVicent Martí
Various cleanups and tweaks
2013-05-24Add ~ expansion to global attributes and excludesRussell Belfer
This adds ~/ prefix expansion for the value of core.attributesfile and core.excludesfile, plus it fixes the fact that the attributes cache was holding on to the string data from the config for a long time (instead of making its own strdup) which could have caused a problem if the config was refreshed. Adds a test for the new expansion capability.
2013-05-24Clarify GIT_DIFF_INCLUDE_UNTRACKED_CONTENT optionRussell Belfer
This improves the docs for GIT_DIFF_INCLUDE_UNTRACKED_CONTENT as well as the other flags related to UNTRACKED items in diff, plus it makes that flag now automatically turn on GIT_DIFF_INCLUDE_UNTRACKED which seems like a reasonable dwim type of change.
2013-05-24Typedef git_config_level_t and use it everywhereRussell Belfer
The GIT_CONFIG_LEVEL constants actually work well as an enum because they are mutually exclusive, so this adds a typedef to the enum and uses that everywhere that one of these constants are expected, instead of the old code that typically used an unsigned int.
2013-05-24Docs for git_libgit2_opts and cache disable tweakRussell Belfer
This adds docs for the cache control options to git_libgit2_opts and also tweaks the cache code so that if the cache is disabled, then the next time we attempt to insert something into the cache in question, we will actually clear any old cached objects.
2013-05-24Add typedefs on some public enumsRussell Belfer
Apparently this makes things easier to bind in some languages.
2013-05-24Merge pull request #1607 from ethomson/hurdRussell Belfer
qsort_r is broken on HURD, avoid
2013-05-24Merge pull request #1605 from ethomson/replace_reuc_fixVicent Martí
Cherry picking REUC fixes
2013-05-24Ensure reuc vector is always validRussell Belfer
In theory, if there was a problem reading the REUC data, the read_reuc() routine could have left uninitialized and invalid data in the git_index vector. This moves the line that inserts a new entry into the vector down to the bottom of the routine so we know all the content is already valid. Also, per @linquize, this uses calloc to ensure no uninitialized data.
2013-05-24qsort_r is broken on HURD, avoidEdward Thomson
2013-05-24Merge pull request #1593 from ethomson/conflict_iteratorVicent Martí
introduce git_conflict_iterator
2013-05-24Merge pull request #1592 from ethomson/merge_setupVicent Martí
merge setup
2013-05-24Merge pull request #1603 from ben/shallowVicent Martí
Shallow-clone detection
2013-05-24Merge pull request #1595 from arrbee/even-more-rename-fixesVicent Martí
Even more rename detection fixes
2013-05-24Merge pull request #1604 from arrbee/config-file-checksVicent Martí
Extend checking for config with no files
2013-05-24Stop leaking memoryBen Straub
2013-05-24More config code checks and cleanupsRussell Belfer
2013-05-24More tests of config with various absent filesRussell Belfer
Plus a bit of extra paranoia to ensure config object has valid contents.
2013-05-24Fill out diff rename test coverageRussell Belfer
This extends the rename tests to make sure that every rename scenario in the inner loop of git_diff_find_similar is actually exercised. Also, fixes an incorrect assert that was in one of the clauses that was not previously being exercised.
2013-05-24Improve test failure outputBen Straub
2013-05-24Move core.abbrev lookup out of diff print loopRussell Belfer
This moves the GIT_CVAR_ABBREV lookup out of the loop. Also, this fixes git_diff_print_raw to actually use that constant instead of hardcoding 7 characters.
2013-05-24More diff rename tests; better split swap handlingRussell Belfer
This adds a couple more tests of different rename scenarios. Also, this fixes a problem with the case where you have two "split" deltas and the left half of one matches the right half of the other. That case was already being handled, but in the wrong order in a way that could result in bad output. Also, if the swap also happened to put the other two halves into the correct place (i.e. two files exchanged places with each other), then the second delta was left with the SPLIT flag set when it really should be cleared.
2013-05-23Fix dereference of freed deltaRussell Belfer
I was accidentally using a value that I had just freed. This moves the clearing of the delta internal flags into a better place.
2013-05-23Merge pull request #1599 from nulltoken/topic/windows_resourcesBen Straub
Update windows resources to match the dll name
2013-05-23Merge pull request #1601 from Merovius/bugfix_shortenBen Straub
Bugfix: Return NULL in push_leaf, when trie is full
2013-05-23Add testcase for #1600Axel Wagner
2013-05-22Significant rename detection rewriteRussell Belfer
This flips rename detection around so instead of creating a forward mapping from deltas to possible rename targets, instead it creates a reverse mapping, looking at possible targets and trying to find a source that they could have been renamed or copied from. This is important because each output can only have a single source, but a given source could map to multiple outputs (in the form of COPIED records). Additionally, this makes a couple of tweaks to the public rename detection APIs, mostly renaming a couple of options that control the behavior to make more sense and to be more like core Git. I walked through the tests looking at the exact results and updated the expectations based on what I saw. The new code is different from the old because it cannot give some nonsense results (like A was renamed to both B and C) which were part of the outputs previously.
2013-05-22Bugfix: Return NULL in push_leaf, when trie is fullAxel Wagner
os->full was set 1, but the overflowed idx_leaf was still used to index into os->nodes a little later. Returning NULL fixes that.
2013-05-22cmake: Update Windows resources to reflect the optional vendor stringnulltoken
Make InternalName and OriginalFilename resources reflect the name of the compiled binary.
2013-05-22cmake: Fix indentationnulltoken
2013-05-21Merge pull request #1594 from nulltoken/topic/tag_annotationBen Straub
tag: Introduce git_tag_annotation_create()
2013-05-21tag: Introduce git_tag_annotation_create()nulltoken
2013-05-21Merge pull request #1597 from zodiac/patch-1Ben Straub
define "long name" in git_reference_name_to_id
2013-05-21refs: export the glob iteratorCarlos Martín Nieto
2013-05-21define "long name" in git_reference_name_to_idLi Xuanji
2013-05-21Merge pull request #1596 from grimreaper/developmentEdward Thomson
Initialize loose_deleted before it is used for a check later on.
2013-05-21Add more diff rename detection testsRussell Belfer
This adds a bunch more rename detection tests including checks vs the working directory, the new exact match options, some more whitespace variants, etc. This also adds a git_futils_writebuffer helper function and uses it in checkout. This is mainly added because I wanted an easy way to write out a git_buf to disk inside my test code.
2013-05-21More git_diff_find_similar improvementsRussell Belfer
- Add new GIT_DIFF_FIND_EXACT_MATCH_ONLY flag to do similarity matching without using the similarity metric (i.e. only compare the SHA). - Clean up the similarity measurement code to more rigorously distinguish between files that are not similar and files that are not comparable (previously, a 0 could either mean that the files could not be compared or that they were totally different) - When splitting a MODIFIED file into a DELETE/ADD pair, actually make a DELETED/UNTRACKED pair if the right side of the diff is from the working directory. This prevents an odd mix of ADDED and UNTRACKED files on workdir diffs.
2013-05-19Initialize loose_deleted before it is used for a check later on.Eitan Adler