]> git.proxmox.com Git - libgit2.git/log
libgit2.git
9 years agoMerge pull request #2676 from libgit2/cmn/threading
Edward Thomson [Thu, 6 Nov 2014 15:25:23 +0000 (10:25 -0500)]
Merge pull request #2676 from libgit2/cmn/threading

Threading and crypto libraries

9 years agoMerge pull request #2682 from libgit2/cmn/fetch-tags-refspec
Edward Thomson [Thu, 6 Nov 2014 15:19:22 +0000 (10:19 -0500)]
Merge pull request #2682 from libgit2/cmn/fetch-tags-refspec

remote: check for the validity of the refspec when updating FETCH_HEAD

9 years agoMerge pull request #2688 from libgit2/cmn/ignore-file-trailing-cr
Edward Thomson [Wed, 5 Nov 2014 15:47:19 +0000 (10:47 -0500)]
Merge pull request #2688 from libgit2/cmn/ignore-file-trailing-cr

ignore: consider files with a CR in their names

9 years agoignore: consider files with a CR in their names
Carlos Martín Nieto [Wed, 5 Nov 2014 15:07:07 +0000 (16:07 +0100)]
ignore: consider files with a CR in their names

We currently consider CR to start the end of the line, but that means
that we miss cases with CR CR LF which can be used with git to match
files whose names have CR at the end of their names.

The fix from the patch comes from Russell's comment in the issue.

This fixes #2536.

9 years agoMerge pull request #2686 from ethomson/rename_notfound
Carlos Martín Nieto [Mon, 3 Nov 2014 21:27:11 +0000 (22:27 +0100)]
Merge pull request #2686 from ethomson/rename_notfound

Propogate GIT_ENOTFOUND from git_remote_rename

9 years agogit_remote_rename: propogate GIT_ENOTFOUND
Edward Thomson [Mon, 3 Nov 2014 19:07:20 +0000 (14:07 -0500)]
git_remote_rename: propogate GIT_ENOTFOUND

9 years agoMerge pull request #2679 from jfultz/missing-include
Edward Thomson [Mon, 3 Nov 2014 16:32:47 +0000 (11:32 -0500)]
Merge pull request #2679 from jfultz/missing-include

Make config reading continue after hitting a missing include file.

9 years agoremote: check the relevance of the refspec when updating FETCH_HEAD
Carlos Martín Nieto [Sun, 2 Nov 2014 19:11:54 +0000 (20:11 +0100)]
remote: check the relevance of the refspec when updating FETCH_HEAD

Before trying to rtransform using the given refspec to figure out what
the name of the upstream branch is on the remote, we must make sure that
the target of the refspec applies to the current branch's upstream.

9 years agoMerge pull request #2661 from swisspol/2656
Edward Thomson [Mon, 3 Nov 2014 14:10:14 +0000 (15:10 +0100)]
Merge pull request #2661 from swisspol/2656

Changed context_lines and interhunk_lines to uint32_t to match struct s_xdemitconf

9 years agoMerge pull request #2683 from libgit2/cmn/remote-unify
Edward Thomson [Mon, 3 Nov 2014 14:01:41 +0000 (15:01 +0100)]
Merge pull request #2683 from libgit2/cmn/remote-unify

remote: unify the creation code

9 years agoMerge pull request #2680 from libgit2/cmn/invalid-cert-return
Edward Thomson [Mon, 3 Nov 2014 13:57:39 +0000 (14:57 +0100)]
Merge pull request #2680 from libgit2/cmn/invalid-cert-return

netops: return GIT_ECERTIFICATE when it fails the basic tests

9 years agoMerge pull request #2685 from libgit2/cmn/mmap-readable
Edward Thomson [Mon, 3 Nov 2014 13:52:34 +0000 (14:52 +0100)]
Merge pull request #2685 from libgit2/cmn/mmap-readable

Fix segmentation fault observed on OpenBSD/sparc64

