summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #664 from arrbee/attrs-from-indexdevelopment-mergeVicent Martí2012-05-0551-317/+867
|\ | | | | Support git attrs from index (and bare repo)
| * Fix valgrind issuesRussell Belfer2012-05-046-18/+37
| | | | | | | | | | | | | | There are three changes here: - correctly propogate error code from failed object lookups - make zlib inflate use our allocators - add OID to notfound error in ODB lookups
| * Fixing issue with test dataRussell Belfer2012-05-046-1/+6
| |
| * Fix memory leaks and use after freeRussell Belfer2012-05-047-19/+37
| |
| * Support reading attributes from indexRussell Belfer2012-05-0339-285/+793
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Depending on the operation, we need to consider gitattributes in both the work dir and the index. This adds a parameter to all of the gitattributes related functions that allows user control of attribute reading behavior (i.e. prefer workdir, prefer index, only use index). This fix also covers allowing us to check attributes (and hence do diff and status) on bare repositories. This was a somewhat larger change that I hoped because it had to change the cache key used for gitattributes files.
* | notes: Cleanup error handlingVicent Martí2012-05-051-19/+11
| |
* | Merge pull request #663 from schu/notes-honor-configVicent Martí2012-05-053-6/+108
|\ \ | | | | | | Honor core.notesRef config option
| * | notes: add git_note_default_ref()Michael Schubert2012-05-033-0/+27
| | | | | | | | | | | | | | | Add git_note_default_ref to allow easy retrieval of the currently set default notes reference.
| * | notes: honor core.notesRefMichael Schubert2012-05-032-6/+81
| | | | | | | | | | | | | | | Setting core.notesRef allows to change the default notes reference used by Git. Check if set before using GIT_NOTES_DEFAULT_REF. Fixes #649.
* | | clar: Properly create files in helperVicent Martí2012-05-041-3/+2
| | |
* | | compat: va_copy on Win32 systemsVicent Martí2012-05-041-0/+8
|/ /
* | Silence return value warningVicent Martí2012-05-031-2/+2
| |
* | errors: Use a git_buf for building error stringsVicent Martí2012-05-031-29/+42
| |
* | buffer: Add `git_buf_vprintf`Vicent Martí2012-05-032-6/+23
|/
* Remove old and unused error codesVicent Martí2012-05-0224-355/+92
|
* BoomVicent Martí2012-05-025-14/+14
|
* chmod for writability when writing test filesRussell Belfer2012-05-021-1/+2
|
* Backport more test dataVicent Martí2012-05-0267-44/+1
|
* Move test resourcesVicent Martí2012-05-0298-0/+0
|
* Update test suiteVicent Martí2012-05-0223-253/+91
|
* Merge branch 'new-error-handling' into developmentVicent Martí2012-05-02281-7271/+12072
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .travis.yml include/git2/diff.h src/config_file.c src/diff.c src/diff_output.c src/mwindow.c src/path.c tests-clar/clar_helpers.c tests-clar/object/tree/frompath.c tests/t00-core.c tests/t03-objwrite.c tests/t08-tag.c tests/t10-refs.c tests/t12-repo.c tests/t18-status.c tests/test_helpers.c tests/test_main.c
| * Convert from strnlen to git_text_is_binaryRussell Belfer2012-05-021-4/+16
| | | | | | | | | | | | Since strnlen is not supported on all platforms and since we now have the shiny new git_text_is_binary in the filtering code, let's convert diff binary detection to use the new stuff.
| * Copy values to avoid strict aliasing warningRussell Belfer2012-05-021-1/+6
| | | | | | | | | | | | To make this code more resilient to future changes, we'll explicitly translate the libgit2 structure to the libxdiff structure.
| * Fix usage of "new" for fieldname in public headerRussell Belfer2012-05-026-184/+184
| | | | | | | | | | | | | | | | This should restore the ability to include libgit2 headers in C++ projects. Cherry picked 2de60205dfea2c4a422b2108a5e8605f97c2e895 from development into new-error-handling.
| * Merge remote-tracking branch 'carlosmn/remaining-errors' into new-error-handlingVicent Martí2012-05-019-312/+300
| |\ | | | | | | | | | | | | Conflicts: src/refspec.c
| | * error handling: move the missing parts over to the new error handlingCarlos Martín Nieto2012-04-269-312/+300
| | |
| * | Merge pull request #658 from schu/remote-disconnectVicent Martí2012-05-012-8/+13
| |\ \ | | | | | | | | remote: don't free transport on disconnect
| | * | remote: don't free transport on disconnectMichael Schubert2012-05-022-8/+13
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, git_remote_disconnect not only closes the connection but also frees the underlying transport object, making it impossible to write code like // fetch stuff git_remote_download() // close connection git_remote_disconnect() // call user provided callback for each ref git_remote_update_tips(remote, callback) because remote->refs points to references owned by the transport object. This means, we have an idling connection while running the callback for each reference. Instead, allow immediate disconnect and free the transport later in git_remote_free().
| * | tests-clar/diff: mark output_len unusedMichael Schubert2012-05-011-0/+1
| | |
| * | Merge pull request #655 from nulltoken/topic/cr-normalization-testVicent Martí2012-04-301-6/+50
| |\ \ | | | | | | | | crlf normalization test coverage
| | * | attr: add test coverage related to crlf normalization while stagingnulltoken2012-05-011-6/+50
| | | |
| * | | Merge pull request #654 from carlosmn/pkt-errVicent Martí2012-04-304-0/+50
| |\ \ \ | | |/ / | |/| | Recognize and report server-side error messages
| | * | net: recognize and report server-side error messagesCarlos Martín Nieto2012-04-304-0/+50
| | | | | | | | | | | | | | | | | | | | When e.g. a repository isn't found, the server sends an error saying so. Put that error message in our error buffer.
| * | | Merge pull request #652 from nulltoken/topic/diff-callbacksRussell Belfer2012-04-3020-96/+136
| |\ \ \ | | |/ / | |/| | diff: provide more context to the consumer of the callbacks
| | * | Leverage GIT_UNUSED macro to explicitly mark a function parameter as ↵nulltoken2012-04-301-8/+14
| | | | | | | | | | | | | | | | purposely unused
| | * | buf: deploy git_buf_len()nulltoken2012-04-3014-43/+43
| | | |
| | * | diff: provide more context to the consumer of the callbacksnulltoken2012-04-305-45/+74
| | | | | | | | | | | | | | | | Update the callback to provide some information related to the file change being processed and the range of the hunk, when applicable.
| | * | buf: add git_buf_len() accessor to expose the current length of the buffer ↵nulltoken2012-04-291-1/+6
| |/ / | | | | | | | | | content
| * | Add a travis config fileCarlos Martín Nieto2012-04-291-0/+39
| | | | | | | | | | | | Teach travis how to build the project.
| * | pkt: bring back GIT_ESHORTBUFFERCarlos Martín Nieto2012-04-291-8/+4
| | | | | | | | | | | | | | | | | | The recent 64-bit Windows fixes changed the return code in git_pkt_parse_line() so it wouldn't signal a short buffer, breaking the network code. Bring it back.
| * | remote: add more doc on git_remote_freeMichael Schubert2012-04-281-0/+3
| | |
| * | refs: fix unused-but-set warningMichael Schubert2012-04-271-0/+1
| | |
| * | Fix Win32 warningsRussell Belfer2012-04-266-18/+20
| | |
| * | Merge pull request #646 from arrbee/ignore-pat-leading-slashVicent Martí2012-04-266-33/+103
| |\ \ | | |/ | |/| Ignore pat leading slash
| | * Fix leading slash behavior in attrs/ignoresRussell Belfer2012-04-266-33/+103
| |/ | | | | | | | | | | We were not following the git behavior for leading slashes in path names when matching git ignores and git attribute file patterns. This should fix issue #638.
| * diff: fix generation of the header of a removal patchnulltoken2012-04-254-8/+86
| |
| * Merge pull request #642 from arrbee/mem-poolsRussell Belfer2012-04-2538-935/+1745
| |\ | | | | | | Memory pools and khash hashtables
| | * Rename git_khash_str to git_strmap, etc.Russell Belfer2012-04-2518-794/+273
| | | | | | | | | | | | | | | | | | This renamed `git_khash_str` to `git_strmap`, `git_hash_oid` to `git_oidmap`, and deletes `git_hashtable` from the tree, plus adds unit tests for `git_strmap`.
| | * Convert hashtable usage over to khashRussell Belfer2012-04-2513-202/+433
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This updates khash.h with some extra features (like error checking on allocations, ability to use wrapped malloc, foreach calls, etc), creates two high-level wrappers around khash: `git_khash_str` and `git_khash_oid` for string-to-void-ptr and oid-to-void-ptr tables, then converts all of the old usage of `git_hashtable` over to use these new hashtables. For `git_khash_str`, I've tried to create a set of macros that yield an API not too unlike the old `git_hashtable` API. Since the oid hashtable is only used in one file, I haven't bother to set up all those macros and just use the khash APIs directly for now.
| | * Import khash.h from attractivechaos/klibRussell Belfer2012-04-251-0/+548
| | |