login
Header Space

 
 

git mailing list

FromSubjectsort iconDate
Stephen Hemminger
Restricting access to a branch
Is there some standard way to freeze a branch and not allow anymore changes to be pushed? Yes, I know it is possible by playing with hook files, but that doesn't seem very admin friendly. --
May 21, 7:36 pm 2008
Kristian Høgsberg
[PATCH] Stop creating the .git/branches direectory in new re...
The .git/brances directory is actually a piece of cogito infrastructure that git creates, and is only there to prevent cogito falling over. Signed-off-by: Kristian Høgsberg <krh@redhat.com> --- I think it's time to drop this confusing directory from the .git template. If not for 1.5.x, let's at least schedule it for 1.6.0. cheers, Kristian templates/branches-- | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) delete mode 100644 templates/branches-- diff --git a/templat...
May 21, 4:09 pm 2008
Adam Mercer
git cvsimport error
Hi I'm trying to convert a CVS repository to GIT (1.5.5.1 on Intel Mac OS X 10.5.2) using the following: [ram@mimir ~]$ git cvsimport -v -d :local:/Users/ram/test_cvs -C glue.git glue Initialized empty Git repository in /Users/ram/glue.git/.git/ Running cvsps... cvs_direct initialized to CVSROOT /Users/ram/test_cvs cvs rlog: Logging glue cvs rlog: Logging glue/bin cvs rlog: Logging glue/debian cvs rlog: Logging glue/doc cvs rlog: Logging glue/etc cvs rlog: Logging glue/glue cvs rlog: Loggin...
May 21, 3:14 pm 2008
Adam Mercer
Re: git cvsimport error
Done some digging with cvsps itself and it looks like the lbdb.py,v file has become corrupted from a very early version... Is there a way that I can tell git to ignore the early revisions? Cheers Adam --
May 21, 3:39 pm 2008
Craig L. Ching
RE: git cvsimport error
Not a cvsps expert, but I'm at the same point as you in converting a Cheers, Craig --
May 21, 3:51 pm 2008
Craig L. Ching
RE: Git-new-workdir
Sure, what I mean is that you checkout a branch, the workspace reflects the state of that branch. If you do a build in the workspace, the build artifacts match up with the source that's in the workspace. If you then checkout a new branch, it's unlikely that the source reflects the build artifacts any more. Here's how we did it in CVS. Any feature or defect got it's own branch, no matter how trivial it was (yes, it was very painful with CVS, but the benefits outweighed the pain. Moving to Git is...
May 21, 3:07 pm 2008
Craig L. Ching
Git-new-workdir
Hi all, I'm a bit of a newbie to Git, but I have started using it in earnest for the past couple of months. I had asked on IRC about a potential problem I saw with git and how it fit into our workflow. We currently use CVS and have used it for the past ten years. A lot of us have grown accustomed to keeping multiple builds around for different things, e.g. defects we're working on, new features, etc., we do a lot of task switching and very rarely can we work on something start to finish without...
May 21, 2:21 pm 2008
Luciano Rocha
Re: Git-new-workdir
Personally, I'd clone a local rep for each build, with the -s option to clone. Something like: git clone server:/rep ~/master git clone -s ~/master build/abc git clone -s ~/master build/foo =2E.. The -s option should reduce disk-usage considerably. --=20 Luciano Rocha <luciano@eurotux.com> Eurotux Inform=E1tica, S.A. <http://www.eurotux.com/>
May 21, 2:44 pm 2008
Brandon Casey
Re: Git-new-workdir
Don't do that without first doing git config gc.pruneExpire never to disable pruning loose objects if there is any chance that any will be created. Better to be safe, and prune manually using the example It won't be any less than what git-new-workdir would produce. Actually, git-new-workdir could provide more space savings since there is only a single repository so new objects created by development in any of the new work directories would be available to all others. This is getting a li...
May 21, 3:25 pm 2008
Craig L. Ching
RE: Git-new-workdir
Yes, that's precisely what we want to do. So according to your Cheers, Craig --
May 21, 3:30 pm 2008
Brandon Casey
Re: Git-new-workdir
Yes. I feel more confident after reading your reply to Robert where you described your use-case more thoroughly. -brandon --
May 21, 3:43 pm 2008
Craig L. Ching
RE: Git-new-workdir
Thanks for the feedback, it's making me think about the problem ;-) Cheers, Craig --
May 21, 2:57 pm 2008
Junio C Hamano
Re: [PATCH] Add format.date config variable
Look at other "format.*" variables --- notice that most of them are about "format-patch" command? And you absolutely do NOT want this "default date The patch itself is good, especially that you made sure that format-patch output is not affected. As to the configuration variable name, I'd suggest "log.date" instead. We may have to deprecate format.pretty and move it to something else for consistency, though. Just like we do not want "format.date" applied to format-patch, we never want "...
May 21, 2:24 pm 2008
Heikki Orsila
Re: [PATCH] Add format.date config variable
OK. Will submit a patch later today. -- Heikki Orsila heikki.orsila@iki.fi http://www.iki.fi/shd --
May 21, 7:27 pm 2008
Ian Katz
git tutorial
Hi Guys- I have a suggestion/request for the git documentation (tutorial), currently accessible from: http://www.kernel.org/pub/software/scm/git/docs/tutorial.html It would be much easier to understand the "Using git for collaboration" section if you put the username (bob or alice) as a prefix to each of the example command prompts, as is common in most linux distributions. This would make it easier to see at a glance who is doing what. In other words, it would change from this: $ git clone...
May 21, 12:42 pm 2008
Nico -telmich- Schot...
two git-cherry-pick enhancements
Hello! When using git-cherry-pick there are two things missing for me and just wondered how you see it (or maybe have a good solution): - Apply only parts of the patch which applies to <file ...>: I sometimes want to apply patches only to some, but not all files the patch introduces - Interactively selecting which parts to apply: I want only 7 out of 10 changes the patch introduces. It would help alot, if I could choose which parts I want to apply for every part of the pa...
May 21, 12:38 pm 2008
Govind Salinas
Re: two git-cherry-pick enhancements
On Wed, May 21, 2008 at 11:38 AM, Nico -telmich- Schottelius You could "git cherry-pick --no-commit <id>" and then "git add -p" -Govind --
May 21, 2:36 pm 2008
Marcel Koeppen
[PATCH] Fix prepare-commit-msg hook and replace in-place sed
The patterns to the case statement could never be matched, so the hook was a noop. This patch also replaces the non-portable use of in-place sed. Signed-off-by: Marcel Koeppen <git-dev@marzelpan.de> --- templates/hooks--prepare-commit-msg | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/hooks--prepare-commit-msg b/templates/hooks--prepare-commit-msg index ff0f42a..d3c1da3 100644 --- a/templates/hooks--prepare-commit-msg +++ b/templates/hooks--prepa...
May 21, 12:25 pm 2008
davetron5000
Using git to perform merges between SVN branches
Working out of an SVN/subversion repository. Initially cloned it so I could work with git via git-svn. I was given a branch in svn to work on. Created local branches connected to the main trunk and my branch via: git-checkout -b local-trunk trunk git branch local-foo FOO where svn_root/branches/FOO is where I'm to commit changes commits work fine, etc. What I'd like to do, for simplicity, and as a demonstration of git's superior merging, is to do the merge of my code to the main trunk u...
May 21, 11:50 am 2008
Björn
Re: Using git to perform merges between SVN branches
You can skip the whole merge-foo thing and just merge local-foo into local-trunk, the second merge would end-up as a fast-forward anyway. That said, the above should work, given that a) you don't do any rebasing after merging and b) the merge commit is the first commit that gets dcommitted to svn. I don't remember what happens when there are new revisions in svn since you last ran "git svn rebase", so you might want to try that case on a throw-away svn repo first. What SVN will see is basica...
May 21, 2:01 pm 2008
Michael J Gruber
gitignore: negating path patterns
Hi there It seems that negating path patterns in gitignore doesn't work, or I don't understand it (or both). With the attached script, git status (1.5.5.1) reports "dir/a" as new and "dir/b" as untracked. I would rather expect it to report "dir/c" as untracked also. It seems that "!b" matches to include "dir/b" (reverting the exclusion "*" as expected), whereas "!dir/" does not match to include "dir/c". What's going on here? Michael P.S.: "*" in dir/.gitignore would do what I want, but I ...
May 21, 10:52 am 2008
Michael J Gruber
gitignore: negating path patterns
Hi there It seems that negating path patterns in gitignore doesn't work, or I don't understand it (or both). With the attached script, git status (1.5.5.1) reports "dir/a" as new and "dir/b" as untracked. I would rather expect it to report "dir/c" as untracked also. It seems that "!b" matches to include "dir/b" (reverting the exclusion "*" as expected), whereas "!dir/" does not match to include "dir/c". What's going on here? Michael P.S.: "*" in dir/.gitignore would do what I want, bu...
May 21, 10:40 am 2008
Clifford Caoile
Re: encoding bug in git.el
Hi: Thanks for reporting this. I concur. This is not UTF-8 translation, but an emacs MULE encoding. I suspect the U+F6 character is read in to the *git-commit* buffer in latin-1 mode because git.el displays the Author line, then Emacs writes that out as 0x81F6, because that is the emacs buffer code of U+F6. This is because git.el, upon git-commit-tree, always redefines the environment variables like GIT_AUTHOR_NAME. However the difference is that prior to commit dbe482, "env" handle the enc...
May 21, 10:08 am 2008
Karl
Re: encoding bug in git.el
That the change was committed to the "master" branch, and not the "maint" branch. So folks who run stable releases haven't seen the bug yet. -- Karl Hasselström, kha@treskal.com www.treskal.com/kalle --
May 21, 10:54 am 2008
Clifford Caoile
Re: encoding bug in git.el
Ok I understand. Did you test the proposed fix I sent? I would like to know your feedback. Best regards, Clifford Caoile --
May 21, 5:31 pm 2008
Johannes Schindelin
[PATCH] pull --rebase: exit early when the working directory...
When rebasing fails during "pull --rebase", you cannot just clean up the working directory and call "pull --rebase" again, since the remote branch was already fetched. Therefore, die early when the working directory is dirty. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> --- git-pull.sh | 5 +++++ t/t5520-pull.sh | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+), 0 deletions(-) diff --git a/git-pull.sh b/git-pull.sh index bf0c298..9a9e764 100755 ...
May 21, 7:32 am 2008
Geert Bosch
Re: [PATCH] pull --rebase: exit early when the working direc...
Much nicer indeed to die early on errors, as we also can I thought we'd prefer saying: "refusing to pull with rebase: your working tree has local changes" -Geert --
May 21, 11:11 am 2008
Jan
Re: [PATCH] pull --rebase: exit early when the working direc...
Perhaps the "up-to-date" should be changed to something else, following the recent discussion about the "up-to-date" message in checkout (but here we don't have to worry about breaking anything else). In that case, I'd suggest: "Refusing to pull with rebase: your working tree has uncommitted changes" -- Best regards Jan Krüger <jk@jk.gs> --
May 21, 9:31 am 2008
Andreas Ericsson
Re: [PATCH] pull --rebase: exit early when the working direc...
Funny stuff. I helped a co-worker with just exactly this issue less than ten minutes ago, so, fwiw: Liked-by: Andreas Ericsson <ae@op5.se> -- Andreas Ericsson andreas.ericsson@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 --
May 21, 8:04 am 2008
Junio C Hamano
Re: [PATCH] gitweb: Fix chop_str not to cut in middle of utf...
I haven't followed the codepath but what do the callers do to the string returned from chop_str? Don't they assume the string hasn't been decoded (because the old implementation of chop_str did not do this to_utf8), and emit the result directly to the output because it also assumes the undecoded format is what the outside world wants? In other words, don't they now need to do different things because returned string has gone through the to_utf8() processing already? Maybe I am worrying too much...
May 21, 3:27 am 2008
Anders Waldenborg
Re: [PATCH] gitweb: Fix chop_str not to cut in middle of utf...
The to_utf8() (defined in gitweb.perl, not part of perl it self) is kind of sneaky, it checks if the string already is valid utf8. (guess it should be called ensure_utf8()) chop_str needs to work on decoded string, otherwise character count goes all wrong. But maybe it is better to add the to_utf8() to the callsites? anders --
May 21, 3:45 am 2008
Junio C Hamano
Re: Re* [PATCH] "not uptodate" changed to "has local changes"
Yeah, that is a very good explanation. Thanks for a constructive suggestion for improvements. Here is an incremental on top of the one I sent out, in case people want to improve on it. unpack-trees.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/unpack-trees.c b/unpack-trees.c index da3bdc8..0de5a31 100644 --- a/unpack-trees.c +++ b/unpack-trees.c @@ -8,7 +8,15 @@ #include "progress.h" #include "refs.h" -static struct unpack_trees_error_msgs ...
May 21, 3:07 am 2008
Junio C Hamano
Re: Two minor tweaks on git-gui where textboxes weren't vert...
It is not about him suing us, but more about "He certified that he did not steal it from anywhere else", iow, other people suing us for what he did. And we should worry. --
May 21, 3:01 am 2008
Peter Farmer
Develop with git on a Google Code project
Hi list, Saw this this morning, http://google-opensource.blogspot.com/2008/05/develop-with-git-on-google-code-project.... You can't beat a bit of exposure! -- Peter Farmer --
May 21, 1:25 am 2008
Johannes Schindelin
Re: Develop with git on a Google Code project
Hi, Unfortunately, this is not developing with git, but with git-svn. That is as if you were driving a formula one car, with training wheels (and you must not speed lest the training wheels fall off). Ciao, Dscho --
May 21, 4:20 am 2008
Karl
StGit: kha/{safe,experimental} updated
I've promoted a bunch of stuff from "experimental" to "safe", so that "experimental" currently only consists of the stack log stuff. The stack log stuff in experimental now sports a rewrite of "stg log", so that you can see what's in your log. This work is nearing completion, or at least nearing the point where I'll be considering moving it to "safe". -+- The following changes since commit 9564af74822b276d435319fc271eda591e5125a6: Catalin Marinas (1): ...
May 21, 1:19 am 2008
Eric Raible
gitk: spanish translation of gitk introduced extra directory
It seems as if commit cc398a286b4cb5cb76c515588668bab4858a01cf (gitk: Spanish translation of gitk) introduced an extra directory. Instead of creating gitk-git/po/es.po that commit created gitk-git/gitk-git/po/es.po. In other words, we need the following: git mv gitk-git/gitk-git/po/es.po gitk-git/po Additionally, given that this will leave an empty directory (gitk-git/gitk-git/po) that even "git clean -f" won't remove, is it worth updating "git mv" so that it removes directories if/when i...
May 21, 1:17 am 2008
Anders Waldenborg
[PATCH] gitweb: Convert string to internal form before chopp...
Fix chop_str not to cut in middle of utf8 multibyte chars. Without this fix at least author name in short log may cut in middle of a multibyte char. When the result comes to esc_html to_utf8 is called again, which doesn't find valid utf8 and decodes using $fallback_encoding making it even worse. This also have the nice side effect that it actually tries to show the first 10 _characters_, not the number of characters that happened to fit into 10 bytes. Signed-off-by: Anders Waldenborg <anders@...
May 21, 7:44 am 2008
Johannes Sixt
Re: Understanding git filter-branch --subdirectory-filter be...
That's difficult to tell without a peek at the repository. Did you compare 'gitk HEAD' to 'gitk HEAD -- WRITING'? I'd expect the latter to be a subset of the former. Note that with a path specified "history simplification" happens, which means that you won't see as many merges as when no path is specified. -- Hannes --
May 21, 2:26 am 2008
Daniel Barkalow
Re: looking for "market share" analysis of SCMs.
Yeah, also a lot of people have CVS installed from when they used it, but they not use something different, but haven't built new computers without I think that around 05-2007, a lot more people started voting, largely non-coders, but also coders. In the percentage, there's a sharp drop where that sharp rise is. -Daniel *This .sig left intentionally blank* --
May 20, 8:24 pm 2008
Linus Torvalds
Re: looking for "market share" analysis of SCMs.
Woo-woo! Add RCS to the list (because real mean use the real thing(tm)), and see how git passed RCS late last year. Linus --
May 21, 12:06 am 2008
Peter Karlsson
Re: looking for "market share" analysis of SCMs.
I have been using RCS for local version control (like in my /etc directory), when I did not want to involve a CVS server. I find that Git does that job much better, so I am switching to Git there as well. Very nice :-) The graphs are all missing "cvsnt", which does replace the cvs package if installed. But even if added, cvs is still losing market share. -- \\// Peter - http://www.softwolves.pp.se/ --
May 21, 3:20 am 2008
Sverre Rabbelier
Re: looking for "market share" analysis of SCMs.
On Wed, May 21, 2008 at 6:06 AM, Linus Torvalds I have to admit I never heard of RCS before you mentioned it, but sure is nice to know we passed them! :D This graph shows only git, subversion, cvs, and rcs, since the other ones don't really have any market share and just clutter the bottom of the graph. http://tinyurl.com/6hj5ds It looks like a steady growth but I'm not sure we'll pass CVS before the "end of the world" in 2012. (Just picked the "end of the world" in 2012 as a random reference ...
May 21, 12:40 am 2008
Martin Langhoff
Re: looking for "market share" analysis of SCMs.
On Wed, May 21, 2008 at 4:06 PM, Linus Torvalds Heh. And trim it to start on 2005-7-12 - the date of the first debian package for it. Makes the graph more interesting. Do I confess I added tla to the list too? Some things in my past I rather not talk about... cheers, m -- martin.langhoff@gmail.com martin@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff --...
May 21, 12:26 am 2008
Sverre Rabbelier
Re: looking for "market share" analysis of SCMs.
On Wed, May 21, 2008 at 6:26 AM, Martin Langhoff Trimming it does make the graph a lot nicer although doing prevents you from comparing the grow curves (of CVS and SVN with those of git). I'm afraid 'tla' is too insignificant to be of interest :P, it's steady at, say, 100 users. -- Cheers, Sverre Rabbelier --
May 21, 12:44 am 2008
Martin Langhoff
Re: looking for "market share" analysis of SCMs.
Actually, if we define the "market" to be DSCM, and the timeframe to be existence of the git-core package, this graph of installs is quite useful: Maybe git-archimport has made a dent? ;-) http://tinyurl.com/5okewp cheers, m -- martin.langhoff@gmail.com martin@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff --
May 21, 1:10 am 2008
Sverre Rabbelier
Re: looking for "market share" analysis of SCMs.
On Wed, May 21, 2008 at 7:10 AM, Martin Langhoff Hehe, that feels a bit like manually favoring the odds in our benefit, It would seem the contrary is true, the usage of tla was steadily declining, but since git-arch it has been picking up! (Well, that is what one could naively deduct from this graph, there's probably another explanation :P). -- Cheers, Sverre Rabbelier --
May 21, 1:21 am 2008
Robin Rosenberg
Re: looking for "market share" analysis of SCMs.
Diff+tar+patch should be counted too. http://tinyurl.com/3frawy Seems far more popilar than anything else added together, including cvs and other subversive systems. -- robin --
May 21, 3:39 pm 2008
Daniel Barkalow
Re: looking for "market share" analysis of SCMs.
I think tar and diff are necessary to install git-core or any other .deb, so it's unsurprising that they've got a 100% market share by that metric. Until Debian switches to a git-based package format, git's not going to catch up to those... On the other hand, the "vote" value for patch is a reasonable metric, and it's been steadily close to but above the version control systems. -Daniel *This .sig left intentionally blank* --
May 21, 4:07 pm 2008
Teemu Likonen
Re: looking for "market share" analysis of SCMs.
Yes, tar and diff are in every Debian system and can't be casually removed: $ aptitude remove tar [...] WARNING: Performing this action will probably cause your system to break! Do NOT continue unless you know EXACTLY what you are doing! To continue, type the phrase "I am aware that this is a very bad idea": --
May 21, 4:28 pm 2008
previous daytodaynext day
May 20, 2008May 21, 2008May 22, 2008
speck-geostationary