9 years agoMerge pull request #2684 from jacquesg/openssl-windows
Edward Thomson [Mon, 3 Nov 2014 13:49:56 +0000 (14:49 +0100)]
Merge pull request #2684 from jacquesg/openssl-windows

Make the Visual Studio compiler happy

9 years agoFix segmentation fault observed on OpenBSD/sparc64
Stefan Sperling [Mon, 3 Nov 2014 12:46:56 +0000 (13:46 +0100)]
Fix segmentation fault observed on OpenBSD/sparc64

A non-readable mapping of a file causes an access violation in
the pack tests. Always use PROT_READ to work around this.

9 years agoMake the Visual Studio compiler happy
Jacques Germishuys [Mon, 3 Nov 2014 12:23:13 +0000 (14:23 +0200)]
Make the Visual Studio compiler happy

9 years agoClean up issues include.path issues found during code review.
John Fultz [Mon, 3 Nov 2014 01:16:49 +0000 (19:16 -0600)]
Clean up issues include.path issues found during code review.

* Error-handling is cleaned up to only let a file-not-found error
  through, not other sorts of errors.  And when a file-not-found
  error happens, we clean up the error.
* Test now checks that file-not-found introduces no error.  And
  other minor cleanups.

9 years agoremote: unify the creation code
Carlos Martín Nieto [Sun, 2 Nov 2014 20:57:14 +0000 (21:57 +0100)]
remote: unify the creation code

The create function with default refspec is the same as the one with a
custom refspec, but it has the default refspec, so we can create the one
on top of the other.

9 years agoremote: fix tagopt test
Carlos Martín Nieto [Sun, 2 Nov 2014 19:39:29 +0000 (20:39 +0100)]
remote: fix tagopt test

An anonymous remote wouldn't create remote-tracking branches, so testing
we don't create them for TAGS_ALL is nonsensical. Furthermore, the name
of the supposed remote-tracking branch was also not one which would have
been created had it had a name.

Give the remote a name and test that we only create the tags when we
pass TAGS_ALL and that we do create the remote-branch branch when given
TAGS_AUTO.

9 years agoremote: add a failing test for checking the current branch's upstream
Carlos Martín Nieto [Sun, 2 Nov 2014 19:03:23 +0000 (20:03 +0100)]
remote: add a failing test for checking the current branch's upstream

When we update FETCH_HEAD we check whether the remote is the current
branch's upstream remote. The code does not check whether the current
refspec is relevant for this reference but always tries to perform the
reverse transformation, which causes it to error out if the refspec
doesn't match the reference.

Thanks to Pierre-Olivier Latour for the reproduction recipe.

9 years agomerge: talk about the merging state after git_merge()
Carlos Martín Nieto [Sun, 2 Nov 2014 16:18:19 +0000 (17:18 +0100)]
merge: talk about the merging state after git_merge()

Since it's not necessarily obvious, mention the merging state and how to
clear it.

9 years agonetops: return GIT_ECERTIFICATE when it fails the basic tests
Carlos Martín Nieto [Sun, 2 Nov 2014 15:12:10 +0000 (16:12 +0100)]
netops: return GIT_ECERTIFICATE when it fails the basic tests

When we first ask OpenSSL to verify the certfiicate itself (rather
than the HTTPS specifics), we should also return
GIT_ECERTIFICATE. Otherwise, the caller would consider this as a failed
operation rather than a failed validation and not call the user's own
validation.

9 years agoMake config reading continue after hitting a missing include file.
John Fultz [Sat, 1 Nov 2014 16:21:45 +0000 (11:21 -0500)]
Make config reading continue after hitting a missing include file.

For example, if you have

[include]
path = foo

and foo didn't exist, git_config_open_ondisk() would just give up
on the rest of the file.  Now it ignores the unresolved include
without error and continues reading the rest of the file.

9 years agodocs: explicitly document the threading caveats
Carlos Martín Nieto [Fri, 31 Oct 2014 10:24:02 +0000 (11:24 +0100)]
docs: explicitly document the threading caveats

