Carlos Martín Nieto
433ba614a2
Merge pull request #2382 from mikeando/doc_fixes
...
Fixed miscellaneous documentation errors.
2014-05-26 08:38:39 +02:00
Edward Lee
517341c5d8
Address style concerns in setting mkdir/copy flags.
2014-05-23 22:41:35 -04:00
Eoin Coffey
87493bca9c
Remove simple --author, --committer, and --grep from PROJECTS
2014-05-23 13:00:30 -06:00
Eoin Coffey
26cce32133
Add support for --grep
2014-05-23 12:59:19 -06:00
Eoin Coffey
161e6dc1ca
Add --committer option, and break out helper function
2014-05-23 12:27:16 -06:00
Michael Anderson
31b0cb518f
Fixed miscellaneous documentation errors.
2014-05-23 15:57:20 +08:00
Carlos Martín Nieto
530594c0aa
odb: clear backend errors on successful read
...
We go through the different backends in order, so it's not an error if
at least one of the backends has the data we want.
2014-05-23 06:01:57 +02:00
Eoin Coffey
97fc71ab3b
Add support for --author flag in example log implementation
2014-05-22 17:22:45 -06:00
Alan Rogers
c3252c11bf
We do expect the foo path in the nopermissions test
2014-05-23 00:29:04 +10:00
Alan Rogers
c4366096d4
Don't need to duplicate this code.
2014-05-23 00:28:12 +10:00
Alan Rogers
7c4bbbf46d
Try a value for UNREADABLE that won't get masked out?!
2014-05-23 00:27:34 +10:00
Carlos Martín Nieto
052a2ffde4
index: check for valid filemodes on add
2014-05-22 16:01:02 +02:00
Carlos Martín Nieto
9331f98aca
smart: initialize the error variable
2014-05-22 12:52:31 +02:00
Carlos Martín Nieto
4c4408c351
Plug leaks and fix a C99-ism
...
We have too many places where we repeat free code, so when adding the
new free to the generic code, it didn't take for the local transport.
While there, fix a C99-ism that sneaked through.
2014-05-22 12:28:39 +02:00
Alan Rogers
e8cc3032c1
Return GIT_DELTA_UNREADABLE for a file with a mode change
2014-05-22 19:43:58 +10:00
Alan Rogers
6580b11c2a
Remove errant newline
2014-05-22 19:26:55 +10:00
Vicent Marti
a598264463
Merge pull request #2376 from libgit2/cmn/remote-symref
...
Add support for the symref extension
2014-05-22 02:28:42 +02:00
Vicent Marti
7ee233a920
Merge pull request #2375 from libgit2/rb/safecrlf-on-lf-platform
...
Make core.safecrlf not generate an error on LF-ending platforms
2014-05-22 02:27:33 +02:00
Vicent Marti
ff9fb4484b
Merge pull request #2379 from ethomson/status_win32
...
Include windows.h on win32 for Sleep
2014-05-22 02:26:56 +02:00
Edward Thomson
ead9c591ef
Include windows.h on win32 for Sleep
2014-05-21 17:25:00 -07:00
Alan Rogers
9532edc028
Simplify the no permission test.
2014-05-21 23:13:46 +10:00
Alan Rogers
9067d5af4a
Remove errant whitespace.
2014-05-21 23:13:24 +10:00
Alan Rogers
86c9d3dae2
Return GIT_FILEMODE_UNREADABLE for files that fail to stat.
2014-05-21 22:54:34 +10:00
Carlos Martín Nieto
7230330740
travis: build on osx too
2014-05-21 14:43:44 +02:00
Vicent Marti
2bc36facce
Merge pull request #2372 from libgit2/cmn/fetch-terminate
...
smart: send a flush when we disconnect
2014-05-21 13:07:45 +02:00
Carlos Martín Nieto
2a59711658
clone: get rid of head_info
...
Since we no longer need to push data to callbacks, there's no need for
this truct.
2014-05-21 12:12:33 +02:00
Carlos Martín Nieto
cdb8a60824
clone: make use of the remote's default branch guessing
...
Let's use the remote's default branch guessing instead of reinventing
one ourselves with callbacks.
2014-05-21 12:12:32 +02:00
Carlos Martín Nieto
d22db24fb7
remote: add api to guess the remote's default branch
...
If the remote supports the symref protocol extension, then we return
that, otherwise we guess with git's rules.
2014-05-21 12:12:32 +02:00
Carlos Martín Nieto
04865aa05e
local transport: expose the symref data
...
When using the local transport, we always have the symbolic information
available, so fill it.
2014-05-21 12:12:32 +02:00
Carlos Martín Nieto
306475eb01
remote: expose the remote's symref mappings
...
Add a symref_target field to git_remote_head to expose the symref
mappings to the user.
2014-05-21 12:12:32 +02:00
Carlos Martín Nieto
8156835df1
smart: store reported symrefs
...
The protocol has a capability which allows the server to tell us which
refs are symrefs, so we can e.g. know which is the default branch.
This capability is different from the ones we already support, as it's
not setting a flag to true, but requires us to store a list of
refspec-formatted mappings.
This commit does not yet expose the information in the reference
listing.
2014-05-21 12:12:32 +02:00
Carlos Martín Nieto
58532ed076
Merge pull request #2373 from kitbellew/fix-clone-into-mirror
...
Minor fix for cmn/clone-into-mirror.
2014-05-21 12:09:52 +02:00
Alan Rogers
61bef72dc3
Start adding GIT_DELTA_UNREADABLE and GIT_STATUS_WT_UNREADABLE.
2014-05-20 23:57:40 +10:00
Albert Meltzer
60cdf49583
Minor fix for cmn/clone-into-mirror.
...
A recently added check might skip initialization of old_fetchhead and go
directly to cleanup. So, destruct in the opposite order of construction.
2014-05-20 06:21:15 -07:00
Alan Rogers
f47bc8ff5e
Skip unreadable files for now.
2014-05-20 18:16:04 +10:00
Alan Rogers
9055347944
Rename GIT_ENOACCESS -> GIT_EUNREADABLE
2014-05-20 17:40:28 +10:00
Carlos Martín Nieto
430866d28c
Fix a leak in the tests
2014-05-20 08:29:51 +02:00
Carlos Martín Nieto
ac11219b80
smart: send a flush when we disconnect
...
The git server wants to hear a flush from us when we disconnect,
particularly when we want to perform a fetch but are up to date.
2014-05-20 02:41:45 +02:00
Albert Meltzer
62e562f92b
Fix compiler warning (git_off_t cast to size_t).
...
Use size_t for page size, instead of long. Check result of sysconf.
Use size_t for page offset so no cast to size_t (second arg to p_mmap).
Use mod instead div/mult pair, so no cast to size_t is necessary.
2014-05-19 17:37:29 -07:00
Russell Belfer
c094197bf9
Just don't CRLF filter if there are no CRs
2014-05-19 15:05:39 -07:00
Russell Belfer
16798d08cf
Make core.safecrlf work on LF-ending platforms
...
If you enabled core.safecrlf on an LF-ending platform, we would
error even for files with all LFs. We should only be warning on
irreversible mappings, I think.
2014-05-19 14:57:09 -07:00
Vicent Marti
588a43af54
Merge pull request #2371 from martinwoodward/attrib_fnmatch
...
Restore attributions for fnmatch
2014-05-19 15:43:13 +02:00
Martin Woodward
213a269a50
Restore attributions for fnmatch
2014-05-19 14:39:45 +01:00
Vicent Marti
124a45ead3
Merge pull request #2354 from libgit2/cmn/clone-into-mirror
...
Allow mirror-clone via `git_clone_into()`
2014-05-19 15:00:50 +02:00
Carlos Martín Nieto
32332fccc9
clone: don't error out if the branch already exists
...
We set up the current branch after we fetch from the remote. This means
that the user's refspec may have already created this reference. It is
therefore not an error if we cannot create the branch because it already
exists.
This allows for the user to replicate git-clone's --mirror option.
2014-05-19 14:24:43 +02:00
Carlos Martín Nieto
3c607685da
clone: duplicate the remote
...
Instead of changing the user-provided remote, duplicate it so we can add
the extra refspec without having to worry about unsetting it before
returning.
2014-05-19 14:24:43 +02:00
Carlos Martín Nieto
b206724863
clone: add failing test for a mirror-clone with clone_into
...
Show a failure to perform a mirror-clone from a repository, both local
and remote.
2014-05-19 14:24:43 +02:00
Vicent Marti
52b597b66e
Merge pull request #2364 from libgit2/cmn/comment-char
...
message: don't assume the comment char
2014-05-19 12:21:37 +02:00
Vicent Marti
138af33717
Merge pull request #2303 from jacquesg/mingw-lseek
...
WIP: Windows fixes
2014-05-19 12:20:31 +02:00
Philip Kelley
b2a4be1d42
Merge pull request #2365 from kitbellew/fix-indexer-mmap
...
Fix warning on uninitialized variable.
2014-05-18 12:22:21 -04:00