summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | Clarified git_repository_is_empty() documentationPierre-Olivier Latour2015-01-271-2/+2
|/ / / / /
* | | | | Merge pull request #2819 from libgit2/cmn/config-get-pathEdward Thomson2015-01-264-0/+123
|\ \ \ \ \ | | | | | | | | | | | | config: add parsing and getter for paths
| * | | | | config: add parsing and getter for pathscmn/config-get-pathCarlos Martín Nieto2015-01-144-0/+123
| | |_|_|/ | |/| | |
* | | | | Merge pull request #2837 from swisspol/set_indexEdward Thomson2015-01-261-1/+1
|\ \ \ \ \ | | | | | | | | | | | | Allow passing a NULL index to git_repository_set_index()
| * | | | | Allow passing a NULL index to git_repository_set_index()Pierre-Olivier Latour2015-01-231-1/+1
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | This is supported by the underlying set_index() implementation and setting the repository index to NULL is recommended by the git_repository_set_bare() documentation.
* | | | | Merge pull request #2839 from swisspol/typoEdward Thomson2015-01-261-1/+1
|\ \ \ \ \ | | | | | | | | | | | | Fixed typo in git_repository_reinit_filesystem() documentation
| * | | | | Fixed typo in git_repository_reinit_filesystem() documentationPierre-Olivier Latour2015-01-231-1/+1
| |/ / / /
* | | | | Merge pull request #2847 from jacquesg/coverityEdward Thomson2015-01-263-1/+8
|\ \ \ \ \ | | | | | | | | | | | | More coverity fixes
| * | | | | Ensure the diff hunk callback is specified before trying to dereference itJacques Germishuys2015-01-251-1/+2
| | | | | |
| * | | | | Return early if allocating a git_pathspec_match_list failedJacques Germishuys2015-01-251-0/+3
| | | | | |
| * | | | | Ensure git_index_entry is not NULL before trying to free itJacques Germishuys2015-01-251-0/+3
| | |_|_|/ | |/| | |
* | | | | Merge pull request #2840 from swisspol/sys_repository_includeEdward Thomson2015-01-261-0/+3
|\ \ \ \ \ | | | | | | | | | | | | Make sure sys/repository.h includes the required headers
| * | | | | Make sure sys/repository.h includes the required headersPierre-Olivier Latour2015-01-231-0/+3
| | |/ / / | |/| | | | | | | | | | | | | | | | | | It was missing "common.h" and "types.h" like other system headers. This generated compilation errors if including it directly.
* | | | | Merge pull request #2841 from swisspol/set_bareEdward Thomson2015-01-261-1/+1
|\ \ \ \ \ | | | | | | | | | | | | Fixed git_repository_set_bare() not setting "core.bare" correctly
| * | | | | Fixed git_repository_set_bare() not setting "core.bare" correctlyPierre-Olivier Latour2015-01-231-1/+1
| |/ / / /
* | | | | Merge pull request #2844 from rakuco/netinet-include-fixesEdward Thomson2015-01-261-0/+3
|\ \ \ \ \ | | | | | | | | | | | | openssl: Add all required includes for AF_INET6 and in6_addr.
| * | | | | openssl: Add all required includes for AF_INET6 and in6_addr.Raphael Kubo da Costa2015-01-241-0/+3
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the build at least on FreeBSD, where those types were not defined indirectly: src/openssl_stream.c:100:18: error: variable has incomplete type 'struct in6_addr' struct in6_addr addr6; ^ src/openssl_stream.c:100:9: note: forward declaration of 'struct in6_addr' struct in6_addr addr6; ^ src/openssl_stream.c:111:18: error: use of undeclared identifier 'AF_INET' if (p_inet_pton(AF_INET, host, &addr4)) { ^ src/unix/posix.h:31:40: note: expanded from macro 'p_inet_pton' ^ src/openssl_stream.c:115:18: error: use of undeclared identifier 'AF_INET6' if(p_inet_pton(AF_INET6, host, &addr6)) { ^ src/unix/posix.h:31:40: note: expanded from macro 'p_inet_pton' ^
* | | | | Merge pull request #2848 from JIghtuse/describe_mem_fixEdward Thomson2015-01-261-2/+4
|\ \ \ \ \ | | | | | | | | | | | | describe example: fix memory allocation size
| * | | | | describe example: fix memory allocation sizeBoris Egorov2015-01-251-2/+4
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to allocate memory for sizeof(char *) * ncommits, not just for ncommits. Issue detected by GCC's AddressSanitizer.
* | | | | Merge pull request #2846 from JIghtuse/masterCarlos Martín Nieto2015-01-261-0/+3
|\ \ \ \ \ | |/ / / / |/| | | | pathspec: do not try to dereference NULL
| * | | | pathspec: do not try to dereference NULLBoris Egorov2015-01-251-0/+3
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pathspec_match_free() should not dereference a NULL passed to it. I found this issue when I tried to run example log program with nonexistent branch: ./example/log help Such call leads to segmentation fault.
* | | | Merge pull request #2834 from ethomson/memleakEdward Thomson2015-01-221-0/+1
|\ \ \ \ | |/ / / |/| | | checkout: free last created directory
| * | | checkout: free last created directoryEdward Thomson2015-01-231-0/+1
|/ / /
* | | Merge pull request #2829 from jacquesg/dead-codeEdward Thomson2015-01-212-2/+2
|\ \ \ | | | | | | | | Remove logically dead code (we're already asserting)
| * | | Treat a NULL string as if it's emptyJacques Germishuys2015-01-201-1/+1
| | | |
| * | | Remove logically dead code (we're already asserting)Jacques Germishuys2015-01-201-1/+1
| | | |
* | | | Merge pull request #2823 from ethomson/appveyor_badgeEdward Thomson2015-01-201-1/+1
|\ \ \ \ | | | | | | | | | | README: Point to libgit2 account's AppVeyor badge
| * | | | README: Point to libgit2 account's AppVeyor badgeEdward Thomson2015-01-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Microsoft is sponsoring a Pro account at AppVeyor for the libgit2 and LibGit2Sharp projects. Point to that account's badge.
* | | | | checkout tests: cleanup realpath impl on Win32Edward Thomson2015-01-201-36/+6
| | | | |
* | | | | checkout tests: emulate p_realpath poorly on Win32Edward Thomson2015-01-201-1/+64
| | | | |
* | | | | checkout: remove files before writing new onesEdward Thomson2015-01-206-27/+207
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On case insensitive filesystems, we may have files in the working directory that case fold to a name we want to write. Remove those files (by default) so that we will not end up with a filename that has the unexpected case.
* | | | | checkout: drop newline in error messageEdward Thomson2015-01-201-1/+1
| | | | |
* | | | | checkout tests: nasty symlinksEdward Thomson2015-01-2018-3/+50
| | | | | | | | | | | | | | | | | | | | Symbolic links that abuse case insensitivity to write into .git.
* | | | | checkout: don't recreate previous directoryEdward Thomson2015-01-201-3/+19
| | | | | | | | | | | | | | | | | | | | | | | | | Don't bother trying to recreate the previously created directory during checkout, for a modest reduction in the number of stats.
* | | | | mkdir: walk up tree to mkdirEdward Thomson2015-01-202-11/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Walk up the tree to mkdir, which is less immediately efficient, but allows us to look at intermediate directories that may need attention.
* | | | | git_path_join_unrooted: return base lenEdward Thomson2015-01-204-15/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The documentation for `git_path_join_unrooted` states that the base length will be returned, so that consumers like checkout know where to start creating directories instead of always creating directories at the directory root.
* | | | | checkout: introduce git_checkout_perfdataEdward Thomson2015-01-205-50/+174
| | | | | | | | | | | | | | | | | | | | | | | | | Checkout can now provide performance data about the number of (some) syscalls performed using an optional callback.
* | | | | Merge pull request #2704Edward Thomson2015-01-2012-3/+39
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | Add files and tests with many UTF-8 chars and few UTF-8 charsLinquize2015-01-209-1/+31
| | | | |
| * | | | Make binary detection work similar to vanilla gitSven Strickroth2015-01-203-2/+8
|/ / / / | | | | | | | | | | | | | | | | | | | | Main change: Don't treat chars > 128 as non-printable (common in UTF-8 files) Signed-off-by: Sven Strickroth <email@cs-ware.de>
* | | | Merge pull request #2828 from ethomson/treediff_dont_patchCarlos Martín Nieto2015-01-201-5/+6
|\ \ \ \ | |/ / / |/| | | diff: only compute patches when requested
| * | | diff: only compute patches when requestedEdward Thomson2015-01-201-5/+6
|/ / / | | | | | | | | | | | | When we're called with no hunk or line callback, we don't need to do the hunk or line computation.
* | | Merge pull request #2821 from maksqwe/strlen_optimizationCarlos Martín Nieto2015-01-151-1/+1
|\ \ \ | |/ / |/| | Remove strlen() calls from loop condition
| * | Remove strlen() calls from loop conditionMaks Naumov2015-01-151-1/+1
|/ / | | | | | | Avoid str length recalculation every iteration
* | CHANGELOG: include small file similarity detectionEdward Thomson2015-01-141-0/+2
| |
* | Merge pull request #2818 from leoyanggit/openssl_optionEdward Thomson2015-01-141-1/+2
|\ \ | | | | | | Add option to turn off OpenSSL
| * | Add option to turn off OpenSSLLeo Yang2015-01-131-1/+2
| | |
* | | Merge branch 'pr/2740'Edward Thomson2015-01-147-85/+118
|\ \ \
| * | | Always use GIT_HASHSIG_SMART_WHITESPACE when diffing for mergesPierre-Olivier Latour2015-01-141-7/+1
| | | | | | | | | | | | | | | | git_merge_tree_flag_t cannot contain any GIT_DIFF_FIND_xxx flags so there's not point in checking for them
| * | | Added GIT_HASHSIG_ALLOW_SMALL_FILES to allow computing signatures for small ↵Pierre-Olivier Latour2015-01-146-78/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | files The implementation of the hashsig API disallows computing a signature on small files containing only a few lines. This new flag disables this behavior. git_diff_find_similar() sets this flag by default which means that rename / copy detection of small files will now work. This in turn affects the behavior of the git_status and git_blame APIs which will now detect rename of small files assuming the right options are passed.