Talk about sharing objects and error messages; but the most important
part is about what to do with the cryptographic libraries, which sadly
have to become to responsibility of the application.

9 years agossl: separate locking init from general init
Carlos Martín Nieto [Sat, 1 Nov 2014 09:45:33 +0000 (10:45 +0100)]
ssl: separate locking init from general init

Extract the lock-setting functions into their own, as we cannot assume
that it's ok for us to set this unconditionally.

9 years agossl: clear the OpenSSL locking function
Carlos Martín Nieto [Sat, 1 Nov 2014 09:26:09 +0000 (10:26 +0100)]
ssl: clear the OpenSSL locking function

We're freeing the memory which holds the locks so we must make sure that
the locking function doesn't try to use it.

9 years agoMerge pull request #2669 from ethomson/revert_test_fix
Edward Thomson [Mon, 27 Oct 2014 22:04:21 +0000 (15:04 -0700)]
Merge pull request #2669 from ethomson/revert_test_fix

revert tests: always use core.autocrlf=false in tests

9 years agorevert tests: always use core.autocrlf=false in tests
Edward Thomson [Mon, 27 Oct 2014 21:27:25 +0000 (17:27 -0400)]
revert tests: always use core.autocrlf=false in tests

9 years agoMerge pull request #2659 from swisspol/static_analysis
Edward Thomson [Mon, 27 Oct 2014 19:19:42 +0000 (12:19 -0700)]
Merge pull request #2659 from swisspol/static_analysis

Fixed the most obvious Clang static analyzer warnings

9 years agoFixed potential crash with uninitialized variables
Pierre-Olivier Latour [Sun, 26 Oct 2014 17:30:05 +0000 (10:30 -0700)]
Fixed potential crash with uninitialized variables

9 years agoRemoved some useless variable assignments
Pierre-Olivier Latour [Sun, 26 Oct 2014 17:29:19 +0000 (10:29 -0700)]
Removed some useless variable assignments

9 years agoChanged context_lines and interhunk_lines to uint32_t to match struct s_xdemitconf
Pierre-Olivier Latour [Sun, 26 Oct 2014 17:40:46 +0000 (10:40 -0700)]
Changed context_lines and interhunk_lines to uint32_t to match struct s_xdemitconf

9 years agoMerge pull request #2666 from libgit2/cmn/threadsafe-on
Edward Thomson [Mon, 27 Oct 2014 13:33:11 +0000 (06:33 -0700)]
Merge pull request #2666 from libgit2/cmn/threadsafe-on

Flip THREADSAFE's default to ON

9 years agoMerge commit 'refs/pull/2366/head' of github.com:libgit2/libgit2
Carlos Martín Nieto [Mon, 27 Oct 2014 09:39:45 +0000 (10:39 +0100)]
Merge commit 'refs/pull/2366/head' of github.com:libgit2/libgit2

9 years agoFlip THREADSAFE's default to ON
Carlos Martín Nieto [Mon, 27 Oct 2014 09:30:57 +0000 (10:30 +0100)]
Flip THREADSAFE's default to ON

Threads are here to stay; and for a while now, users have had to call
the initialization function which sets up threads and crypto regardless
of whether the library was built threadsafe or not.

9 years agoMerge branch 'csware/cleanup'
Edward Thomson [Mon, 27 Oct 2014 03:36:15 +0000 (23:36 -0400)]
Merge branch 'csware/cleanup'

9 years agoMinor cleanup: Use defined no_check_cert_flags instead of C&P them again
Sven Strickroth [Sun, 26 Oct 2014 16:36:14 +0000 (17:36 +0100)]
Minor cleanup: Use defined no_check_cert_flags instead of C&P them again

Signed-off-by: Sven Strickroth <email@cs-ware.de>
9 years agoMerge pull request #2482 from libgit2/ed/rebase
Edward Thomson [Mon, 27 Oct 2014 03:18:04 +0000 (20:18 -0700)]
Merge pull request #2482 from libgit2/ed/rebase

Rebase (merge)

