summaryrefslogtreecommitdiff
path: root/include/git2/index.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Make index add/append support core.filemode flagRussell Belfer2012-06-191-0/+29
| | | | | | | | | | | This fixes git_index_add and git_index_append to behave more like core git, preserving old filemode data in the index when adding and/or appending with core.filemode = false. This also has placeholder support for core.symlinks and core.ignorecase, but those flags are not implemented (well, symlinks has partial support for preserving mode information in the same way that git does, but it isn't tested).
* Fix spelling errors.Bruce Mitchener2012-05-191-1/+1
|
* errors: Rename the generic return codesVicent Martí2012-05-181-9/+9
|
* Update Copyright headerschu2012-02-131-1/+1
| | | | Signed-off-by: schu <schu-github@schulog.org>
* Patch cleanup for mergeRussell Belfer2012-01-161-0/+4
| | | | | | | | | | After reviewing the gitignore support with Vicent, we came up with a list of minor cleanups to prepare for merge, including: * checking git_repository_config error returns * renaming git_ignore_is_ignored and moving to status.h * fixing next_line skipping to include \r skips * commenting on where ignores are and are not included
* add git_index_read_treeClemens Buchacher2011-12-301-0/+11
|
* Tabify everythingVicent Marti2011-09-191-15/+15
| | | | | | There were quite a few places were spaces were being used instead of tabs. Try to catch them all. This should hopefully not break anything. Except for `git blame`. Oh well.
* Cleanup legal dataVicent Marti2011-09-191-22/+4
| | | | | | | | | | 1. The license header is technically not valid if it doesn't have a copyright signature. 2. The COPYING file has been updated with the different licenses used in the project. 3. The full GPLv2 header in each file annoys me.
* Standardized doxygen @return lines for int functions to say "GIT_SUCCESS or ↵David Boyce2011-09-131-8/+8
| | | | an error code".
* index: fix cast warningsKirill A. Shutemov2011-07-251-2/+2
| | | | | | | | | | | | | | | /home/kas/git/public/libgit2/src/index.c: In function ‘git_index_clear’: /home/kas/git/public/libgit2/src/index.c:228:8: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] /home/kas/git/public/libgit2/src/index.c:235:8: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] /home/kas/git/public/libgit2/src/index.c: In function ‘index_insert’: /home/kas/git/public/libgit2/src/index.c:392:7: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] /home/kas/git/public/libgit2/src/index.c:399:7: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] /home/kas/git/public/libgit2/src/index.c: In function ‘read_unmerged’: /home/kas/git/public/libgit2/src/index.c:681:35: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] /home/kas/git/public/libgit2/src/index.c: In function ‘read_entry’: /home/kas/git/public/libgit2/src/index.c:716:33: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
* index: introduce git_index_uniq() functionKirill A. Shutemov2011-07-051-0/+7
| | | | | | | | | It removes all entries with equal path except last added. On large indexes git_index_append() + git_index_uniq() before writing is *much* faster, than git_index_add(). Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
* Index: API uniformisation: Use unsigned int for all index number.Romain Geissler2011-06-051-2/+14
| | | | | Feature Added: Search an unmerged entry by path (git_index_get_unmerged renamed to git_index_get_unmerged_bypath) or by index (git_index_get_unmerged_byindex).
* index: Add `git_index_entry_stage` methodVicent Marti2011-06-031-0/+12
| | | | As suggested by Romain-Geissler
* index: Change the memory management for repo indexesVicent Marti2011-06-011-15/+10
| | | | | The `git_repository_index` call now returns a brand new index that must be manually free'd.
* index: Fix issues in the unmerged entries APIVicent Marti2011-05-191-6/+10
|
* Merge branch 'development' into unmergedJakob Pfender2011-05-171-32/+63
|\
| * Fix misspelling of git_index_append2 (was git_index_apppend2).Jason R. McNeil2011-05-031-2/+2
| |
| * Re-apply missing patchesVicent Marti2011-05-021-23/+13
| |
| * index: Refactor add/replace methodsVicent Marti2011-04-241-10/+50
| | | | | | | | | | | | | | | | | | | | | | Removed the optional `replace` argument, we now have 4 add methods: `git_index_add`: add or update from path `git_index_add2`: add or update from struct `git_index_append`: add without replacing from path `git_index_append2`: add without replacing from struct Yes, this breaks the bindings.
| * index: Allow user to toggle whether to replace an index entryJakob Pfender2011-04-211-4/+5
| | | | | | | | | | When in the middle of a merge, the index needs to contain several files with the same name. git_index_insert() used to prevent this by not adding a new entry if an entry with the same name already existed.
* | index: Add API for unmerged entriesJakob Pfender2011-04-211-0/+24
|/ | | | | | | | | | | | | | | | | | | | | | New external functions: - git_index_unmerged_entrycount: Counts the unmerged entries in the index - git_index_get_unmerged: Gets an unmerged entry from the index by name New internal functions: - read_unmerged: Wrapper for read_unmerged_internal - read_unmerged_internal: Reads unmerged entries from the index if the index has the INDEX_EXT_UNMERGED_SIG set - unmerged_srch: Search function for unmerged vector - unmerged_cmp: Compare function for unmerged vector New data structures: - git_index now contains a git_vector unmerged that stores unmerged entries - git_index_entry_unmerged: Representation of an unmerged file entry. It represents all three versions of the file at the same time, with one name, three modes and three OIDs
* index.h: Add IDXENTRY flags needed for index operationsJakob Pfender2011-04-081-0/+40
| | | | | Add several IDXENTRY flags that need to be checked in order to properly implement update-index --refresh.
* index.h: Fix minor typoJakob Pfender2011-03-251-1/+1
|
* index.h: Correct documentation for git_index_open_inrepo()Jakob Pfender2011-03-251-1/+1
| | | | | | Fix the doxygen comments for git_index_open_inrepo(). Previously they referred to a param index_path and omitted index (probably a c&p error).
* Move the external includes folder from `src` to `include`Vicent Marti2011-03-031-0/+199
Signed-off-by: Vicent Marti <tanoku@gmail.com>