Merge branch 'maint-1.7.8' into maint-1.7.9
* maint-1.7.8: Documentation/gitweb: trivial English fixes fetch/receive: remove over-pessimistic connectivity check
This commit is contained in:
commit
6eab5f2f14
@ -14,7 +14,7 @@ gitweb.
|
|||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
Gitweb provides a web interface to git repositories. It's features include:
|
Gitweb provides a web interface to git repositories. Its features include:
|
||||||
|
|
||||||
* Viewing multiple Git repositories with common root.
|
* Viewing multiple Git repositories with common root.
|
||||||
* Browsing every revision of the repository.
|
* Browsing every revision of the repository.
|
||||||
@ -60,7 +60,7 @@ to gitweb. The list of projects is generated by default by scanning the
|
|||||||
more exact; gitweb is not interested in a working area, and is best suited
|
more exact; gitweb is not interested in a working area, and is best suited
|
||||||
to showing "bare" repositories).
|
to showing "bare" repositories).
|
||||||
|
|
||||||
The name of repository in gitweb is path to it's `$GIT_DIR` (it's object
|
The name of the repository in gitweb is the path to its `$GIT_DIR` (its object
|
||||||
database) relative to `$projectroot`. Therefore the repository $repo can be
|
database) relative to `$projectroot`. Therefore the repository $repo can be
|
||||||
found at "$projectroot/$repo".
|
found at "$projectroot/$repo".
|
||||||
|
|
||||||
|
@ -6,18 +6,18 @@
|
|||||||
/*
|
/*
|
||||||
* If we feed all the commits we want to verify to this command
|
* If we feed all the commits we want to verify to this command
|
||||||
*
|
*
|
||||||
* $ git rev-list --verify-objects --stdin --not --all
|
* $ git rev-list --objects --stdin --not --all
|
||||||
*
|
*
|
||||||
* and if it does not error out, that means everything reachable from
|
* and if it does not error out, that means everything reachable from
|
||||||
* these commits locally exists and is connected to some of our
|
* these commits locally exists and is connected to our existing refs.
|
||||||
* existing refs.
|
* Note that this does _not_ validate the individual objects.
|
||||||
*
|
*
|
||||||
* Returns 0 if everything is connected, non-zero otherwise.
|
* Returns 0 if everything is connected, non-zero otherwise.
|
||||||
*/
|
*/
|
||||||
int check_everything_connected(sha1_iterate_fn fn, int quiet, void *cb_data)
|
int check_everything_connected(sha1_iterate_fn fn, int quiet, void *cb_data)
|
||||||
{
|
{
|
||||||
struct child_process rev_list;
|
struct child_process rev_list;
|
||||||
const char *argv[] = {"rev-list", "--verify-objects",
|
const char *argv[] = {"rev-list", "--objects",
|
||||||
"--stdin", "--not", "--all", NULL, NULL};
|
"--stdin", "--not", "--all", NULL, NULL};
|
||||||
char commit[41];
|
char commit[41];
|
||||||
unsigned char sha1[20];
|
unsigned char sha1[20];
|
||||||
|
Loading…
Reference in New Issue
Block a user