9 years agorebase: add information to the CHANGELOG
Edward Thomson [Mon, 27 Oct 2014 02:37:01 +0000 (22:37 -0400)]
rebase: add information to the CHANGELOG

9 years agorebase: updates based on PR comments
Edward Thomson [Sun, 5 Oct 2014 00:17:26 +0000 (20:17 -0400)]
rebase: updates based on PR comments

9 years agos/git_merge_head/git_annotated_commit
Edward Thomson [Fri, 3 Oct 2014 23:02:29 +0000 (19:02 -0400)]
s/git_merge_head/git_annotated_commit

Rename git_merge_head to git_annotated_commit, as it becomes used
in more operations than just merge.

9 years agorebase: clean up some warnings and memory leaks
Edward Thomson [Fri, 3 Oct 2014 20:47:48 +0000 (20:47 +0000)]
rebase: clean up some warnings and memory leaks

9 years agorebase: oid member of operation should be const
Edward Thomson [Thu, 11 Sep 2014 20:46:46 +0000 (16:46 -0400)]
rebase: oid member of operation should be const

9 years agogit_rebase: iterators for operations
Edward Thomson [Thu, 11 Sep 2014 20:47:20 +0000 (16:47 -0400)]
git_rebase: iterators for operations

9 years agorebase: preload all operations
Edward Thomson [Tue, 26 Aug 2014 21:18:46 +0000 (16:18 -0500)]
rebase: preload all operations

9 years agorebase: init/open a git_rebase object
Edward Thomson [Mon, 25 Aug 2014 18:29:50 +0000 (13:29 -0500)]
rebase: init/open a git_rebase object

9 years agogit_rebase_next: provide info about the operation
Edward Thomson [Sat, 23 Aug 2014 23:19:34 +0000 (18:19 -0500)]
git_rebase_next: provide info about the operation

9 years agogit_rebase_finish: rewrite notes when finishing rebase
Edward Thomson [Mon, 21 Jul 2014 16:25:03 +0000 (12:25 -0400)]
git_rebase_finish: rewrite notes when finishing rebase

9 years agoIntroduce `git_note_author`, `git_note_committer`
Edward Thomson [Mon, 21 Jul 2014 14:47:01 +0000 (10:47 -0400)]
Introduce `git_note_author`, `git_note_committer`

9 years agogit_rebase_commit: write HEAD's reflog appropriately
Edward Thomson [Fri, 18 Jul 2014 22:22:54 +0000 (18:22 -0400)]
git_rebase_commit: write HEAD's reflog appropriately

9 years agoIntroduce git_rebase_finish to complete a rebase
Edward Thomson [Fri, 18 Jul 2014 21:19:10 +0000 (17:19 -0400)]
Introduce git_rebase_finish to complete a rebase

9 years agogit_rebase_next: test that we return GIT_ITEROVER
Edward Thomson [Fri, 18 Jul 2014 19:37:42 +0000 (15:37 -0400)]
git_rebase_next: test that we return GIT_ITEROVER

9 years agogit_rebase_commit: drop already-picked commits
Edward Thomson [Fri, 18 Jul 2014 18:50:06 +0000 (14:50 -0400)]
git_rebase_commit: drop already-picked commits

Already cherry-picked commits should not be re-included.  If all changes
included in a commit exist in the upstream, then we should error with
GIT_EAPPLIED.

9 years agoIntroduce git_rebase_commit
Edward Thomson [Thu, 17 Jul 2014 22:25:03 +0000 (18:25 -0400)]
Introduce git_rebase_commit

Commit the current patch of a rebase process.

9 years agogit_rebase_next: write conflicts nicely during rebase
Edward Thomson [Thu, 17 Jul 2014 15:59:01 +0000 (11:59 -0400)]
git_rebase_next: write conflicts nicely during rebase

9 years agoIntroduce git_rebase_next
Edward Thomson [Tue, 15 Jul 2014 14:23:10 +0000 (10:23 -0400)]
Introduce git_rebase_next

