summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* lol namespacesvmg/namespacesVicent Marti2013-04-304-2/+50
|
* object: hahaVicent Marti2013-04-301-6/+6
|
* object: Explicitly define helper API methods for all obj typesVicent Marti2013-04-306-34/+133
|
* Merge pull request #1518 from arrbee/export-oid-comparisonVicent Martí2013-04-3026-120/+199
|\ | | | | Remove most inlines from the public API
| * Some cleanupsRussell Belfer2013-04-295-13/+4
| | | | | | | | | | Removed useless prototype and renamed object typecast functions declaration macro.
| * Add new src/oid.hRussell Belfer2013-04-291-0/+33
| |
| * Standardize cast versions of git_object accessorsRussell Belfer2013-04-297-65/+47
| | | | | | | | | | | | This removes the GIT_INLINE versions of the simple git_object accessors and standardizes them with a helper macro in src/object.h to build the function bodies.
| * Make git_oid_cmp public and add git_oid__cmpRussell Belfer2013-04-2917-41/+30
| |
| * Add git_oid_strcmp and use it for git_oid_streqRussell Belfer2013-04-293-14/+63
| | | | | | | | | | | | | | | | Add a new git_oid_strcmp that compares a string OID with a hex oid for sort order, and then reimplement git_oid_streq using it. This actually should speed up git_oid_streq because it only reads as far into the string as it needs to, whereas previously it would convert the whole string into an OID and then use git_oid_cmp.
| * Fix fragile git_oid_ncmpRussell Belfer2013-04-292-2/+23
| | | | | | | | | | | | | | git_oid_ncmp was making some assumptions about the length of the data - this shifts the check to the top of the loop so it will work more robustly, limits the max, and adds some tests to verify the functionality.
| * Introduce git_oid_compare, an exported oid cmpRussell Belfer2013-04-292-0/+14
| |
* | Merge pull request #1520 from carlosmn/nth-refspecVicent Martí2013-04-306-10/+78
|\ \ | | | | | | Add refspec list accessors
| * | remote: fix a leak when dwim'ing refspecsCarlos Martín Nieto2013-04-301-0/+1
| | |
| * | remote: add resfpec list accessorsCarlos Martín Nieto2013-04-305-10/+62
| | | | | | | | | | | | | | | | | | Bring back a way of acessing the git_refspec* from a remote. Closes #1514
| * | refspec: add direction accessorCarlos Martín Nieto2013-04-302-0/+15
| | |
* | | Merge pull request #1522 from arrbee/repo-open-with-no-configVicent Martí2013-04-302-0/+41
|\ \ \ | |/ / |/| | Catch issue in config set with no config file
| * | Catch issue in config set with no config fileRussell Belfer2013-04-302-0/+41
|/ / | | | | | | | | This prevents a segfault when setting a value in the config of a repository that doesn't have a config file.
* | Merge pull request #1511 from carlosmn/refspec-shorthandVicent Martí2013-04-297-10/+139
|\ \ | | | | | | dwim shorthand refspecs for fetch
| * | remote: dwim the refspecs according to the remote's advertised refsCarlos Martín Nieto2013-04-283-9/+127
| | | | | | | | | | | | | | | As git allows you to store shorthand refspecs in the configuration, we need to do this ourselves.
| * | Parse shorthand refspecs as validCarlos Martín Nieto2013-04-284-1/+12
| | | | | | | | | | | | | | | Relax the ONELEVEL ref naming rules so the refspec parsing code can ask for 'master' to be considered valid.
* | | Merge pull request #1516 from ethomson/win32_alternate_nostatVicent Martí2013-04-291-4/+12
|\ \ \ | | | | | | | | don't use uninitialized struct stat in win32
| * | | don't use uninitialized struct stat in win32Edward Thomson2013-04-291-4/+12
|/ / /
* | | Merge pull request #1513 from ethomson/cmakeVicent Martí2013-04-291-1/+1
|\ \ \ | |_|/ |/| | cmake 2.6 parser bug workaround
| * | cmake 2.6 parser bug workaroundEdward Thomson2013-04-291-1/+1
|/ /
* | Merge pull request #1512 from carlosmn/push-delete-onlyCarlos Martín Nieto2013-04-292-5/+22
|\ \ | |/ |/| Fix push for delete-only and add travis rules to test it
| * travis: test pushCarlos Martín Nieto2013-04-291-0/+4
| | | | | | | | | | Create a test repository in the VM and set up git-daemon so we can use it to test the push code.
| * push: don't send a packfile when only issuing delete commandsCarlos Martín Nieto2013-04-291-5/+18
|/ | | | | | | | For update and create commands where all the objects are known to exist in the remote, we must send an empty packfile. However, if all we issue are delete commands, no packfile must be sent. Take this into consideration for push.
* Merge pull request #1504 from ethomson/git_atomic_ssizeVicent Martí2013-04-255-16/+48
|\ | | | | git_atomic_ssize for 64-bit atomics only on 64-bit platforms
| * git_atomic_ssize for 64-bit atomics only on 64-bit platformsEdward Thomson2013-04-255-16/+48
|/
* docs: formatting fixesCarlos Martín Nieto2013-04-243-26/+34
|
* repo: Add `git_repository__cleanup`Vicent Marti2013-04-244-5/+32
|
* Merge pull request #1499 from arrbee/fix-diff-config-usageVicent Martí2013-04-2311-150/+396
|\ | | | | Support more diff config options and use the config cache more
| * Make sure diff output is cleared on errorRussell Belfer2013-04-231-1/+5
| |
| * Improve diff config options handlingRussell Belfer2013-04-234-89/+291
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes diff use the cvar cache for config options where possible, and also adds support for a number of other config options to diff including "diff.context", "diff.ignoreSubmodules", "diff.noprefix", "diff.mnemonicprefix", and "core.abbrev". To make this natural, this involved a rearrangement of the code that allocates the diff object vs. the code that initializes it based on the combination of options passed in by the user and read from the config. This commit includes tests for most of these new options as well.
| * Clear repo config cache when cfgs are setRussell Belfer2013-04-231-1/+7
| | | | | | | | | | This is a conservative change, but it seemed like the only safe thing to do -- i.e. clear the cvar cache when a config gets set.
| * Use config cache where possibleRussell Belfer2013-04-234-53/+27
| | | | | | | | | | | | This converts many of the config lookups that are done around the library to use the repository config cache. This was everything I could find that wasn't part of diff (which requires a larger fix).
| * Add configs to repo config cacheRussell Belfer2013-04-233-9/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | This adds a bunch of additional config values to the repository config value cache and makes it easier to add a simple boolean config without creating enum values for each possible setting. Also, this fixes a bug in git_config_refresh where the config cache was not being cleared which could lead to potential incorrect values. The work to start using the new cached configs will come in the next couple of commits...
| * Make tree to tree diffs case sensitiveRussell Belfer2013-04-231-2/+10
| | | | | | | | | | | | | | | | When case insensitive tree iterators were added, we started reading the case sensitivity of the index to decide if the tree should be case sensitive. This is good for index-to-tree comparisons, but for tree-to-tree comparisons, we should really default to doing a case sensitive comparison unless the user really wants otherwise.
| * Support diff.context configLinquize2013-04-231-1/+12
|/
* Clone: replace fetch spec with custom valueBen Straub2013-04-232-4/+6
|
* Merge pull request #1502 from nvloff/remote_refspecs_minor_fixesVicent Martí2013-04-232-10/+1
|\ | | | | Remote refspecs minor fixes
| * get last refspec in clone testNikolai Vladimirov2013-04-231-1/+1
| |
| * remove git_remote_pushspecNikolai Vladimirov2013-04-231-9/+0
| |
* | Merge pull request #1498 from libgit2/vmg/atomic64Vicent Martí2013-04-235-9/+64
|\ \ | | | | | | 64 bit atomic operations and shared cache memory usage
| * | opts: Add getter for cached memoryvmg/atomic64Vicent Marti2013-04-234-3/+9
| | |
| * | cache: More aggressive defaultVicent Marti2013-04-221-1/+1
| | |
| * | cache: Shared meter for memory usageVicent Marti2013-04-223-8/+15
| | |
| * | atomic: Add an atomic type for 64-bit operationsVicent Marti2013-04-221-0/+42
| | |
* | | Merge pull request #1501 from xavier-l/packbuilder-commitVicent Martí2013-04-232-0/+27
|\ \ \ | |_|/ |/| | Added function to insert commit into pack
| * | Fixes indentationXavier L2013-04-231-8/+8
| | |