summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* branch: Change `git_branch_delete` to take a refbranch-delete-refVicent Marti2012-08-262-17/+21
|
* posix: Always set a default mapping modeVicent Marti2012-08-261-0/+2
|
* indexer: kill git_indexer_stats.data_receivedCarlos Martín Nieto2012-08-262-18/+4
| | | | | | | It's not really needed with the current code as we have EOS and the sideband's flush to tell us we're done. Keep the distinction between processed and received objects.
* http: increase buffer side to deal with side-band-64kCarlos Martín Nieto2012-08-251-1/+1
| | | | This poor transport was forgotten in the recent sideband support.
* indexer: don't segfault when freeing an unused indexerCarlos Martín Nieto2012-08-251-3/+5
| | | | | Make sure that idx->pack isn't NULL before trying to free resources under it.
* Merge pull request #896 from ben/revparse-ambiguousVicent Martí2012-08-251-3/+0
|\ | | | | Revparse: GIT_EAMBIGUOUS
| * Revparse: GIT_EAMBIGUOUSBen Straub2012-08-251-3/+0
| | | | | | | | Revparse now returns EAMBIGUOUS if the the spec doesn't match any refs/tags, and is <4 characters.
* | Merge pull request #895 from carlosmn/sidebandVicent Martí2012-08-249-13/+169
|\ \ | | | | | | Add sideband support
| * | network: add sideband supportCarlos Martín Nieto2012-08-248-12/+155
| | | | | | | | | | | | | | | This lets us notify the user of what the remote end is doing while we wait for it to start sending us the packfile.
| * | indexer: recognize and mark when all of the packfile has been downloadedCarlos Martín Nieto2012-08-242-2/+15
| | | | | | | | | | | | | | | We can't always rely on the network telling us when the download is finished. Recognize it from the indexer itself.
* | | Merge pull request #852 from arrbee/submodule-extensionsVicent Martí2012-08-2412-241/+1485
|\ \ \ | | | | | | | | Submodule extensions
| * | | Fix valgrind warnings and spurious error messagesRussell Belfer2012-08-244-7/+16
| | | | | | | | | | | | | | | | | | | | | | | | Just clean up valgrind warnings about uninitialized memory and also clear out errno in some cases where it results in a false error message being generated at a later point.
| * | | Working implementation of git_submodule_statusRussell Belfer2012-08-245-210/+224
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a big redesign of the git_submodule_status API and the implementation of the redesigned API. It also fixes a number of bugs that I found in other parts of the submodule API while writing the tests for the status part. This also fixes a couple of bugs in the iterators that had not been noticed before - one with iterating when there is a gitlink (i.e. separate-work-dir) and one where I was treating anything even vaguely submodule-like as a submodule, more aggressively than core git does.
| * | | Fix valgrind issues and leaksRussell Belfer2012-08-244-128/+143
| | | | | | | | | | | | | | | | | | | | | | | | This fixes up a number of problems flagged by valgrind and also cleans up the internal `git_submodule` allocation handling overall with a simpler model.
| * | | Major submodule rewriteRussell Belfer2012-08-245-144/+1351
| | | | | | | | | | | | | | | | | | | | This replaces the old submodule API with a new extended API that supports most of the things that can be done with `git submodule`.
* | | | Support new config locationsRussell Belfer2012-08-244-11/+24
| | | | | | | | | | | | | | | | | | | | As of git v1.7.12, $HOME/.config/git/ is supported as a new location for "config", "attributes", and "ignore" files.
* | | | Fix memory leak in cp_rRussell Belfer2012-08-241-0/+1
| | | |
* | | | Fix crash with adding internal ignoresRussell Belfer2012-08-241-8/+12
|/ / / | | | | | | | | | | | | | | | Depending on what you had done before adding new items to the internal ignores list, it was possible for the cache of ignore data to be uninitialized.
* | | Fix errors on Win32 with new repo initRussell Belfer2012-08-242-5/+8
|/ /
* | Fix warnings and merge issues on Win64Russell Belfer2012-08-234-30/+10
| |
* | Some cleanup suggested during reviewRussell Belfer2012-08-225-40/+16
| | | | | | | | | | | | | | | | | | | | This cleans up a number of items suggested during code review with @vmg, including: * renaming "outside repo" config API to `git_config_open_default` * killing the `git_config_open_global` API * removing the `git_` prefix from the static functions in fileops * removing some unnecessary functionality from the "cp" command
* | fix missing validation and type cast warningRussell Belfer2012-08-221-1/+4
| |
* | Add template dir and set gid to repo initRussell Belfer2012-08-2211-166/+594
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This extends git_repository_init_ext further with support for initializing the repository from an external template directory and with support for the "create shared" type flags that make a set GID repository directory. This also adds tests for much of the new functionality to the existing `repo/init.c` test suite. Also, this adds a bunch of new utility functions including a very general purpose `git_futils_mkdir` (with the ability to make paths and to chmod the paths post-creation) and a file tree copying function `git_futils_cp_r`. Also, this includes some new path functions that were useful to keep the code simple.
* | Add git_repository_init_ext for power inittersRussell Belfer2012-08-225-137/+398
|/ | | | | | | The extended version of repository init adds support for many of the things that you can do with `git init` and sets up structures that will make it easier to extend further in the future.
* Minor bug fixes in diff codeRussell Belfer2012-08-222-2/+4
| | | | | | | In looking at PR #878, I found a few small bugs in the diff code, mostly related to work that can be avoided when processing tree- to-tree diffs that was always being carried out. This commit has some small fixes in it.
* Merge pull request #891 from arrbee/internal-ignore-apiVicent Martí2012-08-224-9/+61
|\ | | | | API for managing in-memory ignore rules
| * Wrap up ignore API and add testsRussell Belfer2012-08-222-9/+18
| | | | | | | | This fills out the ignore API and adds tests.
| * Add public API for internal ignoresRussell Belfer2012-08-213-0/+43
| | | | | | | | | | | | | | This creates a public API for adding to the internal ignores list, which already existing but was not accessible. This adds the new default value for core.excludesfile also.
* | tree entry: rename git_tree_entry_attributes() into git_tree_entry_filemode()nulltoken2012-08-213-5/+5
| |
* | filemode: deploy enum usagenulltoken2012-08-213-23/+33
|/
* Merge pull request #884 from carlosmn/global-windowsVicent Martí2012-08-204-14/+44
|\ | | | | Make the memory-window conrol structures global
| * Make the memory-window conrol structures globalCarlos Martín Nieto2012-08-204-14/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | Up to now, the idea was that the user would do all the operations for one repository in the same thread. Thus we could have the memory-mapped window information thread-local and avoid any locking. This is not practical in a few environments, such as Apple's GCD which allocates threads arbitrarily or the .NET CLR, where the OS-level thread can change at any moment. Make the control structure global and protect it with a mutex so we don't depend on the thread currently executing the code.
* | treebuilder: enhance attributes handling on insertionnulltoken2012-08-191-4/+26
| |
* | Merge pull request #778 from ben/cloneVicent Martí2012-08-1914-21/+767
|\ \ | |/ |/| Clone
| * Clean up a TODO comment.Ben Straub2012-08-011-1/+0
| |
| * Checkout: fix problem with detached HEAD.Ben Straub2012-07-311-5/+2
| |
| * Checkout: crlf filter.Ben Straub2012-07-311-8/+80
| |
| * Checkout: handle file modes properly.Ben Straub2012-07-311-6/+9
| | | | | | | | Global file mode override now works properly with the file mode stored in the tree node.
| * Checkout: save index on checkout.Ben Straub2012-07-311-0/+1
| |
| * Enable stats on git_index_read_tree.Ben Straub2012-07-303-8/+3
| | | | | | | | | | Replace with the contents of git_index_read_tree_with_stats() and improve documentation comments.
| * Checkout: use git_index_read_tree_with_stats.Ben Straub2012-07-302-6/+24
| | | | | | | | | | New variant of git_index_read_tree that fills in the 'total' field of a git_indexer_stats struct as it's walking the tree.
| * Checkout: add head- and ref-centric checkouts.Ben Straub2012-07-272-28/+27
| | | | | | | | | | | | | | | | | | Renamed git_checkout_index to what it really was, and removed duplicate code from clone.c. Added git_checkout_ref, which updates HEAD and hands off to git_checkout_head. Added tests for the options the caller can pass to git_checkout_*.
| * Adjust for msvc pedantry.Ben Straub2012-07-271-1/+2
| |
| * Checkout: handle deeply-nested submodules better.Ben Straub2012-07-271-1/+2
| | | | | | | | Now creating intermediate directories where the submodule is deep, like "src/deps/foosubmodule".
| * Fix mismatched git_branch_create args.Ben Straub2012-07-271-3/+4
| |
| * Use new git_remote_update_tips signature.Ben Straub2012-07-271-1/+1
| |
| * Merge remote-tracking branch 'upstream/development' into test-mergeBen Straub2012-07-2723-741/+1184
| |\
| * | Checkout: use caller's flags for open()Ben Straub2012-07-261-15/+15
| | |
| * | Checkout: implementation of most optionsBen Straub2012-07-261-18/+47
| | |
| * | Restructure for better checkout optionsBen Straub2012-07-262-7/+12
| | | | | | | | | | | | | | | | | | * Removed the #define for defaults * Promoted progress structure to top-level API call argument