`git_rebase_next` will apply the next patch (or cherry-pick)
operation, leaving the results checked out in the index / working
directory so that consumers can resolve any conflicts, as appropriate.

9 years agoIntroduce git_rebase_abort
Edward Thomson [Mon, 14 Jul 2014 19:19:19 +0000 (15:19 -0400)]
Introduce git_rebase_abort

Abort an in-progress rebase and move the working directory and
repository back to the ORIG_HEAD state.

9 years agogit_reset: const the git_signature arg
Edward Thomson [Fri, 18 Jul 2014 21:40:07 +0000 (17:40 -0400)]
git_reset: const the git_signature arg

9 years agoIntroduce git_rebase to set up a rebase session
Edward Thomson [Mon, 14 Jul 2014 18:35:01 +0000 (14:35 -0400)]
Introduce git_rebase to set up a rebase session

Introduce `git_rebase` to set up a rebase session that can
then be continued.  Immediately, only merge-type rebase is
supported.

9 years agoMerge pull request #2612 from ethomson/warnings
Edward Thomson [Mon, 27 Oct 2014 02:58:24 +0000 (19:58 -0700)]
Merge pull request #2612 from ethomson/warnings

Clean up some warnings

9 years agoRemove unused warning on non-win32
Edward Thomson [Mon, 27 Oct 2014 02:38:30 +0000 (22:38 -0400)]
Remove unused warning on non-win32

9 years agoiterator: free paths when skipping them
Edward Thomson [Sat, 25 Oct 2014 23:53:53 +0000 (19:53 -0400)]
iterator: free paths when skipping them

9 years agorevwalk::mergebase test: free memory
Edward Thomson [Sat, 25 Oct 2014 23:53:27 +0000 (19:53 -0400)]
revwalk::mergebase test: free memory

9 years agomwindow: clean up pack map at shutdown
Edward Thomson [Sat, 25 Oct 2014 23:53:07 +0000 (19:53 -0400)]
mwindow: clean up pack map at shutdown

9 years agosubmodule test: free submodule
Edward Thomson [Sat, 25 Oct 2014 23:52:52 +0000 (19:52 -0400)]
submodule test: free submodule

9 years agoglobal: clean up openssl_locks on shutdown
Edward Thomson [Sat, 25 Oct 2014 23:52:11 +0000 (19:52 -0400)]
global: clean up openssl_locks on shutdown

9 years agoclone::local test: isalpha -> git__isalpha
Edward Thomson [Sat, 25 Oct 2014 23:51:46 +0000 (19:51 -0400)]
clone::local test: isalpha -> git__isalpha

9 years agoconfig test: clean up memory leak
Edward Thomson [Sat, 25 Oct 2014 23:51:12 +0000 (19:51 -0400)]
config test: clean up memory leak

9 years agoCleanup memory leak in ssh transport
Edward Thomson [Mon, 13 Oct 2014 19:43:03 +0000 (15:43 -0400)]
Cleanup memory leak in ssh transport

9 years agoClean up some memory leaks
Edward Thomson [Mon, 13 Oct 2014 18:34:32 +0000 (14:34 -0400)]
Clean up some memory leaks

9 years agoClean up various compiler warnings
Edward Thomson [Mon, 13 Oct 2014 17:34:15 +0000 (13:34 -0400)]
Clean up various compiler warnings

9 years agoMerge from 2660
Carlos Martín Nieto [Mon, 27 Oct 2014 00:48:37 +0000 (01:48 +0100)]
Merge from 2660

9 years agotests: fix leak
Carlos Martín Nieto [Mon, 27 Oct 2014 00:47:40 +0000 (01:47 +0100)]
tests: fix leak

9 years agoFix test repo dir not deleted after running
Linquize [Sun, 26 Oct 2014 17:06:28 +0000 (01:06 +0800)]
Fix test repo dir not deleted after running

9 years agoMerge pull request #2638 from libgit2/cmn/config-refresh-remove
Edward Thomson [Fri, 24 Oct 2014 23:52:39 +0000 (16:52 -0700)]
Merge pull request #2638 from libgit2/cmn/config-refresh-remove

