git mailing list

FromSubjectsort iconDate
Johannes Schindelin
[PATCH] Add `git diff2`, a GNU diff workalike
Git does have a wonderful diff engine. For example, colored diffs really shine, and there are other useful options like --check, --patch-with-stat, etc. I always dreamt of using this diff engine also outside of a git repository. With this commit, you can say git diff2 file1 file2 to compare the (possibly untracked) files "file1" and "file2", and git diff2 dir1 dir2 to compare the directories "dir1" and "dir2". Signed-off-by: Johannes Schindelin ...
Feb 15, 9:01 pm 2007
Jakub Narebski
Re: Dangers of working on a tracking branch
You cannot fetch or push to the remote branch if you made some commits on the tracking branch ("broke the model") and remote branch has other commits. You can force the issue, but then either remote (for push) or local (for fetch) commits would be lost. Sidenote: for some branches you have to skip fast-forward check, because But one of those branches can be temporary "branch" FETCH_HEAD (if you Because usually you work with one branch with tracking (remote) + local branch workflow; I ...
Feb 15, 7:00 pm 2007
Johannes Schindelin
Re: [PATCH] pretend-sha1: grave bugfix.
Hi, Probably the fact helped that merge-recursive only pretends zero-sized blobs. Ciao, Dscho -
Feb 15, 9:05 pm 2007
Junio C Hamano
[PATCH] pretend-sha1: grave bugfix.
We stashed away objects that we pretend to have, but did not save the actual data. Signed-off-by: Junio C Hamano <junkio@cox.net> --- * I wonder how recent merge-recursive with multiple merge bases (or an empty one) ever worked with this bug. Am I hallucinating? sha1_file.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/sha1_file.c b/sha1_file.c index b83f59f..2c87031 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -1545,11 +1545,13 @@ int ...
Feb 15, 6:16 pm 2007
Junio C Hamano
Re: [PATCH] Add git-bundle - pack objects and references ...
I am not sure if that is a good behaviour. What if user gives xyzzy and there are tags/xyzzy and remotes/origin/xyzzy? Style. Our scripts tend to spell the test command "test" and equality test operator as single '='. Also they tend to say: case "$fullrevargs" in *--max-age* | *--min-age*) ... Nicely done, but you seemed to have used "head -n 1" elsewhere, Likewise. The latter is: Our scripts assume $GIT_DIR/ is writable but not necessarily the working ...
Feb 15, 7:11 pm 2007
Linus Torvalds
Re: [PATCH] Add git-unbundle - unpack objects and refere ...
Actually, more efficient and to the point: list-all-boundary-sha1s | git-rev-list --stdin --not --all should return empty. Or something like that. Linus -
Feb 15, 7:40 pm 2007
Mark Levedahl
[PATCH] Add git-unbundle - unpack objects and references ...
Some workflows require coordinated development between repositories on machines that can never be connected. This utility unpacks a bundle containing objects and associated references (heads or tags) into the current repository, effectively supporting git-push like operations between disconnected systems. Signed-off-by: Mark Levedahl <mdl123@verizon.net> --- git-unbundle.sh | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 67 insertions(+), 0 deletions(-) ...
Feb 15, 5:19 pm 2007
Shawn O. Pearce
Re: [PATCH] Add git-bundle - pack objects and references ...
Using "test" is a style thing, but using "=" rather than "==" is a portability issue. "==" is accepted by bash as a synonym for "=", but its not valid elsewhere. I've made my fair share of patches with "==" in them, only to have someone else have a problem on their system and then submit a fix to What about: parents="$parents $(git-rev-list --max-count=1 --parents $c | cut -b42-)" ? I just used that trick recently. Oh yea it was in git-gui's GIT-VERSION-GEN script. Though I did ...
Feb 15, 9:41 pm 2007
Mark Levedahl
[PATCH] Include git-bundle and git-unbundle in Makefile.
Signed-off-by: Mark Levedahl <mdl123@verizon.net> --- Makefile | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index ebecbbd..c2be7a7 100644 --- a/Makefile +++ b/Makefile @@ -177,7 +177,8 @@ SCRIPT_SH = \ git-applymbox.sh git-applypatch.sh git-am.sh \ git-merge.sh git-merge-stupid.sh git-merge-octopus.sh \ git-merge-resolve.sh git-merge-ours.sh \ - git-lost-found.sh git-quiltimport.sh + git-lost-found.sh git-quiltimport.sh ...
Feb 15, 5:19 pm 2007
Shawn O. Pearce
Re: Respun - Scripts to use bundles to move data between repos
Yuck. I just went back and looked at the pack-objects source. Apparently we only accept ref names and SHA-1 values here, and `--not` on a line by itself. Nothing else is valid. The documentation is a little misleading, as usually when we say something is processed the same way as rev-list does it we usually also mean that any valid option to rev-list is also a valid option in that context. Here its not. -- Shawn. -
Feb 15, 9:37 pm 2007
Junio C Hamano
Re: [PATCH] Add git-unbundle - unpack objects and refere ...
If you are checking only boundary commits this is too weak a check and unsafe (we used to have the same bug in http fetch long time ago). You have to make sure not only the object exists, but also it is reachable by one of the refs. One way to check that would be to ask "describe --all" if it can find a ref that can reach that commit. It would error out if the commit object exists but is not reachable from any of the refs. -
Feb 15, 7:24 pm 2007
Mark Levedahl
[PATCH] Create documentation for git-unbundle.
Signed-off-by: Mark Levedahl <mdl123@verizon.net> --- Documentation/git-unbundle.txt | 48 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 48 insertions(+), 0 deletions(-) create mode 100644 Documentation/git-unbundle.txt diff --git a/Documentation/git-unbundle.txt b/Documentation/git-unbundle.txt new file mode 100644 index 0000000..99713ce --- /dev/null +++ b/Documentation/git-unbundle.txt @@ -0,0 +1,48 @@ +git-unbundle(1) +=============== + +NAME +---- +git-unbundle - ...
Feb 15, 5:19 pm 2007
Mark Levedahl
[PATCH] Add git-bundle - pack objects and references for ...
Some workflows require coordinated development between repositories on machines that can never be connected. This utility creates a bundle containing a pack of objects and associated references (heads or tags) that can be independently transferred to another machine, effectively supporting git-push like operations between disconnected systems. Signed-off-by: Mark Levedahl <mdl123@verizon.net> --- git-bundle.sh | 103 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, ...
Feb 15, 5:19 pm 2007
Mark Levedahl
Respun - Scripts to use bundles to move data between repos
Respun patch for git-bundle / git-unbundle. I am working a project using git where we have many repositories on machines that can never be directly connected, but which need to have the same objects and development history. Existing git protocols offer limited support: we can either a) publish and apply patch files branch by branch, or b) copy an entire repository from one machine to another and then do local push or fetch. While both are workable, neither is a completely satisfactory ...
Feb 15, 5:19 pm 2007
Mark Levedahl
[PATCH] Create documentation for git-bundle.
Signed-off-by: Mark Levedahl <mdl123@verizon.net> --- Documentation/git-bundle.txt | 87 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 87 insertions(+), 0 deletions(-) create mode 100644 Documentation/git-bundle.txt diff --git a/Documentation/git-bundle.txt b/Documentation/git-bundle.txt new file mode 100644 index 0000000..aed413f --- /dev/null +++ b/Documentation/git-bundle.txt @@ -0,0 +1,87 @@ +git-bundle(1) +============= + +NAME +---- +git-bundle - Package objects ...
Feb 15, 5:19 pm 2007
Mark Levedahl
[PATCH] Link git-bundle and git-unbundle docs from git(7).
Signed-off-by: Mark Levedahl <mdl123@verizon.net> --- Documentation/cmd-list.perl | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) mode change 100755 => 100644 Documentation/cmd-list.perl diff --git a/Documentation/cmd-list.perl b/Documentation/cmd-list.perl old mode 100755 new mode 100644 index a2d6268..3a22083 --- a/Documentation/cmd-list.perl +++ b/Documentation/cmd-list.perl @@ -70,6 +70,7 @@ git-archive mainporcelain git-bisect ...
Feb 15, 5:19 pm 2007
Shawn O. Pearce
Re: [PATCH] git-clone: Sync documentation to usage note.
Sort of. ;-) The server side must also support shallow clone. I don't think the server on kernel.org has been upgraded yet to a version which supports that feature, so you cannot shallow clone from there. -- Shawn. -
Feb 15, 3:38 pm 2007
Christian Schlotter
[PATCH] git-clone: Sync documentation to usage note.
Documentation advertises the new `--depth <n>' parameter with an equal sign, while the usage notes (shown after `git-clone --help') do not. If I understood git-clone's source code correctly, the version without the equal sign is correct, which is why this patch syncs documentation to the usage note. Please note that I was not able to test the new shallow clone feature, as both git clone --depth=5 git://git2.kernel.org/pub/scm/git/git.git and git clone --depth 5 ...
Feb 15, 3:13 pm 2007
Nicolas Pitre
Re: Dangers of working on a tracking branch
A tracking branch is supposed to be a local mirror of what is available remotely. If you commit local changes to it then you break that model. This is why with Git 1.5.0 tracking branches are in a different namespace by default to which you cannot commit. Nicolas -
Feb 15, 2:00 pm 2007
Jeff King
Re: Dangers of working on a tracking branch
Re-reading this, it sounds a little harsh. I meant less "screw you, if you want it, make a patch" and more "I don't have time to work on this now, but I would be happy to help guide you in making a patch." -Peff -
Feb 15, 3:06 pm 2007
Bill Lear
Re: Dangers of working on a tracking branch
BTW, my ignorant assumption is that for merging to take place, git requires two branches, so 'git pull' will fetch into the tracking branch and then merge onto your ... uh ... whatever the name of the working version of your tracking branch is. BTW, again, why does git clone not have an option to just create all of the "working versions" (better name needed) of tracking branches? Bill -
Feb 15, 2:33 pm 2007
Jeff King
Re: Dangers of working on a tracking branch
Sorry, I thought you were talking about v1.5. v1.4.* does not have the detached HEAD feature, and the default layout is to keep tracking and local branches in the same namespace. This means that you can checkout and commit to a tracking branch just as a local branch, and all changes will be saved. It will only bite you later, when you try to fetch into that tracking branch and realize that the fetch is not a fast-forward (remember the troubles you were having with fetches and pushes last week? ...
Feb 15, 2:58 pm 2007
Bill Lear
Re: Dangers of working on a tracking branch
Understood perfectly the first time, even with the smiley. :) Bill -
Feb 15, 3:30 pm 2007
Bill Lear
Re: Dangers of working on a tracking branch
Granted, but this would be the same as creating the branch by hand, then going rock-climbing over the weekend, while my colleagues toiled, and coming back on Monday to find 15 checkins on that branch, right? At which point I could .... rebase? Do a pull? Bill -
Feb 15, 3:40 pm 2007
Nicolas Pitre
Re: Dangers of working on a tracking branch
If you commit on top of a tracking branch, then you won't be ablt to update that branch with remote changes because the tracking branch will contain local changes that the remote doesn't have. In other words, the remote end won't be able to determine the set of changes you are missing to send you only those missing changes. At that point it is still possible to do the reverse, i.e. push your local changes to the remote then both local and remote branches will be in sync. But that ...
Feb 15, 3:14 pm 2007
Bill Lear
Dangers of working on a tracking branch
We are about to switch to git 1.5 from git 1.4.4.1. I cannot remember if someone posted about this, but what is the danger of working on a tracking branch --- there are abundant cautions about doing this, but I can't recall and can't find the reason this is bad. Bill -
Feb 15, 1:49 pm 2007
Shawn O. Pearce
Re: Dangers of working on a tracking branch
Careful. Lets say you patch git-clone to create these branches under refs/heads, and also under refs/remotes/origin. Now someone else modifies one of those branches, and you do a git-fetch to get the latest. The tracking branch under refs/remotes/origin would update, but not the one in refs/heads. Which means "jumping right in" may actually cost you a lot more time, because you are now starting on something that is several days old. -- Shawn. -
Feb 15, 3:09 pm 2007
Bill Lear
Re: Dangers of working on a tracking branch
Ok, so I break the model, what is the harm in that? Can I no longer pull from or push to the remote branch? Do I corrupt something locally? Does something else break? I'm trying to formulate an explanation to our users why the 1.5 way is superior and I can't just say "if you do that you break the model". Bill -
Feb 15, 2:21 pm 2007
Bill Lear
Re: Dangers of working on a tracking branch
Well, I seriously thought about it, but the git-clone code is pretty dense. It might be educational though, and since I'm the only one who wants it ... might be worth a shot. Thank you for your help. Bill -
Feb 15, 3:04 pm 2007
Bill Lear
Re: Dangers of working on a tracking branch
Is this really the way 1.4.4.1 works? I have (mistakenly) been working on my tracking branch, committing to it, pushing it, pulling in from elsewhere, shifting to new branches, etc., and I haven't lost Sure, it is easy, but it's surprising to (our) users when they do a clone and can't "jump right in", and have to spend 3 seconds doing the above... Bill -
Feb 15, 2:53 pm 2007
Shawn O. Pearce
Re: Dangers of working on a tracking branch
Yes. Although if you pull something like that, your colleagues may also be muttering things about you near the water cooler... Rebase or pull, either would work. Rebase would clutter the history less (no merge) but also tosses some history (no merge). Its a tossup. All I was trying to say was this may be more likely to happen, as you will clone, work in that repository for a couple of weeks, then get told to look at the `frotz` branch, as it has all the cool stuff you were looking for. ...
Feb 15, 3:49 pm 2007
Jeff King
Re: Dangers of working on a tracking branch
The commits you make will not actually go onto that tracking branch; they will be part of a "detached HEAD" (that is, your HEAD doesn't point to _any_ branch). Once you check out a different branch, you will potentially lose those commits (actually, they will still be available That's more or less correct. You don't really have to have two branches; doing a 'git pull /path/to/repo branch' will fetch the branch into the temporary FETCH_HEAD name, and merge from that. But yes, the way a ...
Feb 15, 2:43 pm 2007
Aneesh Kumar
qgit4 segfault
on a linux-2.6 repo it fails during exit Done. QProcess: Destroyed while process is still running. Segmentation fault (core dumped) Program terminated with signal 11, Segmentation fault. #0 0xb764db4f in QTabWidget::indexOf () from /usr/lib/libQtGui.so.4 (gdb) where #0 0xb764db4f in QTabWidget::indexOf () from /usr/lib/libQtGui.so.4 #1 0x080ce7c5 in ~RevsView (this=0x81bb070) at /usr/include/qt4/QtGui/qtabwidget.h:171 #2 0xb6fa1e61 in QObjectPrivate::deleteChildren () from ...
Feb 15, 12:08 pm 2007
Fernando Herrera
[PATCH]: remove extra-verbosity from git-clone (http)
Hi, the attached patch removes the extra verbosity when cloning a http repository. I noticed this after some git upgrade in fedora. Please, consider applying it, getting tons of "got XXX", "walk XXX" lines by default is a little bit annoying. Salu2 PS: Thanks for this so great piece os software!
Feb 15, 10:10 am 2007
Joseph Wakeling
Configuring gitk appearance
Is there any way to configure the appearance of gitk either during or after installation? At present on my system (Ubuntu 6.10) the font used is almost illegible. I'm guessing it is partly due to gitk using GTK+ v1 instead of v2. On a related note (which will reveal me as totally incompetent about Linux anything...), is it necessary to uninstall old versions of git before installing the new version? If so ... how? There is nothing in the INSTALL file about this. Thanks, -- Joe -
Feb 15, 9:24 am 2007
Vincent Hanquez
Re: Configuring gitk appearance
gitk is not using GTK v1 but TCL/TK. see your ~/.gitk and just change those option (9 to 13 or 15 will do): set mainfont {Helvetica 9} set textfont {Courier 9} set uifont {Helvetica 9 bold} -- Vincent Hanquez -
Feb 15, 9:26 am 2007
Joseph Wakeling
Re: Configuring gitk appearance
Thanks very much. Where does gitk look for fonts? It seems to find some, but not others, of the different sorts I have on my system. -
Feb 15, 10:05 am 2007
Mark Wooding
Re: OT: data destruction classics (was: Re: Error conver ...
I'm nowhere near that impressive, unfortunately. Once upon a time, I was trying to build some package (I forget which) from its source distribution. It was an GNU-y Autoconf kind of thing. I didn't want to install it globally at that point, just in my home directory. So I said $ ./configure --prefix=~ $ make $ make install So far, so good. Now try to run the thing. $ foo bash: foo: command not found Oh. Where's it gone? $ ls That's annoying. Bad shell. It's ...
Feb 15, 7:30 am 2007
Johannes Schindelin
Re: GIT 1.5.0 binary installer available.
Hi, I know now why it does not work. Somehow the PATH gets reset all the time. Will investigate further. Ciao, Dscho -
Feb 15, 12:52 pm 2007
Han-Wen Nienhuys
GIT 1.5.0 binary installer available.
I've uploaded a binary installer to http://lilypond.org/git/binaries/mingw/ (untested, and will need magic to get the bash scripts working) -- Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen -
Feb 15, 9:53 am 2007
Johannes Sixt
MinGW port updated to GIT 1.5.0
I've merged GIT 1.5.0 into the MinGW port. It is available at the usual location: pull/clone: git://repo.or.cz/git/mingw.git gitweb: http://repo.or.cz/w/git/mingw.git It contains an important fix (MinGW specific): Earlier versions could sometimes create temporary files read-only instead of read-writable. WARNING! The MinGW port does not support symbolic links, but the git.git itself now contains a symbolic link (RelNotes). For this reason, you cannot successfully pull this ...
Feb 15, 5:19 am 2007
Shawn O. Pearce
Re: GIT 1.5.0 binary installer available.
Do post, when ready. ;-) -- Shawn. -
Feb 15, 1:12 pm 2007
Johannes Schindelin
Re: MinGW port updated to GIT 1.5.0
Hi, This is exactly what Cygwin does. They revers-engineered the format of .lnk files. I am not so sure if it is worth the effort, though, since .lnk files are handled as files even from Windows. At some point we have to admit that Windows does not love symlinks, and we don't love Windows. Ciao, Dscho -
Feb 15, 12:14 pm 2007
Robin Rosenberg
Re: MinGW port updated to GIT 1.5.0
Since cygwin used shortcuts for exactly this purpose, why not (in principle). In practice it is not the same however, since shortcuts aren't transparent to applications. Only apps that explicitly understand shortcuts can make any use of the, like the Explorer, and cygwin application since cygwin hide the things. The (presumed) lack of support in Win32 for these makes it harder to support them. A little feared commercial Git "alternative" uses copies and. You cannot "check out" a ...
Feb 15, 12:41 pm 2007
Junio C Hamano
Re: MinGW port updated to GIT 1.5.0
I might have misread the above but I do not think linking core.filemode and the symlink munging is the right way. Another per-repository core.symlink = yes/no (which defaults to yes for others and no on filesystems without symlinks) would be more appropriate, as it allows Cygwin to continue using symlinks where it can, and UNIX folks to try it out. I take by "checking out as plain files" you mean instead of calling symlink(2) you would write(2) it out. I think that would be Ok from git's ...
Feb 15, 11:59 am 2007
Johannes Schindelin
Re: GIT 1.5.0 binary installer available.
Hi, Yes, indeed. And not only the bash scripts: AFAICT the command line option parsing is borked: whatever I do, a sh -c "git-config -l" from cmd does not pick up the option "-l". Which is funny, since a simple test program (outputting just the options passed to it) works. And so does "git-config -l" from "cmd". Could you please try making an installer which includes an exe for this simple program? -- snip -- #include <stdio.h> int main(int argc, char **argv) { ...
Feb 15, 12:11 pm 2007
Junio C Hamano
Re: MinGW port updated to GIT 1.5.0
grep for "if (S_ISLNK(mode))", see if it talks about the mode we put (either in tree object or index) and if so they are the places you want them to pretend that you got a regular file. For example, builtin-apply.c::try_create_file() is one. This writes out "git apply" result (so "am" and "rebase" are affected with this). entry.c::write_entry() is another. This writes things out of the index and used by "checkout-index" and "read-tree -u". -
Feb 15, 10:43 am 2007
Johannes Schindelin
Re: GIT 1.5.0 binary installer available.
Hi, ATM it looks like this: -- snip -- git-gui/git-gui.sh | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/git-gui/git-gui.sh b/git-gui/git-gui.sh index f5010dd..ed5cd82 100755 --- a/git-gui/git-gui.sh +++ b/git-gui/git-gui.sh @@ -291,6 +291,11 @@ proc ask_popup {msg} { ## ## repository setup +if { [is_Windows] && ![is_Cygwin] } { + set repo_dir [tk_chooseDirectory -title "Choose a Git repository" -mustexist 1] + cd $repo_dir +} + if { [catch ...
Feb 15, 9:23 pm 2007
Junio C Hamano
Re: [PATCH] config: read system-wide defaults from /etc/ ...
Ah, so the intended usage is to use git-config to store in and retrieve from a file that does not have anything to do with the core git data, and the using script would say: value=$(GIT_CONFIG=$that_extra_file git-config --get some.variable) ... do whatever with $value which does not have ... anything to do with git core itself gitvalue=$(git-config --get some.git.variable) ... use gitvalue which has some relevance to git core GIT_CONFIG=$that_extra_file git-config ...
Feb 15, 3:36 am 2007
Johannes Schindelin
Re: User-wide ignore list
Hi, [Cc'ed Duy, as he raised the same concerns.] Yes. However, you can safely call "git init" in an _existing_ repo. It "git clone" implicitly calls "git init"; Therefore you get the templates, too. But you're right, if you already edited .git/info/exclude, this will not overwrite it. Of course, you could fiddle with ~/.gitconfig, or even ~/.gitignore, but I suggest that you first think about a sane syntax. Also note that this opens the door for shooting-in-the-foot; files you ...
Feb 15, 4:37 am 2007
Johannes Schindelin
Re: User-wide ignore list
Hi, ... and next time you edit .git/info/exclude, be very surprised that other repos have the change, too. Ciao, Dscho -
Feb 15, 8:23 am 2007
Nguyen Thai Ngoc Duy
Re: User-wide ignore list
Oh.. that's enough for me :-) -- Duy -
Feb 15, 6:56 am 2007
Johannes Schindelin
Re: User-wide ignore list
Hi, It's not really per user, but how about doing it with templates? Ciao, Dscho -
Feb 15, 3:52 am 2007
Andy Parkins
Re: User-wide ignore list
Silly me; I forgot to write the last bit of my email :-) $ ln -sf $HOME/.git/exclude $GIT_DIR/info/exclude Do that in each of your working checkouts and voila. Andy -- Dr Andy Parkins, M Eng (hons), MIEE andyparkins@gmail.com -
Feb 15, 6:06 am 2007
Matthieu Moy
User-wide ignore list
Hi, Is there a way to have a per-user ignore list in git? I'd like to ignore once and for all the backup files of my editor (*~), which are not necessarily relevant to a project, but definitely relevant for me regardless of the project. Thanks, -- Matthieu -
Feb 15, 3:20 am 2007
Matthieu Moy
Re: User-wide ignore list
Correct me if I'm wrong (I didn't really find a documentation for templates), but I believe this would only apply to newly created project. Then, it doesn't apply if I clone the project of someone using another editor for example, nor to my old projects if I add something to the list of things I want to ignore. -- Matthieu -
Feb 15, 4:00 am 2007
Junio C Hamano
Re: User-wide ignore list
It might be an option to introduce a configuration variable that points at a file to be used in addition to $GIT_DIR/info/exclude. Then you can set that variable in ~/.gitconfig. -
Feb 15, 4:30 am 2007
Nguyen Thai Ngoc Duy
Re: User-wide ignore list
Templates have no effect on previously created git repositories, does it? -- Duy -
Feb 15, 4:00 am 2007
Andy Parkins
Re: User-wide ignore list
Yep; in repository-layout.txt it says: info/exclude:: This file, by convention among Porcelains, stores the exclude pattern list. `.gitignore` is the per-directory ignore file. `git status`, `git add`, `git rm` and `git clean` look at it but the core git commands do not look at it. See also: gitlink:git-ls-files[1] `--exclude-from` and `--exclude-per-directory`. Andy -- Dr Andy Parkins, M Eng (hons), MIEE andyparkins@gmail.com -
Feb 15, 4:12 am 2007
Johannes Schindelin
Re: User-wide ignore list
Hi, Nope. This is per-repo, not per-user. Hth, Dscho -
Feb 15, 4:59 am 2007
Junio C Hamano
[PATCH] remotes.not-origin.tagopt
With a configuration entry like this: [remote "alt-git"] url = git://repo.or.cz/alt.git/git/ fetch = +refs/heads/*:refs/remotes/alt-git/* tagopt = --no-tags you do not have to say "git pull --no-tags alt-git". Just saying "git pull alt-git" would suffice. Obviously, if you want to get the tag from such an alternate remote in a separate namespace, you could also do something like: [remote "alt-git"] url = ...
Feb 15, 2:46 am 2007
Johannes Schindelin
Re: [PATCH] remotes.not-origin.tagopt
Hi, How about going the full nine yards, and call it "fetchopt"? Then we would not check for the tag options, but instead parse $fetchopt _after_ "$@" in git-fetch. Ciao, Dscho -
Feb 15, 3:46 am 2007
Junio C Hamano
[PATCH +1] Dissociating a repository from its alternates
On top of the previous patch. This is needed to: - reject "repack -A -l", which does not make any sense; you want to repack the objects you borrow from the alternates. - make "repack -A" without "-a" to work. These operations corrupted the repository with the previous patch alone. Signed-off-by: Junio C Hamano <junkio@cox.net> --- git-repack.sh | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/git-repack.sh b/git-repack.sh index 774286e..66b5039 ...
Feb 15, 2:37 am 2007
Johannes Schindelin
Re: [PATCH] Dissociating a repository from its alternates
Hi, Why not make a really dumb script which just _copies_ (or maybe optionally hard link) the objects from the alternate repo, and then kills the alternatives file? That should be easier. You always can repack after that. Ciao, Dscho -
Feb 15, 8:39 am 2007
Junio C Hamano
[PATCH] Dissociating a repository from its alternates
People often start out with "clone -l -s" (or --reference) and later wish to dissociate the repository from its alternates. The new option -A to "git repack" lets you do so. What it does: - git-pack-objects gets a new option --ignore-alternate-pack. The command used in git-repack is told to pack only unpacked objects in general, but also is told to pretend objects in packs in the local repository are unpacked (this is necessary to keep historical huge packs marked with .keep ...
Feb 15, 12:51 am 2007
Andy Parkins
Re: OT: data destruction classics (was: Re: Error conver ...
How about this: 1) "I should like to clean up root's home directory" 2) cd /root; ls -la . 3) "Oh, there are a lot of config file in this directory that I don't need any more" 4) rm -rf .* Now start crying softly to yourself, when you realise that ".." is covered by ".*". Now go to every computer you work on and put export GLOBIGNORE=".:.." In your .bashrc. Boy, was my face red... Andy -- Dr Andy Parkins, M Eng (hons), MIEE andyparkins@gmail.com -
Feb 15, 2:13 am 2007
Uwe
Re: Error converting from 1.4.4.1 to 1.5.0?
I suffered from something like that, too. Since then I have a script "ufind". It's a wrapper around find that ignores CVS, Subversion, Git and hg metadata. Then "my" command would be: $ ufind -type f -print0 | xargs -0 -r grep -lZ '[$]Id' | xargs -r perl -p -i -e 's/.../' Where ... is something more restrictive that your .*\$Id.* For the interessted the script is attached. -- Uwe Kleine-K
Feb 15, 1:40 am 2007
Bill Lear
Re: OT: data destruction classics (was: Re: Error conver ...
Agreed. I often think stupid mistakes are a way of injecting random --- and at the time, unwelcome --- searches into creative solution spaces. As in other cases, this one involved an extremely simple answer very close to the start of the solution space, but (thanks to me), we drug this out all over the place and got to explore lots of things we otherwise wouldn't have. Bill -
Feb 15, 4:58 am 2007
Michael K. Edwards
Re: OT: data destruction classics (was: Re: Error conver ...
Not quite in the same vein, but perhaps amusing to Silicon Valley veterans: I worked for several years for a 64-bit processor + workstation vendor that shall remain nameless. There was this one guy in the other building who built the kernels for the 64-bit UNIX variant that shipped with US models. He had a SunOS 4 box on his desk that happened to be the only machine in the world where his magic 32-to-64-bit cross-compiler generated working kernels, for reasons no one ever fully understood. ...
Feb 15, 6:13 am 2007
Johannes Schindelin
Re: OT: data destruction classics (was: Re: Error conver ...
Hi, I connected a tape drive. It was a SCSI tape drive, and I had a SCSI Zip drive, which was so often connected/disconnected in-flight that the plug wore out. So I thought that it should not be a problem to connect the SCSI tape drive to a running system. Right? RIGHT? BIG MISTAKE. The SCSI adapter also hosted two RAID systems, one as a SCSI RAID, i.e. managed by the adapter, and one as ATAPI RAID, i.e. managed by its own embedded computer simulating one (actually, two) SCSI ...
Feb 15, 3:24 am 2007
Mark Levedahl
Re: [PATCH] git-bundle - bundle objects and references f ...
sh does not handle binary files: there is no way to split header from binary payload. Mark -
Feb 15, 5:12 pm 2007
Johannes Schindelin
Re: [PATCH] git-bundle - bundle objects and references f ...
Hi, You're right. But instead of doing this with Python or by hand, why not make the It is only faster since you unpack the objects. Which makes almost every other operation slow. Ciao, Dscho -
Feb 15, 8:35 am 2007
Johannes Schindelin
Re: [PATCH] git-bundle - bundle objects and references f ...
Hi, Why not force unmixing? I.e. first the options for git-bundle, _then_ the It does not have to be tar. There is no good reason that the parts you put into the bundle have to be files, rather than header and body. Ciao, Dscho -
Feb 15, 8:32 am 2007
Johannes Schindelin
Re: [PATCH] git-bundle - bundle objects and references f ...
Hi, It is not a usability issue if you are cleanly separating things which do Example: #!/bin/sh (echo Hallo; echo Bello; echo; echo blabla) | \ ( while read line; do echo "$line" if [ -z "$line" ]; then break fi done echo "xxx" cat ) In this case, shell reads the header until an empty line is encountered. The rest is piped through cat. And it does not matter if "blabla" is text or binary. Ciao, Dscho -
Feb 15, 5:40 pm 2007
Mark Levedahl
Re: [PATCH] git-bundle - bundle objects and references f ...
This introduces order dependency that is otherwise not there. The order dependency makes perfect sense to one who understands the details, but Doh! (sometimes you just have to whack people over the head with a 2x4). Thanks. Mark -
Feb 15, 8:23 pm 2007
Andreas Ericsson
Re: Newbie experience with push over ssh
Perhaps a better solution would be to do git archive --format=tar --prefix=project/ | bzip2 -f9 | \ ssh user@remote -C "cat > project.tar.bz2" Then unpack and build as usual on the remote end. Works a treat and is currently the gist of the only line in my "push-to-web" script (the rest of it just extends the command to run to also unpack the tarball). -- Andreas Ericsson andreas.ericsson@op5.se OP5 AB www.op5.se Tel: +46 8-230225 ...
Feb 15, 8:35 am 2007
Andy Parkins
Re: [PATCH] The "table-of-contents" in the update hook s ...
Oops; yes you're right. I was having trouble with git-cvsserver calling the update hook; and that was the fix. However, it's nothing to do with that patch - and I suspect that that fix should more properly be in git-cvsserver. Andy -- Dr Andy Parkins, M Eng (hons), MIEE andyparkins@gmail.com -
Feb 15, 3:15 am 2007
Eric Wong
Re: [PATCH] config: read system-wide defaults from /etc/ ...
GIT_CONFIG continues to work here with the latest git-svn + your hack -- Eric Wong -
Feb 15, 3:03 am 2007
Junio C Hamano
Re: [PATCH] config: read system-wide defaults from /etc/ ...
I think GIT_CONFIG and GIT_LOCAL_CONFIG environment variables are seriously misdesigned. At least, I do not think of a sane way to make use of them. For one thing, when they are set, truly per-repository variables such as repositoryformatversion, legacyheaders and sharedrepository are all ignored. What I would think is sensible would be simply to: - $GIT_CONFIG_SYSTEM environment, if set, names a file to be read first. It defaults to /etc/gitconfig. You can set it to /dev/null ...
Feb 14, 10:27 pm 2007
Junio C Hamano
Re: [PATCH] config: read system-wide defaults from /etc/ ...
Ok, Eric's example and yours made it clear that GIT_CONFIG is an interface meant to reuse (or abuse) git-config to read some file that is not at all related to git, and should never be used by other plumbing. As long as that is clear (could we have that in the documentation, by the way, please?), I have no problem with that. In fact, I am very happy that we do not have to do that insane "core.*" stuff, which I thought was needed purely because somebody was trying to use GIT_CONFIG to ...
Feb 15, 4:25 am 2007
Johannes Schindelin
Re: [PATCH] config: read system-wide defaults from /etc/ ...
Hi, Okay for GIT_LOCAL_CONFIG. I do not remember off-hand who wanted it (Jakub? Pasky?), but it was in the context of gitweb. However, GIT_CONFIG is meant to parse arbitrary config files. You can literally say GIT_CONFIG=/windows/C/WINNT/system.ini git config drivers.wave and get the value for "wave" in system.ini, section [drivers]. BTW I find the HOME mangling in test-lib.sh insane. Here's a replacement: -- snip -- [PATCH] Make tests independent of global config files This ...
Feb 15, 3:43 am 2007
Junio C Hamano
Re: [PATCH] config: read system-wide defaults from /etc/ ...
Addendum. Judging from the way builtin-config.c::get_value() uses it, I think whoever invented $GIT_CONFIG_LOCAL as a parallel to $GIT_INDEX_FILE and $GIT_OBJECT_DIRECTORY, in other words, what usually appear under $GIT_DIR can be placed somewhere completely different. So I think the above "hack" I described still honors its intended use. I am still not sure what good GIT_CONFIG would be to completely override everything else, though. -
Feb 15, 1:46 am 2007
Eric Wong
Re: [PATCH] config: read system-wide defaults from /etc/ ...
I just started using GIT_CONFIG in the experimental version of git-svn[1] which allows me to use .git/svn/config for tracking some metadata bits. I didn't want to pollute the users' .git/config with automatically read and state data in .git/config; so I started using .git/svn/config to avoid littering .git/svn/ with any tiny pieces of data I might need. -- Eric Wong [1] - git://bogomips.org/git-svn -
Feb 15, 2:59 am 2007
Andy Parkins
Re: [PATCH] config: read system-wide defaults from /etc/ ...
Isn't it more likely that on a multi-user machine all users are sharing one install of git - in which case you do want the upgrade of facilities to be system-wide. Otherwise you have to tell every user to edit their .gitconfig to enable the new facilities - users shouldn't have to care about that sort of thing, that's what admins are for. Andy -- Dr Andy Parkins, M Eng (hons), MIEE andyparkins@gmail.com -
Feb 15, 3:19 am 2007
Johannes Schindelin
Re: [PATCH] config: read system-wide defaults from /etc/ ...
Hi, I am no particularly good with documentation, but the good people who I'm okay either way. But I thought /etc/gitconfig was not so much like Hey, take it easy, now that Git "snog" is out! Ciao, Dscho -
Feb 15, 5:05 am 2007
Junio C Hamano
Re: [PATCH] config: read system-wide defaults from /etc/ ...
Not really. Some repositories would need to be accessible by people with older git coming over the network. Some don't. -
Feb 15, 4:26 am 2007
Shawn O. Pearce
Re: git-gui Error
Thanks, that applied cleanly. Except the radio button for Tag isn't selected if you make a selection from the tag picklist. This was easily fixed by adding a trace to the variable, like the trace already setup for the branch and tracking branch menus: diff --git a/git-gui.sh b/git-gui.sh index 1c3de80..9ce5a3b 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -2018,6 +2018,8 @@ trace add variable create_branch_head write \ [list radio_selector create_branch_revtype head] trace add ...
Feb 14, 11:38 pm 2007
Martin Koegler
Re: git-gui Error
This time, the white spaces/tabs should be correct: --- git-gui.sh 2007-02-14 09:51:38.025781229 +0100 +++ git-gui 2007-02-15 06:53:40.262295256 +0100 @@ -1916,11 +1916,25 @@ return [lsort -unique $all_trackings] } +proc load_all_tags {} { + set all_tags [list] + set fd [open "| git for-each-ref --format=%(refname) refs/tags" r] + while {[gets $fd line] > 0} { + if {![regsub ^refs/tags/ $line {} name]} continue + lappend all_tags $name + } + close $fd + + return [lsort ...
Feb 14, 11:07 pm 2007
Eric Wong
Re: [CFT] git-svn - almost a rewrite...
I've been dogfooding my current version today and it everything seems to be working as expected. I'm glad I didn't introduce it into 1.5.0, however; as I introduced (but later fixed) a major bug between Saturday and Wednesday where revisions were being skipped. -- Eric Wong -
Feb 15, 7:09 pm 2007
Junio C Hamano
Re: GIT+CYGWIN annoying test failure
I would have written: check_result () { rm -f current && git-ls-files --stage | ... && diff -u expected current } If the above still makes the tests pass for your environment, that would be good. I am not very happy about the lack of "&&" after "rm -f current" in your patch. It seems as if 'current' is sometimes writable and sometimes not, and when the shell couldn't open it to redirect sed output the whole test fails for you. That does not ...
Feb 15, 6:26 pm 2007
SungHyun Nam
Re: GIT+CYGWIN annoying test failure
Hello, There's no problem with the umask. $ umask 0022 I guess there is some race condition in CYGWIN or windows. And my system triggers that condition. Check the logic above. I cannot think there is any chance that 'rm -f current && echo x >current' is success, but 'echo x >current' is fail? Thanks, namsh -
Feb 15, 5:04 pm 2007
previous daytodaynext day
February 14, 2007February 15, 2007February 14, 2007