| From | Subject | Date |
|---|---|---|
| Eric Blake | Re: latest git manual pages have some problems
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've noticed it, and I hate it too. But don't know enough about asciidoc
or the git documentation process to know how to go about fixing it, so I'm
adding the git list on this mail for advice.
- --
Don't work too hard, make some time for fun as well!
Eric Blake ebb9@byu.net
volunteer cygwin git packager
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Com...
| Oct 1, 10:26 pm 2007 |
| Barry Fishman | Problems setting up bare repository (git 1.5.3.3)
Using the 1.5.3.3 release:
$ cd /pub/git
$ mkdir foo.git
$ cd foo.git
$ git --bare init
Initialized empty Git repository in /pub/git/foo.git/
$ git --bare branch
Note that there is no master branch.
$ cd /some/git/workdir
$ git push /pub/git/foo.git master:master
error: dst refspec master does not match any existing ref on the remote and does not start with refs/.
fatal: The remote end hung up unexpectedly
error: failed to push to '/pub/git/foo.git'
$ git push --force /pub/git/foo.git m...
| Oct 1, 5:46 pm 2007 |
| Junio C Hamano | Re: Problems setting up bare repository (git 1.5.3.3)
Read BOTH OF the error messages. Especially the first one.
This error message is telling you that the dst side of the
refspec you supplied (that's the second 'master' in
"master:master") does not exist there, and we do not create it
unless you give a full refname that begins with refs/ (so that
push can tell if you want to create a tag or a branch).
$ git push /pub/git/foo.git master:refs/heads/master
would have worked, without --force.
-
| Oct 1, 6:32 pm 2007 |
| Carl Worth | Re: Problems setting up bare repository (git 1.5.3.3)
And why is that?
Why isn't pushing a branch interpreted as wanting to create a branch
and pushing a tag interpreted as wanting to create a tag unless git is
I mean, it's nice that the advanced user can get all specific and
invoke the low-level refs/heads/ thing here. But what I'd really like
to have instead is just:
$ git push /pub/git/foo.git master
Is there any reason that that shouldn't be interpreted as
"master:master" and that that would in turn be interpreted as "create
a remote ref...
| Oct 1, 7:06 pm 2007 |
| Shawn O. Pearce | Re: Problems setting up bare repository (git 1.5.3.3)
This is actually read more as:
1) Expand "master" to "refs/heads/master"
2) Expand "refs/heads/master" to "refs/heads/master:refs/heads/master"
We first try to expand the local name to an "absolute" local name,
then if the remote name is missing default it to the same as the
(now expanded) local name. So "push origin master" is not read as
How about:
git config alias.incoming 'log ..FETCH_HEAD'
? Or do we need --reverse in there too to simulate "hg incoming"?
The thing is, FETCH_H...
| Oct 1, 7:35 pm 2007 |
| Junio C Hamano | Re: Problems setting up bare repository (git 1.5.3.3)
I think Daniel's rewrite of remote ref matching code that has
been cooking in 'next' changes the match semantics of the remote
side in subtle way to make it easier to favor branches when
pushing branches, but I juggle many topics and I have to go back
to the code to make sure. Since you are interested, and more
importantly since I know you are capable to do the digging
yourself, I won't be doing the digging myself immediately,
though.
-
| Oct 1, 7:24 pm 2007 |
| Carl Worth | Re: Problems setting up bare repository (git 1.5.3.3)
Great. I'll go looking for that.
And if I don't find what I'm thinking of there, I'll see if I can't
cook up something else myself.
Thanks again,
-Carl
| Oct 1, 7:47 pm 2007 |
| J. Bruce Fields | Re: Problems setting up bare repository (git 1.5.3.3)
I'd be nervous about skipping discussion of the refs/ namespace. Sure,
introduce branch heads and tags on their own first, but you've got to
mention the rest pretty early on. Eventually anyone can find themselves
with a tags, heads, and remotes with the same names, and then it's easy
to get stuck if you don't have a way to disambiguate.
And, really, it doesn't take that much space to explain this stuff.
--b.
-
| Oct 1, 7:17 pm 2007 |
| Reece Dunn | git clone questions relating to cpio
Hi,
I am running a Linux From Scratch 6.2 system that does not have cpio
installed on it. This means that I can't clone a local repository
unless I install cpio. Is it possible to use a fallback method if cpio
is not present, as there is no NO_CPIO option on make like there is
for OpenSSH, cURL and expat?
Also, I have an external USB hardrive that is mounted onto the virtual
filesystem. Will clones from the USB harddrive (or a USB flash drive
that is mounted) result in a copy being performed, no...
| Oct 1, 3:28 pm 2007 |
| Johannes Schindelin | Re: git clone questions relating to cpio
Hi,
You might be interested in the workaround Hannes did in mingw.git; he made
a wrapper script called 'cpio' using 'tar'.
Ciao,
Dscho
-
| Oct 1, 7:23 pm 2007 |
| Junio C Hamano | Re: git clone questions relating to cpio
I think that may be good enough as workaround, but I do not
think you would get the space saving from hardlinks that way.
-
| Oct 1, 7:32 pm 2007 |
| Johan Herland | Re: git clone questions relating to cpio
Using "file://" when specifying the source repo will force git-clone to use
the git protocol, instead of doing a copy/hardlink.
I.e. change "git clone foo bar" to "git clone file://foo bar" in order to
prevent git-clone from calling cpio.
However, grepping for cpio in the git source tree reveals a couple of uses
Hardlinks are impossible across filesystems. If you're cloning to a
<quote src="git-clone(1)">
--local, -l
When the repository to clone from is on a local machine, th...
| Oct 1, 5:42 pm 2007 |
| David Tweed | what's a useful definition of full text index on a repository?
Basically a "blue sky" question about full-text indexing git repositories.
A while back, whilst talking about overall git structure
(see
http://marc.info/?l=git&m=118891945402778&w=2
), Jon Smirl raised the question of putting a full-text index on a
repository. I doubt I full text index is of much use on a code
repository because the question tends to be focussed around either
released versions or immediate git-blame stuff. However, for
repositories of things like evolving documents/pr...
| Oct 1, 12:33 pm 2007 |
| Jon Smirl | Re: what's a useful definition of full text index on a repos...
This is what full text is used for with code:
http://lxr.mozilla.org/
It makes grep instant.
For source code you can take the full text concept further and store
parse trees. This lets you instantly find the callers of a function,
or all users of a variable.
Once you have parse trees in the database you can offer refactoring
too. I have used powerful proprietary system that used parse trees to
make complicated refactoring quite easy.
Note that a parse tree database doesn't have to be gene...
| Oct 1, 1:25 pm 2007 |
| David Symonds | [PATCH] Prevent purely-numeric ref names from breaking Javas...
When the server reply carrying JSON data to the client browser to render has
a string that looks like a decimal number, it doesn't get quoted. The
client-side Javascript code assumes, however, that all the ref names are
strings, and so calls string functions on decimal number objects if the ref
name is purely numeric (e.g. "2.5"). This patch simply forces the objects that
are escaped for HTML presentation to be coerced into strings, which catches
this case (and possibly others).
---
by-commit.html ...
| Oct 1, 11:37 am 2007 |
| Thomas Pasch | git-http-push / webDAV
Hello,
trying to set up a webDAV enabled http push
git server (1.5.3.3) like it is described in
http://www.kernel.org/pub/software/scm/git/docs/howto/setup-git-server-over-http.txt
Tested the apache2 (2.2.6) DAV setup with
cadaver (and tried the browser as well).
With cadaver I could lock files, download
and upload content.
Pushing to http://test@x.x.x.x/git/DepTrack.git/
Fetching remote heads...
refs/
refs/heads/
refs/tags/
updating 'refs/heads/master'
from 0000000000000000000...
| Oct 1, 9:31 am 2007 |
| Eygene Ryabinkin | Re: git-http-push / webDAV
Thomas, good day.
And how is your Apache configuration looks like? I used to
make 2.2.4 work flawlessly with git. Perhaps I will get it
a shot with the 2.2.6.
--
Eygene
-
| Oct 1, 11:54 am 2007 |
| martin f krafft | merging .gitignore
Dear gits (oh dear=E2=80=A6),
we just ran into a problem in a git-managed project and I'd be
interested to learn how you approach this.
Our main line ("upstream"), which tracks a remote repository, does
not have a .gitignore file. For new features, we use feature
branches, and we merge those into an integration branch ("master")
and track them separately of upstream.
Feature branch A has a .gitignore file, and it's been merged into
master for a while. Today, feature branch B failed to merge in...
| Oct 1, 9:03 am 2007 |
| Johannes Schindelin | Re: merging .gitignore
Hi,
You might be interested in writing a merge driver. See
Documentation/gitattributes.txt.
Hth,
Dscho
-
| Oct 1, 9:57 am 2007 |
| Andy Parkins | Re: merging .gitignore
But it _is_ a conflict. Conflicts have to be resolved. I'm having difficulty
I don't see that that would help. All you are doing with a gitignore.d is
swapping lines for files, the conflicts would still exist. Presumably you
are hoping that the separate branches will make different files in
gitignore.d and hence can't conflict; but then you've just pushed the
conflict to a place where it won't be seen (and also made a terrible mess of
the merged branch gitignore.d).
branchA:.gitignor...
| Oct 1, 9:48 am 2007 |
| Miklos Vajna | [PATCH] git-send-email: add a new sendemail.to configuration...
Several projects prefers to receive patches via a given email address. In these
cases it's handy to configure that address once.
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
---
Documentation/git-send-email.txt | 3 +++
git-send-email.perl | 1 +
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt
index 3727776..e38b702 100644
--- a/Documentation/git-send-email.txt
+++ b/Documentatio...
| Oct 1, 8:42 am 2007 |
| Johannes Schindelin | Re: [PATCH v2] git stash: document apply's --index switch
Hi,
it seemed to me that the lines were meant to be shorter. At least they
are easier to read when quoted as a diff in an email.
But it really does not matter much to me.
Ciao,
Dscho
-
| Oct 1, 7:49 am 2007 |
| David Symonds | git-browser and branch names
Hi,
I've been using git-browser hooked up to gitweb for several weeks now
(git 1.5.2.1), and it's going great. However, I've hit my first bug:
it seems that certain branch head names cause the whole diagram (and
log lines, etc.) to fail to render, only displaying the "Starting
from: all <repo>.git heads" stuff down the bottom. As to the various
names I've tested:
okay: master, 2.5j, 2.5-dev, a.b, 2-5, 2.b, b.2, 2.5.0
fails: 2.5, 2.6
I've experimented by just using 'git branch -m <old...
| Oct 1, 7:24 am 2007 |
| Jean-François Veillette | Re: git-browser and branch names
To debug html/javascript use Firefox and Firebug.
http://www.getfirebug.com/
- jfv
-
| Oct 1, 8:34 am 2007 |
| David Symonds | Re: git-browser and branch names
Great, thanks for the pointer. My first real foray into Javascript has
been successful -- a patch will soon follow.
Dave.
-
| Oct 1, 11:34 am 2007 |
| Jonas Fonseca | [PATCH] mv: allow verbosity to be enabled using -v
The infrastructure was already there but the option parsing for it was
missing. Also, move full command line documentation to synopsis section.
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
---
Documentation/git-mv.txt | 10 +++++-----
builtin-mv.c | 6 +++++-
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/Documentation/git-mv.txt b/Documentation/git-mv.txt
index 2c9cf74..9cd1177 100644
--- a/Documentation/git-mv.txt
+++ b/Documentation/git-mv.txt
@@ -...
| Oct 1, 6:27 am 2007 |
| Tom Clarke | How to re-use setups in multiple tests?
I'm wondering if there's a pattern for re-using setups across several
tests, similar to how a setUp function is used in xUnit. The problem
is I need the setup to actually be re-run, for each test to start from
a clean slate, so using the following doesn't work as the setup is
just run before the first test.
test_expect_success setup '
# setup repostory to a particular state
'
test_expect_success test1 '
# some test that expects the state to be as defined in setup, and
changes state of r...
| Oct 1, 6:27 am 2007 |
| Johannes Schindelin | Re: How to re-use setups in multiple tests?
Hi,
We typically do the clean up phase explicitely. Or avoid it.
Example: you want to do something to a branch, but the next step should
use the original state of the branch.
Solution: "git checkout -b new-branch HEAD~5"
Sorry, unless you are a little less mysterious about the exact use case
you have in mind, I cannot help more.
Ciao,
Dscho
-
| Oct 1, 7:45 am 2007 |
| Tom Clarke | Re: How to re-use setups in multiple tests?
In this case the first test rebases the branch created in setup (it's
testing the rebase merge strategy), the second test should do the same
thing, except check there is a warning if a --message option is
passed.
I suppose I could find the old pre-rebase head and work with that, but
that doesn't seem that clean to me.
Here's the code (non-working):
#!/bin/sh
test_description='merge-rebase backend test'
. ./test-lib.sh
test_expect_success setup '
echo hello >a &&
...
| Oct 1, 8:16 am 2007 |
| Johannes Schindelin | Re: How to re-use setups in multiple tests?
Hi,
You can use "git reset --hard master@{1}", and it really escapes me why
this should not be clean, and why you want to jump through hoops instead
using a much more complicated technique.
Ciao,
Dscho
-
| Oct 1, 8:39 am 2007 |
| Tom Clarke | Re: How to re-use setups in multiple tests?
That'll be because my git knowledge isn't good enough to make it
clean. Thanks for the suggestion :-)
-Tom
-
| Oct 1, 8:46 am 2007 |
| Karl | Re: How to re-use setups in multiple tests?
Another even more foolproof way would be to have the setup create a
(lightweight) tag, and let each subtest reset to that tag.
--
Karl Hasselström, kha@treskal.com
www.treskal.com/kalle
-
| Oct 1, 9:40 am 2007 |
| Jonas Fonseca | [PATCH] shortlog: remove --help option parsing
This option is handled globally.
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
---
builtin-shortlog.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-shortlog.c b/builtin-shortlog.c
index 3fe7546..518f27f 100644
--- a/builtin-shortlog.c
+++ b/builtin-shortlog.c
@@ -264,7 +264,7 @@ int cmd_shortlog(int argc, const char **argv, const char *prefix)
wrap_lines = 1;
parse_wrap_args(argv[1], &in1, &in2, &wrap);
}
- else if (!strcmp(...
| Oct 1, 6:20 am 2007 |
| Johannes Schindelin | Re: [PATCH] shortlog: remove --help option parsing
Hi,
I see that this is my fault.
Thanks,
Dscho
-
| Oct 1, 7:42 am 2007 |
| picca | [gitk] select only the part of a patch related to a path
Hello
When I want to look at the history of a particular file ex:
gitk path/to/my/file
I see only the commits corresponding to that file and this is ok.
But sometimes I just want to see the modifications done on this file.
So i would like to see only the relevant part of the commit.
Is it possible to do with gitk ?
Thanks
Frederic
-
| Oct 1, 3:02 am 2007 |
| David Brown | Referring a commit-id remote repo.
Say someone has given me a url to a git-web view of a commit:
<http://www.linux-arm.org/git?p=linux-2.6.git;a=commitdiff_plain;h=c1a54638653ef81187309624940bfa1537aa0fab>
I managed to mangle this around to a repo name that I can clone from, so I
try:
% git clone git://linux-arm.org/linux-2.6.git play
Now, from within my new directory, I try looking at this commit:
% git show c1a54638653ef81187309624940bfa1537aa0fab
fatal: bad object c1a54638653ef81187309624940bfa1537aa0fab
...
| Oct 1, 12:16 am 2007 |
| Johannes Schindelin | Re: Referring a commit-id remote repo.
Hi,
Unless you have push access, no. And this is very much by design. For
example, when somebody mistakenly pushed a secret (like what lines in the
kernel infringe on M$ patents, if any) it should be possible to rebase (in
a hurry), force a push, and have the safe feeling that nobody can fetch
the secret any longer.
Ciao,
Dscho
-
| Oct 1, 6:25 am 2007 |
| David Brown | Re: Referring a commit-id remote repo.
I've found the commits in the 'master' branch, and it looks like the
developer had done a rebase on Sept 3. I've informed the person asking me
the question to use these commit IDs, and hopefully they won't be doing any
rebasing on their master branch.
Dave
-
| Oct 1, 11:24 am 2007 |
| Johannes Sixt | Re: [PATCH 1/5] Change git_connect() to return a struct chil...
I've thought about this issue a bit more.
Letting git_connect() die on error unconditionally is poison for any
libification efforts. So here's a plan:
1. Let git_connect() return a struct child_process even for the
non-forking case. This way a return value of NULL can uniquely
identify a failure.
2. Keep the error checks in the callers (adjust to test for NULL).
3. Change the die() calls to return failure.
4. Note that the int fd[2] parameter to git_connect() is really an
o...
| Oct 1, 3:23 am 2007 |
| Junio C Hamano | Re: [PATCH 1/5] Change git_connect() to return a struct chil...
In any case, I'd rather first have one that hides fork/exec
behind child_process first without changing the call to die() in
git_connect() in this round. I am still in "post feature
release clean-up" mood ;-)
As to error indication, it somehow does not feel right to return
something called "child _process_" structure when we want to
tell the caller that there is no process to wait for in the
no-error case, although the fact that we can use .in/.out fd in
the structure when we _do_ have child pr...
| Oct 1, 4:39 am 2007 |
| Johannes Sixt | Re: [PATCH 1/5] Change git_connect() to return a struct chil...
Sure: The die()s are converted in a later step.
My problem is that if I don't wrap the non-fork connections somehow in this
first round, I *must* remove the error checks because there is no unique
Did you mean: "even if we don't have a child process"?
Seriously? Add an *out* parameter when we can get rid of one and have a
return value, too?
-- Hannes
-
| Oct 1, 5:08 am 2007 |
| Johannes Sixt | Re: [PATCH 0/5] fork/exec removal series
Suggestions for a better name are appreciated!
-- Hannes
-
| Oct 1, 3:07 am 2007 |
| David Kastrup | Re: [PATCH 0/5] fork/exec removal series
I think coroutine is commonly used as the name for _synchronous_
context switches aka message passing. Basically the same as
subroutine calls, except that the called subroutine has its own
dynamic context (instruction pointer, call stack, control flow) that
gets activated and suspended.
If there is parallelism implied, "thread" is the more appropriate
name.
--
David Kastrup
-
| Oct 1, 5:49 am 2007 |
| Catalin Marinas | Re: [PATCH] Support tags in uncommit - use git_id instead of...
With this patch, uncommit can take patch names (with modifiers) as the
--to argument. When would this be needed?
To allow tags, maybe just pass something like
"git.rev_parse(options.to + '^{commit}')" or just modify git.rev_parse
to do it (and git_id to avoid it).
--
Catalin
-
| Oct 1, 6:00 pm 2007 |
| Karl | Re: [PATCH] Support tags in uncommit - use git_id instead of...
Sounds like a good idea. Test? :-)
--
Karl Hasselström, kha@treskal.com
www.treskal.com/kalle
-
| Oct 1, 7:16 am 2007 |
| Junio C Hamano | Re: [PATCH] rebase: add --signoff option
I do not think it is fatal for --signoff to be incompatible with
the "interactive" mode is fatal, but lack of mention in the
documentation is. Also this would need test scripts to prevent
it from getting broken by future changes by others. I'd like to
see ones that test at least the cases where (1) nobody has
sign-off, (2) you do not have sign-off but others do, and (3)
you already have sign-off at the end.
But I do like the general concept.
-
| Oct 1, 4:20 am 2007 |
| Steffen Prohaska | Re: [PATCH] rebase: add --signoff option
But not too easy either because "rebase --interactive" is based on
"git merge" and not "git am". You can just use a two step process
instead and first "rebase --interactive" followed by
"rebase --signoff".
Steffen
-
| Oct 1, 12:59 am 2007 |
| Benoit SIGOURE | Re: git-svn merge helper
Ah, yes, you're right. Well, this will work the day we can pass an =20
option to git-svn dcommit to tell it where the commit must be sent.
--=20
Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory
| Oct 1, 3:56 am 2007 |
| Sam Vilain | Re: git-svn and hierarchal branches.
Track each branch with a separate git-svn remote.
Sam.
-
| Oct 1, 7:45 am 2007 |
| Andy Parkins | Re: [PATCH 1/2] Change "refs/" references to symbolic consta...
Please hold off on applying this. I'm getting this when running the tests:
*** t5516-fetch-push.sh ***
* ok 1: setup
* ok 2: fetch without wildcard
* ok 3: fetch with wildcard
* ok 4: push without wildcard
* ok 5: push with wildcard
* ok 6: push with matching heads
* ok 7: push with no ambiguity (1)
* ok 8: push with no ambiguity (2)
* ok 9: push with weak ambiguity (1)
* ok 10: push with weak ambiguity (2)
* ok 11: push with ambiguity (1)
* FAIL 12: push with ambigui...
| Oct 1, 4:41 pm 2007 |
| previous day | today | next day |
|---|---|---|
| August 31, 2007 | October 1, 2007 | October 2, 2007 |
| Greg Kroah-Hartman | [PATCH 008/196] Chinese: add translation of volatile-considered-harmful.txt |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg KH | Re: [Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in |
| Andrew Morton | -mm merge plans for 2.6.23 |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Herbert Xu | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
| Rémi Denis-Courmont | [PATCH 01/14] Phonet global definitions |