config: remove the refresh function and backend field

9 years agoMerge pull request #2646 from libgit2/cmn/remote-rename
Edward Thomson [Fri, 24 Oct 2014 23:44:07 +0000 (16:44 -0700)]
Merge pull request #2646 from libgit2/cmn/remote-rename

remote: accept a repo and name for renaming

9 years agoMerge pull request #2649 from swisspol/2630
Edward Thomson [Fri, 24 Oct 2014 21:02:53 +0000 (14:02 -0700)]
Merge pull request #2649 from swisspol/2630

Fixed memory leak in git_tag_delete()

9 years agoMerge pull request #2647 from ethomson/clar_tmpname
Edward Thomson [Fri, 24 Oct 2014 21:01:13 +0000 (14:01 -0700)]
Merge pull request #2647 from ethomson/clar_tmpname

clar: use a custom temp directory name

9 years agoMerge pull request #2645 from libgit2/cmn/common-crypto
Edward Thomson [Fri, 24 Oct 2014 15:27:38 +0000 (08:27 -0700)]
Merge pull request #2645 from libgit2/cmn/common-crypto

[RFC] Use CommonCrypto for hashing

9 years agoFixed memory leak in git_tag_delete()
Pierre-Olivier Latour [Fri, 24 Oct 2014 15:23:14 +0000 (08:23 -0700)]
Fixed memory leak in git_tag_delete()

9 years agoclar: use a custom temp directory name
Edward Thomson [Fri, 24 Oct 2014 14:50:57 +0000 (10:50 -0400)]
clar: use a custom temp directory name

9 years agoMerge pull request #2644 from libgit2/cmn/remove-supported-url
Edward Thomson [Fri, 24 Oct 2014 14:39:10 +0000 (07:39 -0700)]
Merge pull request #2644 from libgit2/cmn/remove-supported-url

remote: delete git_remote_supported_url()

9 years agoremote: accept a repo and name for renaming
Carlos Martín Nieto [Fri, 24 Oct 2014 14:25:59 +0000 (16:25 +0200)]
remote: accept a repo and name for renaming

Remote objects are not meant to be changed from under the user. We did
this in rename, but only the name and left the refspecs, such that a
save would save the wrong refspecs (and a fetch and anything else would
use the wrong refspecs).

Instead, let's simply take a name and not change any loaded remote from
under the user.

9 years agoremote: delete git_remote_supported_url()
Carlos Martín Nieto [Fri, 24 Oct 2014 10:19:13 +0000 (12:19 +0200)]
remote: delete git_remote_supported_url()

This function does not in fact tell us anything, as almost anything with
a colon in it is a valid rsync-style SSH path; it can not tell us that
we do not support ftp or afp or similar as those are still valid SSH
paths and we do support that.

9 years agohash: use CommonCrypto on OSX for SHA-1
Carlos Martín Nieto [Fri, 24 Oct 2014 11:29:11 +0000 (13:29 +0200)]
hash: use CommonCrypto on OSX for SHA-1

OSX has its own cryptographic library, let's make use of it instead of
calling out to OpenSSL.

9 years agoconfig: remove the refresh function and backend field
Carlos Martín Nieto [Thu, 23 Oct 2014 17:05:02 +0000 (19:05 +0200)]
config: remove the refresh function and backend field

We have been refreshing on read and write for a while now, so
git_config_refresh() is at best a no-op, and might just end up wasting
cycles.

9 years agoMerge pull request #2622 from libgit2/refresh-config-snapshot
Carlos Martín Nieto [Thu, 23 Oct 2014 16:58:39 +0000 (18:58 +0200)]
Merge pull request #2622 from libgit2/refresh-config-snapshot

Refresh git configuration before looking for the tracking branch redux.

9 years agoMerge pull request #2625 from libgit2/cmn/ssl-tls
Edward Thomson [Thu, 23 Oct 2014 15:27:13 +0000 (08:27 -0700)]
Merge pull request #2625 from libgit2/cmn/ssl-tls

