summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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
| * | checkout: introduce git_checkout_optsBen Straub2012-07-262-19/+29
| | | | | | | | | | | | | | | Refactor checkout into several more-sensible entry points, which consolidates common options into a single structure that may be passed around.
| * | checkout: create submodule dirsBen Straub2012-07-211-16/+17
| | |
| * | filter: fix memory leakBen Straub2012-07-211-0/+3
| | |
| * | Checkout: obey core.symlinks.Ben Straub2012-07-175-9/+48
| | |
| * | Merge branch 'development' into cloneBen Straub2012-07-1748-989/+1834
| |\ \
| * | | Checkout: handle symlinks.Ben Straub2012-07-164-23/+57
| | | | | | | | | | | | Includes unfinished win32 implementation.
| * | | Migrate code to git_filter_blob_contents.Ben Straub2012-07-163-38/+46
| | | | | | | | | | | | | | | | | | | | | | | | Also removes the unnecessary check for filter length, since git_filters_apply does the right thing when there are none, and it's more efficient than this.
| * | | Use git_blob__getbuf.Ben Straub2012-07-161-9/+5
| | | |
| * | | Create filtered_blob_contents out of parts on hand.Ben Straub2012-07-131-57/+77
| | | |
| * | | Move is_dot_or_dotdotW into path.h.Ben Straub2012-07-112-8/+8
| | | |
| * | | Fix compile and workings on msvc.Ben Straub2012-07-112-7/+25
| | | | | | | | | | | | | | | | Signed-off-by: Ben Straub <bstraub@github.com>
| * | | Add git_path_is_empty_dir.Ben Straub2012-07-113-43/+62
| | | |
| * | | Add git_path_is_dot_or_dotdot.Ben Straub2012-07-113-18/+12
| | | | | | | | | | | | | | | | Also, remove some duplication in the clone test suite.
| * | | Remove duplicate of git_repository_head_tree.Ben Straub2012-07-111-24/+1
| | | |
| * | | Reindent.Ben Straub2012-07-101-2/+0
| | | |
| * | | Plug leak.Ben Straub2012-07-101-0/+1
| | | |
| * | | Tabify.Ben Straub2012-07-091-212/+212
| | | |
| * | | Checkout: only walk tree once while checking out.Ben Straub2012-07-091-15/+5
| | | |
| * | | Checkout: add structure for CRLF.Ben Straub2012-07-093-5/+24
| | | |