ssl: dump the SSL ciphers in favour of TLS

9 years agossl: dump the SSL ciphers in favour of TLS
Carlos Martín Nieto [Sat, 18 Oct 2014 13:52:10 +0000 (15:52 +0200)]
ssl: dump the SSL ciphers in favour of TLS

All versions of SSL are considered deprecated now, so let's ask OpenSSl
to only use TLSv1. We still ask it to load those ciphers for
compatibility with servers which want to use an older hello but will use
TLS for encryption.

For good measure we also disable compression, which can be exploitable,
if the OpenSSL version supports it.

9 years agoPatch from @carlosmn to refresh the parent config before snapshotting.
Alan Rogers [Mon, 20 Oct 2014 22:29:45 +0000 (09:29 +1100)]
Patch from @carlosmn to refresh the parent config before snapshotting.

9 years agoChange the length of the file so that the change is picked up.
Alan Rogers [Mon, 20 Oct 2014 22:29:17 +0000 (09:29 +1100)]
Change the length of the file so that the change is picked up.

9 years agoAdd a test to make sure a new snapshot has the new value.
Alan Rogers [Thu, 16 Oct 2014 02:52:55 +0000 (13:52 +1100)]
Add a test to make sure a new snapshot has the new value.

9 years agoMerge pull request #2617 from linquize/describe-example
Edward Thomson [Thu, 23 Oct 2014 03:48:04 +0000 (20:48 -0700)]
Merge pull request #2617 from linquize/describe-example

describe: add example

9 years agoMerge pull request #2619 from ethomson/remotes_with_unc
Edward Thomson [Thu, 23 Oct 2014 03:38:59 +0000 (20:38 -0700)]
Merge pull request #2619 from ethomson/remotes_with_unc

Remote paths: canonicalize UNC paths on Win32

9 years agoRemote paths: canonicalize UNC paths on Win32
Edward Thomson [Tue, 14 Oct 2014 20:31:55 +0000 (16:31 -0400)]
Remote paths: canonicalize UNC paths on Win32

Git for Windows will handle UNC paths only when in forward-slash
format, eg "//server/path".  When given a UNC path as a remote,
rewrite standard format ("\\server\path") into this ridiculous
format.

9 years agoMerge pull request #2634 from libgit2/cmn/tree-cache-count
Edward Thomson [Wed, 22 Oct 2014 21:45:36 +0000 (14:45 -0700)]
Merge pull request #2634 from libgit2/cmn/tree-cache-count

tree-cache: correct the entry_count calculation

9 years agotree-cache: correct the entry_count calculation
Carlos Martín Nieto [Wed, 22 Oct 2014 19:09:31 +0000 (21:09 +0200)]
tree-cache: correct the entry_count calculation

The entry_count field is the amount of index entries covered by a
particular cache entry, that is how many files are there (recursively)
under a particular directory.

The current code that attemps to do this is severely defincient and is
trying to count the amount of children, which always comes up to zero.

We don't even need to recount, since we have the information during the
cache creation. We can take that number and keep it, as we only ever
invalidate or replace.

9 years agoUpdate some documentation
Carlos Martín Nieto [Fri, 17 Oct 2014 20:22:59 +0000 (22:22 +0200)]
Update some documentation

9 years agoPROJECTS: remove two completed tasks
Carlos Martín Nieto [Fri, 17 Oct 2014 20:09:54 +0000 (22:09 +0200)]
PROJECTS: remove two completed tasks

9 years agoMerge pull request #2609 from linquize/describe-opts
Edward Thomson [Mon, 13 Oct 2014 20:59:56 +0000 (16:59 -0400)]
Merge pull request #2609 from linquize/describe-opts

Handle describe options better

9 years agoMerge pull request #2615 from ethomson/mount_points
Edward Thomson [Mon, 13 Oct 2014 20:52:44 +0000 (16:52 -0400)]
Merge pull request #2615 from ethomson/mount_points

Mount points