IRCloggy #git 2008-06-18

Logs Search ←Prev date Next date→ Channels Documentation

Provider of IRC logs since 2005.
WARNING: As Freenode became unjoinable and lost all warnings in topics, we cannot log channels on Freenode anymore.

2008-06-18

aeruder you've just created a multi-parent commit00:00
johnw left00:01
claymccoy_ wow, so that is the difference in ~ and ^00:01
Mikachu ~3 is ^^^00:02
ckknight left00:02
ph^ joined00:02
eventualbuddha left00:03
Ryback_ left00:03
ezyang joined00:04
claymccoy_ so ^2 will give me the 2nd parent, can I do this with ~ too. Something like ~1:200:04
ciaran left00:04
eternaleye_ left00:05
eternaleye_ joined00:05
ciaran joined00:05
ezyang What happened to all the msysgit developers? :-( There's a patch I'd like to get merged into the main repos.00:05
Mikachu claymccoy_: ?00:05
claymccoy_: if you want the second parent, use ^200:05
pombreda joined00:06
tsoiland joined00:07
claymccoy_ Yeah, that is the second parent of the last commit, right. And ^^^2 would be the second parent of 3 commits ago. so if I wan to use ~ to specify how many commits ago, but I want the second parent of it.00:07
Mikachu ~2^2 then00:08
doener claymccoy_: ~3^200:08
ciaran left00:08
Mikachu it's easy to do that wrong ;)00:08
ciaran joined00:08
doener I read the text, you parsed the ^^^200:08
claymccoy_ cool, thanks! this is a new concept for me.00:08
Mikachu yeah, let's say i said that to claymccoy_ :)00:09
doener :-)00:09
ciaran left00:09
ciaran joined00:09
timocratic left00:09
ciaran left00:10
ciaran joined00:10
claymccoy_ left00:10
ciaran left00:11
tsoiland question: is it possible to have multiple public repositories under one project on repo.or.cz? The reason is that we want to do this: http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#public-repositories instead of everyone pushing to the same repo.00:11
ciaran joined00:11
ckknight joined00:12
markkalderon left00:12
vmiklos sure.00:12
the maintainer registers the project and then others can create forks00:12
ciaran left00:13
radarek left00:13
ciaran joined00:13
markkalderon joined00:13
tsoiland is that what forking means on that site? not actual forking? if that makes any sense.00:14
Mikachu forking means they use less space on the server which makes pasky happy00:14
jast tsoiland, i guess the question is: what do you actually want to do?00:15
you can always have everyone use a separate project. forking just means they can reuse the same hard disk space for common history.00:17
zawir joined00:17
pdherbemont left00:18
ciaran left00:18
tsoiland I guess that would work. But will it look like the project split up in n projects. Where n is the number of devs (since everyone will have their own public repo)00:18
ciaran joined00:18
tsoiland I guess there should be a question mark in there somewhere.00:18
ciaran left00:19
ciaran joined00:19
ciaran left00:19
jast tsoiland, well, suppose you use the forking mechanism. you create one 'main' public repo where things can occasionally be merged together into an 'official' representation. then each fork is for a specific developer. in the end, it will look like this: http://repo.or.cz/w/git.git (scroll down to "forks")00:22
pdherbemont joined00:22
Mikachu hm, changing the sort order on the forks page doesn't work00:23
http://repo.or.cz/w/git.git?a=forks -> http://repo.or.cz/w?o=age00:23
tsoiland okey.. so its a common way of doing it?00:23
bloweryblowery`afk00:24
jast yeah00:24
at least on repo :)00:24
well, sorting works manually00:24
not that that's much of a solution00:24
tsoiland great! forking it is.00:24
thanks00:24
mithro joined00:28
blowery`afkblowery00:29
markkalderon left00:29
ijcd joined00:30
Slashbun left00:32
robinr left00:35
cmarcelo left00:40
DrNick joined00:41
chrisb left00:46
bloweryblowery`afk00:49
branstrom left00:50
tsoiland left00:56
k0001 left00:57
vbabiy joined00:57
thannoy__ left00:58
VitaRara joined01:03
david_koontz left01:03
Tsaghen left01:06
csc` left01:07
doener_ joined01:09
brosner joined01:17
patchwork left01:18
vbabiy left01:20
louipc joined01:21
vbabiy joined01:21
csc` joined01:23
louipc csc`: nooooo01:23
doener left01:24
csc` what louipc01:24
louipc csc`: you're following me aren't you01:24
csc` i was here before you01:24
tvachon left01:25
Mikachu so you came from the future too01:25
louipc !01:25
ezyang and now you must be destroyed (creepy alien noises commence)01:25
louipc pulls out the theremin.01:26
kelvie__kelvie01:28
cnk left01:28
pombreda left01:28
erh__ joined01:36
erh__ is there any good way to permanently delete a file? from every revision? i tried filter-branch - but the pack was still huge01:37
someone added a 500mb tgz file by accident and pushed it...01:37
brosner left01:37
Mikachu you have to delete it from several places before git will throw away the data01:38
reflogs, remote refs, the refs/original namespace, then run gc01:39
possibly some more01:39
ezyang erh__: owwch01:39
erh__ so there's no easy way, right? or a script someone knows about?01:40
ezyang erh__: Do you have any repo backups? That might be faster, and then you can merge in recent changes01:40
erh__ yeah - thats what i was thinking01:40
EmilMedve joined01:40
erh__ if i take a backup - and people have local repos that were cloned from a previous point - will they be able to use them01:40
claymccoy joined01:40
erh__ should be as far as i can tell01:40
ezyang erh__: IIRC, you'll need to do a bare clone, and swap that in01:41
erh__ anyone know if this is a planned feature?01:42
ezyang Of course, there will still be the poor saps who git pulled the 500 mb tz01:42
erh__: No.01:42
igorgue joined01:43
ezyang Deleting commits goes completely against what git is about01:43
erh__ yeah - pulling that 500mb file for eternity doesn't seem like fun01:43
Sake joined01:43
Sake is there a good cvs/svn hosting project where I can put a project, make it private and only give certain people access?01:43
ezyang Sake: This is the #git chan\01:43
Sake: Ask at #svn or #cvs01:44
erh__ I imagine this comes up sometimes though - if this happens, or if someone accidentally commits a file with a password01:44
l0verb0y left01:44
SuttoL_ left01:45
vmiklos you can use git rebase -i to remove the pass from the commit.01:45
louipc damn01:45
ezyang Hopefully, the realize before pushing01:45
shd Sake: seriously, why ask at this channel?-)01:45
louipc get them to send a patch next time01:45
ezyang once you push, the cat's out of the bag01:45
louipc then it'll be freakin obvious01:45
erh__ :) 500mb email attachment...01:46
ezyang hehe, the mailing list will probably reject it01:46
louipc that's the way I work01:46
all devs send patches for review to the ml01:46
even if they have push access01:47
Ramune left01:47
jmspeex joined01:49
erh__ vmiklos: not quite sure i get how i would you rebase01:49
use rebase that is..01:49
Sake I meant to add Git to that01:51
sorry...01:51
vmiklos the -i switch is important :)01:51
ezyang git rebase is one of the things that is difficult for newbies, since there's no equivalent in most other svms01:51
Sake I just found out about github though, looks cool01:51
ezyang Sake: You have to pay them for private access01:51
Leefmc joined01:51
ajonat left01:51
ezyang Sake: Do you have a server you have SSH access to? That's probably your best bet01:51
louipc yea01:52
ezyang I don't understand it myself, actually01:52
ajonat joined01:52
erh__ vmiklos: could i rebase master -> master01:52
louipc I did a rebase once01:52
it was awesome01:52
ezyang </sarcasm>?01:52
louipc well I mean i did a -serious- rebase01:52
conflicts through 20 commits01:52
ezyang Sake: The bells and whistles github has are pretty nice, though01:53
vmiklos erh__: just 'git rebase -i HEAD~X' (if the problematic ommit was 5 commits ago, then X=5, for example), change the problematic commit's 'pick' to 'edit' and that's it. see also the interactive mode part of man git-rebase01:53
commit*01:53
erh__ vmiklos: ok - i did the base. the commit is not in the log. but .git/objects is still huge01:56
so i probably need a gc or a prune01:57
louipc yeah01:57
VitaRara left01:57
erh__ what's the best way to get rid of it forever?01:57
Mikachu cd ..; git clone file://$PWD/oldrepo newrepo01:57
erh__ still there - (i'm just looking at the size of .git/objects)01:58
louipc hmm01:58
vmiklos or just git reflog --expire=now; git gc01:59
unreal left02:00
erh__ now .git/objects/pack is huge02:02
digitalhobbit_ left02:04
saintdev left02:05
vbgunz left02:05
saintdev joined02:07
louipc erh__: is the change in your commit history at all?02:07
erh__ nope - gone02:07
stouset joined02:10
unreal joined02:11
jjuran joined02:12
pflanze left02:14
destruct_ joined02:15
claymccoy left02:17
Leefmc left02:17
claymccoy joined02:18
saintdev left02:21
ezyang erh__: What happens when you do `git log --all -n 5`?02:21
erm -n502:21
ajonat left02:22
Leefmc joined02:22
ajonat joined02:23
erh__ its not here02:23
well - i guess there is a merge there02:24
agib joined02:24
aroben left02:26
destruct left02:26
claymccoy left02:26
agib does anyone know how to deploy a git branch with capistrano? cap deploy -s branch=dev only seems to work if the cached_copy is empty...02:27
DrNick you should probably ask in a capistrano support channel, not a git channel02:28
saintdev joined02:28
krawek left02:32
ngng left02:32
agib DrNick: true... just trying my luck, sorry02:33
stousetstouset|away02:36
destruct_destruct02:36
krawek joined02:36
erh__ i tried git-rebase -ip but that just seemed to modify the working directory02:38
agib is there a way to make it so that my deployment server fetches the dev branch reference during a git fetch origin ?02:39
ezyang agib: Doesn't it already?02:40
jordi_bunster joined02:41
agib ezyang: hmm doesn't seem like it: "git fetch -q origin && git reset -q --hard d212518d499757d41ec19ae41c74bc9fc05c5f2f" seems to be giving me "Usage: /usr/local/bin/git-reset [--mixed | --soft | --hard] [<commit-ish>] [ [--] <paths>...]"02:42
jerbear left02:43
agib old version of git or something?02:43
Eridius|work agib: sounds like it doesn't like -q.02:43
which would imply old version of git02:44
agib 1.5.3.7...02:44
ahh...02:44
gotta upgrade02:44
Eridius|work -q was in 1.5.402:44
agib ahh that explains it02:44
thank you02:44
what's the latest recommend version now?02:45
Eridius|work is 1.5.6 out yet?02:45
if not, then 1.5.5.402:45
no, looks like we're on 1.5.6 rc 302:46
agib 1.5.5.4 it seems from gitorcz -- lol sorry for all the questions02:46
how do get git with git? git clone git://git.kernel.org/pub/scm/git/git.git, check out the desired tag, then install as usual?02:50
ezyang agib: That should be sufficient, yes02:52
Eridius|work agib: as long as you're doing it that way, you may as well install HEAD02:53
Eridius|work sits on next02:53
agib HEAD?02:53
digitalhobbit joined02:53
agib are you saying that's overkill what I'm doing?02:53
:)02:53
Eridius|work I'm saying why bother checking out a tag when you could just install the tip of master02:53
master is pretty darn stable02:53
next is also pretty stable, but not quite as stable as master02:54
agib ah02:54
ok02:54
jordi_bunster left02:55
agib thank you02:58
Eridius|work left03:02
agib arg... make configure gives me /bin/sh: autoconf: not found on my ubuntu server...03:03
any thoughts?03:03
zawir left03:03
ezyang sudo apt-get install autoconf03:03
warthog9 left03:04
Geck1 joined03:04
ketralnis left03:04
agib ezyang: I wonder how I got around that before... maybe older versions of git didn't require?03:05
ezyang agib: Well, maybe you're trying to run ./configure when you don't need to03:05
there's already a Makefile...03:05
imyousuf joined03:06
agib which git tells me I installed it in /usr/local/bin... so I figure I must have done some configure at some point03:07
rtomayko left03:07
erh__ left03:07
ezyang agib: there's a Makefile in the repos03:08
git's funny like that :-)03:08
agib :)03:09
Geck1 left03:13
stouset|awaystouset03:15
vbabiy left03:19
ph^ left03:20
Eredicat1rX joined03:21
ph^ joined03:23
pombreda joined03:26
stousetstouset|away03:30
digm joined03:34
digm When trying to clone my remote repository, I keep getting an errors. "git pack has bad object" and "fatal: index-pack failed". Anyone know what I can do to fix this?03:35
ezyang digm: git fsck?03:36
digm ezyang: I was looking at that, but I'm sorta new and wasn't quite sure what parameters to use with that.03:36
aeruder digm: i'd just go to your remote repo and do a git fsck --full03:37
ezyang just run it and see what happens03:37
digm aeruder: Getting an error like this "error: Packfile ./objects/pack/pack-9a91240fffee73d4cbb2d01d215473e43defecc9.pack SHA1 mismatch with itself03:37
error: 094c382bd7fa8eaec98aea799cae9717f5d1f727: object corrupt or missing"03:37
aeruder that's not good03:38
sounds like your repo is hosed03:38
digm aeruder: My local repository is fine, but i'd like to know how to fix the issue without having to redo the remote repo.03:38
is there a way?03:38
aeruder digm: not sure, although i'd be asking how it got that way03:38
i've seen corruption issues crop up on the mailing list from time to time, and they seem to pretty reliably not be git's fault03:39
digm aeruder: Not sure either :( Googling isn't that helpful.03:39
aeruder i.e. memtest failed or filesystem weirdnesses (especially nfs, etc.)03:39
digm aeruder: Eh, nothing special about my server. Just running ubuntu hardy, although I had a strange problem that when cloning, the cpu would lock while trying to do git-index-repack or some command like that.03:41
aeruder: Alright, redid repo, that took a whopping 10 seconds :D Any recommendations on backing up git repos? Scripts, tools, etc?03:42
aeruder digm: git clone usually serves well enough as a backup03:43
and keeping your other clones up to date03:43
but really, keep an eye out for other weirdnesses on your server03:43
digm will do, thanks for the pointers03:43
aeruder i'm not trying to say git doesn't mess up, but there are multiple cases on the mailing list where people have had things corrupted and it ended up being flaky hardware03:43
CodeOfficer left03:44
digm aeruder: In this case, it wouldn't surprise me. I have weirdness from time to time. I was hoping there was some way to recover this issue though, like deleting the pack file (whatever that is) and then repacking or something.03:44
ezyang aeruder: How would you automate checks for "weirdness"?03:46
aeruder digm: well, you might have been able to rm -f the pack in question and repush some commit to force it to update more objects, but i don't know if that'd work03:46
ezyang: usually? you download a memtest iso :)03:46
digm yeah, in this case it was just easier to redo the remote repo. Good thing i have multiple backups unlike with my svn setup.03:47
aeruder digm: yea, on a public repo, there could literally be thousands of full backups :)03:47
ezyang aeruder: Oh, I mean remotely. I actually don't have access to the server :-/03:47
aeruder ezyang: i'm just saying that by weirdnesses, i meant memory corruption, hard drive corruption, etc..03:48
ezyang oh, ok03:48
Hmm, while we're on the subject of backup03:48
spearce joined03:48
aeruder if other programs are randomly shutting down03:48
etc..03:49
ezyang How do you make sure you git clone all your git repos to somewhere safe?03:49
I've been using git for everything, so I use git init willy nilly03:49
and some times I forget I have git repos lying around03:49
so I'm mortally terrified one day my hd will fail, and I'll lose all my repos03:50
aeruder i don't know, i backup my entire Project/ hierarchy everynight incrementally, so that works outside the realm of git..03:50
ezyang aeruder: good old fashioned rsync, or what?03:50
aeruder rdiff-backup03:50
ezyang will definitely look into that03:50
aeruder yea, i'd recommend it, not too bad to get going, you can grab files from old days (i.e. i want this file 12 days ago)03:51
and the latest backup is available just as normal files03:51
a little trickier to get to the old ones03:51
yea, i've lost repos before due to lack of backups, and it sucks, entire cvs histories of some of my projects are gone, and i had to start over with the latest tarball03:52
spearce harrrg. github just sent camino off the deep end with a long running script03:52
aeruder i'm thinking i'm going to go back to firefox (from camino)03:53
spearce i generally like camino, but this github script choked on something in a jgit fork i was poking around at03:54
ezyang aeruder: well, on the plus side, most people never look at the history :-/ losing history sucks though03:54
mbuf joined03:55
Leefmc left03:59
stouset|awaystouset04:00
spearce curses people who fork a git repository without taking the git history, and then publish it on github anyway.04:01
digm aeruder: So i'm trying rdiff-backup now. Question though. Let's say I backup for 20 days. And I run the --remove-older-than 10 days switch, but have made tons of changes over those 20 days. Will that remove changes that put the .git repository out of sync at all?04:03
ciaran joined04:03
louipc left04:03
ezyang g'night all04:06
ezyang left04:06
jerbear joined04:07
jerbear i ran a git-gc, and now refs/heads/master is gone... what do i do?04:08
possibly a better question is.. what did i do wrong?04:08
hello?04:10
tjafk1 joined04:11
kukks left04:12
stousetstouset|away04:15
jerbear i ran a git-gc, and now refs/heads/master is gone... what do i do?04:16
jerbear left04:17
CodeOfficer joined04:18
digm left04:20
mbuf left04:23
tjafk left04:27
priidu joined04:29
mbuf joined04:47
madewokherd left04:49
capisce joined04:54
Ariella left04:57
ketralnis joined04:58
capisce_ left05:08
Tsaghen joined05:09
garrin joined05:18
spearce` joined05:19
spearce left05:19
ketralnis_ joined05:23
ketralnis left05:24
igorgue left05:24
cedricv joined05:27
Ariella joined05:30
nud joined05:37
fhobia joined05:42
lea_w How come I have two packs in my .git/objects/packs dir after running git-repack -a -d?05:46
bobesponja left05:47
lea_w One of them has a .keep a file, the other one doesn't.05:48
spearce` probably from when you cloned; the .keep file was created by git-clone.05:48
if the pack is under 200M i'd delete the .keep file and repack -a -d again to consolidate the two05:49
lea_w so why is it being kept?05:49
spearce` because git-clone though tit should always keep the first pack you get from the project.05:49
lea_w iow why are they not always consolidated?05:49
spearce` that rule works for _huge_ projects like say all of Mozilla or KDE.05:49
but its less useful for smaller projects like linux-2.6 or git.git05:49
lea_w hm. what's the advantage of that? *mildly-confused*05:50
spearce` well, some of the really big projects can be upwards of 1.5 GB in that initial pack file.05:50
copying that data over to a new pack file every time you repack can take a while.05:50
disks are not that fast. :)05:50
lea_w oh, that makes sense.05:51
well, thanks!05:51
spearce` but smaller projects under 300M or so can be repacked pretty quickly into a single pack on most systems. so its generally better to have just one pack with everything in it, and thus the .keep is actually counter-productive05:52
Sake left05:54
anathematic joined05:56
kewark joined05:58
kewark left05:58
Ramune joined06:03
ketralnis_ketralnis06:05
krawek left06:12
ketralnis left06:15
csc` left06:17
deavid joined06:17
charon joined06:25
spearce` left06:27
ketralnis joined06:29
digitalhobbit left06:36
bentob0x joined06:36
Bombe Is there a way to disable the pager for the output of only certain commands?06:38
reel_ joined06:38
capisce_ joined06:41
capisce left06:43
nud left06:44
pygi left06:46
robinr joined06:47
ciaran left06:51
warthog9 joined06:51
naeu joined06:51
naeu left06:54
CodeOfficer left07:00
CodeOfficer joined07:00
progress0r joined07:00
progress0r if i have created a branch locally and commit then push to a github repo, will it be kept seperate (as a branch) or auto merge with master?07:01
ajonat left07:06
aeruder a push does nothing more than upload your current commit objects/update remote refs07:08
no new commits can or will be created during a push07:08
so if it looks right on your side, and you push it successfully, it will look the same there07:08
naeu joined07:08
robinr left07:09
ThunderChicken left07:09
progress0r aeruder: thanks - thats what i wanted, keep it seperate07:10
lirit joined07:11
lirit does git support ssh1 or ssh2?07:12
aeruder lirit: git uses the system ssh07:13
lirit aeruder: thanks07:13
aeruder lirit: i.e. it actually calls out to the ssh executable07:14
lirit got it.07:15
ph^_ joined07:16
nud joined07:19
naeu left07:20
CodeOfficer left07:21
ThunderChicken joined07:25
imyousuf left07:32
imyousuf joined07:34
ajonat joined07:34
ketralnis left07:36
Ademan left07:36
JonathanT joined07:36
ajonat left07:37
ajonat joined07:38
lirit left07:38
jmspeex left07:45
imyousuf left07:47
imyousuf joined07:52
Fullmoon joined07:53
Ademan joined07:55
dwmw2_gonedwmw207:58
naeu joined07:58
lu_zero left08:01
tenpaiyomi left08:02
Fullmoon left08:03
_zack joined08:05
radarek joined08:09
dmq if I have a file's sha1 can i find all the commits that it was part of? i thought git-show would do this, but it doesnt.08:13
Fullmoon joined08:14
ThunderChicken left08:14
dmq or it appears it doesnt do it anyway08:14
ThunderChicken joined08:14
Tv dmq: only by walking through every tree of every commit08:15
dmq ah, actually the problem was that git doesnt use sha1sum to calculate the SHA1 of the file, and thus has a different digest.08:17
Tv it's the sha of the compressed version of the file, as an optimization08:17
plus many objects have headers08:17
Bombe Is there a way to disable the pager for the output of only certain commands?08:17
mnemoc PAGER=cat git-foo .... should work08:18
dmq the question i am trying to address is that someone wants to know "how can they find out the 'version' of a uncontrolled copy of a file that is ultimately controlled by git"08:19
Arjen I remember seeing a script for that on the wiki, trying to find it again08:19
mcella joined08:20
Tv dmq: your problem is that "uncontrolled copy"08:21
dmq this stems from the issue that RCS tags like $Revision$ dont make a lot of sense in a distributed environment. so the question comes up "well then how else do you identify a file"08:21
paulproteus joined08:21
dmq yes I know.08:21
redondos joined08:21
_zack left08:21
Pieter dmq: git hash-object gives you the sha08:21
Tv dmq: i'd suggest you embed git describe output in the tarball/file when exporting08:21
paulproteus Is there a way to explicitly ask git-filter-branch to filter every revision?08:21
dmq *I* get the idea that you Just Shouldnt Have Uncontolled Copies, but my colleagues who are all too used to CVS dont.08:21
_zack joined08:22
Tv Pieter: but even then, the answer would be a multiple commits08:22
Pieter yes08:22
paulproteus Oh, hi Tv (-:08:22
dmq yes i got it.08:22
Tv paulproteus: hi. what do you mean every revision?08:22
Arjen dmq: http://git.or.cz/gitwiki/ExampleScripts (second script)08:22
Tv paulproteus: --all?08:22
dmq sorry, yes i figured out git-hash-object. and im happy to see every commit its part of.08:22
Tv dmq: and then they modify it a bit and you get nothing out08:23
paulproteus Tv, That's not listed in the man page, fwiw..08:23
Tv paulproteus: "<rev-list options>"08:23
Arjen Hm, that script does too much, I think08:23
paulproteus Yes, I was about to say I don't know what sort of stuff one is allowed to jam in there. (-:08:23
Tv paulproteus: i have no clue if it works08:23
paulproteus I'll tell you in a sec!08:23
Tv, No, it spits back "Usage:" of git-filter-branch.08:24
Tv paulproteus: yeah i sort of expected that08:25
paulproteus: as it needs refs to update, and rev-list usually outputs commit shas08:25
paakku left08:25
Pieter git filter-branch `git-for-each-ref` :P08:25
Tv paulproteus: i mean, for-each-ref will list ass of them08:25
Pieter wouldn't do anything like that though08:25
paulproteus lol! Why not?08:25
Tv paulproteus: i don't know if filter-branch is smart enough to not screw up the parent relations08:25
paulproteus It discusses in its man page how it has tried to be smart about parent relationships.08:26
That discussion only applies to when you remove commits. I'm "just" modifying the trees.08:26
Tv which changes parent pointers08:26
i don't see any example updating any ref except via HEAD08:27
paulproteus Modifying the trees without removing commits shouldn't change parent pointers, and that's all I'm trying to do.08:27
Tv which is slightly discouraging08:27
oh sure it does08:27
modifying the tree changes the commit sha, so anything pointing to old commit needs to be adjusted to point to new commit08:27
paulproteus Sure, okay.08:27
I'm vaguely under the impression it should handle that properly.08:27
It handles linear history properly, at least, changing parents to the new, filtered version.08:28
Fullmoon left08:28
Tv # The refs should be updated if their heads were rewritten08:28
git rev-parse --no-flags --revs-only --symbolic-full-name --default HEAD "$@" |08:28
sed -e '/^^/d' >"$tempdir"/heads08:28
hmmmm08:28
Fullmoon joined08:29
Tv i think that makes `git for-each-ref` safe08:29
statim if anyone has a second, i wrote up some basic instructions for one of the developers im working with on how to use git. since im also really new to git if anyone has comments on what im telling him that would be great. http://pastie.org/private/ho2tiswwhvfnsrytuxgew08:29
mbuf left08:30
Fullmoon left08:30
paulproteus Tv, Passing in $(git-for-each-ref) as the list of refs causes git-filter-branch to tell me back, "Which ref do you want to rewrite?"08:31
Oh, I see it just passes that to git-rev-list.08:32
Tv paulproteus: oh probably something about output format08:32
paulproteus Hah! That's why you guessed --all.08:32
Tv for-each-ref --format='%(refname)'08:32
pdherbemont left08:33
paulproteus And so it churns.08:33
sverrej left08:36
Bombe mnemoc, I meant more as a config option, so that git-status is never shown with a pager but git-diff is.08:37
mnemoc Bombe: no clue08:38
capisce joined08:39
munga joined08:40
fhobia left08:45
reel_ left08:47
reel_ joined08:47
bartocc hi08:52
I have a local branch that mirrors a branch on github08:52
I've made changes and would like to push them to github branch08:53
git push does nothing08:53
what am I missing ?08:53
Arjen Have you committed the changes?08:53
context ive said it before and ill say it again08:53
capisce_ left08:53
context man i love bein a turtle08:53
bartocc Arjen: on my local branch, yeah08:53
I've also pulled from origin, to make sure I am up to date08:54
git push => Everything up-to-date08:54
but08:54
git diff mb origin/mont_blanc => show me the differences08:54
mithro left08:55
Tv context: but are you a ninja, err i mean a *hero* turtle?08:57
bartocc: different branch names -> git doesn't know what's supposed to be pushed where08:57
bartocc: git push origin mb:mont_blanc08:57
cedricv left08:58
bartocc Tv: that worked, thx08:59
but I don't get it08:59
I have this in my .git/config08:59
[branch "mb"]08:59
remote = origin08:59
merge = refs/heads/mont_blanc08:59
should't git be able to figure that for me ?09:00
Tv bartocc: that's one-way09:00
Bombe Hmm. I unset core.pager everywhere but git-status is still shown in /usr/bin/less?!09:00
Pieter Bombe: that's the default09:01
set the pager on cat or so09:01
Bombe Unsetting PAGER does the trick.09:01
Hmm. That's not optimal, though.09:01
Pieter cat is a special keyword that means 'don't page'09:01
Bombe Actually, cat is a binary that simply writes stdin to stdout. :)09:02
Pieter yeah09:02
I'm takling about git's pager thin09:02
g09:02
it has cat as a name to turn paging off09:02
similar to 'none' or so09:02
Bombe Small optimizations. :)09:02
Tv git config --global core.pager 'cat|cat|cat|cat'09:03
Bombe And the "useless use of cat award" goes to: Tv! \o/09:04
charon i prefer 'tac|tac'09:07
Pieter especially with streams09:07
Bombe :)09:07
ebel joined09:09
sverrej joined09:09
mtkd left09:14
pygi joined09:16
WildPikachu left09:17
_zack left09:18
_zack joined09:19
Tv btw nice screenshot titled "SVN is hard": http://www.flickr.com/photos/davidreid/2588038044/09:32
mnemoc ROTFL09:33
das-q left09:34
progress0r ugh i just had a network fail pushing my local branch and now git status says nothing to commit.09:37
looking at github i see nothing came through09:38
wait do i need to remote add my local branch to github? i didnt do that09:38
progress0r left09:40
Tv well that was useful09:40
petteri left09:45
janm joined09:46
petteri joined09:47
rofrol joined09:53
chris2 joined09:56
mbuf joined10:00
lea_w left10:02
petteri left10:05
petteri joined10:07
ijcd____ joined10:14
visik7 joined10:22
visik7 hi10:22
is it possible to use git.kernel.org over http ?10:22
lea_w joined10:23
ijcd left10:25
Fullmoon joined10:25
mithro joined10:26
zorglu__ joined10:33
zorglu__ q. when launching qgit, i always get a popup window "range select" and i always choose the default. is it possible to avoid this popup all the time ?10:35
ŝorry im a morron. just found it. it is a radio on the bottom of the popup10:36
moving along with shame in the heart10:37
zorglu__ left10:37
Xyri0 joined10:43
lu_zero joined10:47
Xyrio left10:54
Xyri0Xyrio10:54
EmilMedve left10:55
mtkd joined10:58
ruphy left10:59
petteri left10:59
petteri joined11:00
adante joined11:03
MarcWeber left11:07
anathematic left11:08
VitaRara joined11:08
imyousuf left11:09
pilif|awaypilif11:10
ruphy joined11:17
Ace_NoOne joined11:17
Ace_NoOne hi - I'm using git for working with an SVN repo - however, when creating patches the path isn't entirely compatible with the way SVN does this11:18
e.g. a/foo/bar instead of Trunk/foo/bar11:18
is there a workaround for this?11:18
Pieter I think everybody just uses patch -p1 in the trunk dir11:21
kanru left11:24
pilif Ace_NoOne: there's always sed if you need to hide the fact that you are using git when creating those patches. Aside of that, -p1 is probably needed in SVN too.11:25
Ace_NoOne I'll just have to tell our team to use -p1 then - thanks11:26
mithro left11:28
mnemoc Ace_NoOne: you can also `sed` the patches converting the a/ to ./11:28
Ace_NoOne mnemoc: yeah, but having to remember that would be a hassle11:29
pilif well... either you remember to sed or your *team* remembers to -p1 - your choice :p11:30
mnemoc :)11:30
kanru joined11:30
pilif also, you could always create a shell function that automatically does the sed for you11:31
Ace_NoOne I know, but I can't be bothered - using p1 is simpler11:31
pilif for you - but not necessarily for your team11:32
Pieter who cares :)11:32
pilif if you want to convert them to git in the long term, it's probably better to to everything possible now to show them that they won't have to worry about git - even if it's just one team member using it11:32
broonie GNU patch often manages to figure this out anyway...11:33
pilif heck - I'm even leading a team here and I'm doing everything I can to make those stuck with svn not notice me using git.11:33
broonie Also note that half the reason git uses the format it does is that it's always been the standard diff format in the community anyway.11:33
pilif yepp. and it's IMHO very clear on what it's diffing. I MUCH prefer the git diffs11:33
icwiener joined11:40
csc` joined11:44
SuttoL joined11:45
ska-fan_ Hi. I did git fetch and now I need to move my master marker to the origin master commit - how do I do that?11:45
Kbyte joined11:45
mnemoc ska-fan_: rebase11:46
ska-fan_ thanks11:49
deavid left11:54
git joined11:57
_zack MadCoder: you are using vim/git plugin on debian, aren't you? by default when I commit vim split a buffer with the diff *vertically*11:57
MadCoder: do you know if it is possible to have it split horizontally>11:57
?11:57
madewokherd joined11:59
chris2 left12:03
Sho_ left12:04
Sho_ joined12:04
doener_ _zack: the header in mine says that you should set g:git_diff_spawn_mode12:05
_zack doener_: uhm, let me see, I've probably overlooked it :)12:06
doener_: which .vim file are you looking at?12:06
I've looked at ftplugin/{gitcommit,git}.vim and I don't see any useful header12:07
mislav joined12:07
doener_ git.vim12:07
_zack: which version are you using? mine's dated 26 Nov 200712:07
_zack git.vim where? ftplugin/git.vim?12:08
doener_ yep12:08
_zack mine is 2008 Feb 2712:08
doener_ hm, weird, I'd expect newer ones to have more info, not less12:08
_zack i'll grep for spawn_mode12:08
nothing indeed12:09
bah12:09
sbeyer joined12:09
kanru left12:10
doener_ _zack: hm, on vim.org, it's called git-commit, so maybe it ftplugin/gitcommit.vim for you. I got it via debian's vim-plugins package12:11
_zack doener_: same here in fact12:11
debian/unstable12:11
doener_ hm, me too12:11
why do you have a different file then?!12:11
_zack and I guess you mean vim-scripts12:12
doener_ yeah, probably12:12
_zack $ sha1sum /usr/share/vim/vimcurrent/ftplugin/gitcommit.vim12:12
c3f8be57a0eb29e4bf52452c56f3fc56a8d8d491 /usr/share/vim/vimcurrent/ftplugin/gitcommit.vim12:12
lorandi joined12:13
_zack vim-scripts version 7.1.712:13
doener_ that's not from vim-scripts, that's from vim itself12:13
_zack ah12:13
right12:13
so I'm looking at the wrong file for the header12:14
doener_ and it's not authored by madcoder, so that explains the confusion :-)12:14
dato _zack: if you open a vim and run ":pedit /", is the new window horizontal or vertical?12:15
_zack: and if you open vim with vim -U NONE -u NONE and do the same, is it now horizontal?12:16
_zack: and hi, btw :)12:17
_zack dato: that's exactly what puzzles me, I've tried pedit and by default it does that horizontally, so I don't get yet why pedit inside git support does that vertically12:17
dato: hi :)12:17
dato: the following wincmd do not seem to change window orientation either ...12:18
dato wincmd P wouldn't change the orientation..12:18
_zack dato: indeed12:18
dato do you run DiffGitCmd by hand?12:19
_zack dato: you using it? you got the vertical split too?12:19
dato er, DiffGitCached12:19
_zack dato: nope, just do "git commit" from the shell12:19
jettero I like that graph that git pull shows when it does the merge... is there a way to show it other than when you pull?12:19
dato I use it, and it gets opened horzontally12:20
_zack: hm, and what's opening it? afaik, vim-git does not call DiffGitCached automatically12:20
is it possibly you have two sets of git stuff installed?12:20
Pieter what graph?12:21
_zack dato: interesting idea, it is possible, let me check12:21
kanru joined12:21
_zack dato: yup, it was the git-commit plugin12:21
dato: so, how do you obtain the splitted window then? do you invoke DiffGitCached by hand?12:22
dato I have this:12:22
au FileType gitcommit setlocal et sw=2 pvh=30 | DiffGitCached | wincmd r | wincmd k12:22
_zack dato: uhm, should probably be added to vim's global configuration then ...12:23
dato well, I don't think everybody wants a diff window automatically opened12:23
_zack dato: then it should be configured via a variable, having to add an autocommand by hand is basically defeating the usefulness of filetypeplugins :)12:25
dato _zack: to that I can agree12:25
dato points to tpope12:25
Fullmoon left12:25
kukks joined12:26
_zack tpope: by the way, the default splitting imo should be horizontal, has it is rare to have terminals/consoles large enough to hold 160 characters12:27
dato _zack: mm, I thought we just agreed that it is?12:27
Bombe ~/workspace/limiter# echo $COLUMNS12:28
23712:28
_zack dato: I haven't tried, but if it is why in your autocmd you have wincmd k12:28
ah, no, my fault12:28
I misread "k" for "K"12:28
dato ah :)12:28
_zack I was thinking you were moving the window around12:29
dato I'm swapping the diff window to be at the bottom, and not focused12:29
msh joined12:29
msh Hi!12:29
I just did a commit12:29
how can I revert that12:29
_zack msh: revert or improve?12:30
you can git commit --amend to fix it12:30
or you can add a new commit "undoing" the last one with git revert12:30
lnostdal left12:30
msh basically i did a commit but that has to be totally not there12:30
possible?12:30
_zack or you can git reset --hard HEAD^12:30
stouset|awaystouset12:30
_zack which is what implements your last request :)12:30
aeruder msh: that command _zack just said will wipe all local modifications too, so be careful12:31
_zack big fat warning: I'm assuming the commit you want to thread away is the last one12:31
deavid joined12:31
msh yes its the last one12:31
actually, I did not do an add before doing a commit12:31
I mean not added all the files12:32
_zack msh: you will loose the not added changes12:32
ecelliottcable12:32
aeruder msh: you may be better off just doing git reset HEAD^12:32
(without the --hard)12:32
that'll leave the working directory as it is, and undo the last commit12:32
if there are files you want to reset the changes in, then you can just do git checkout -- <file>12:33
msh as far as the documents say, git reset HEAD will unstage the files12:33
stouset_ joined12:33
aeruder msh: yes, but you want to reset the last commit too12:33
so git reset HEAD^12:34
ska-fan_ Is there a command that has output similar to what gitk shows, but for the console?12:35
stouset_ left12:35
ska-fan_ with ASCII art12:35
stouset_ joined12:35
stouset_ left12:35
Bombe ska-fan_, git-forest.12:35
stouset_ joined12:35
Mikachu git log --graph in 1.5.612:36
_zack msh: HEAD^ is the (first) parent of the HEAD commit (i.e. the last commit)12:36
ska-fan_ debian seems to have neither, ok, thanks12:36
stouset left12:36
stouset_stouset12:36
Bombe ska-fan_, Google does. :)12:36
aeruder tig can too12:36
stouset left12:36
stouset_ joined12:37
stouset_ left12:37
stouset joined12:37
Mr_Mirsal left12:38
Mikachu maybe you can run some sort of SDL X server under aalib12:39
vmiklos haha12:40
lorandi left12:43
Ryback_ joined12:43
chrisb joined12:44
spearce joined12:46
noodl joined12:48
noodl hi. i've just made a commit on master but want to switch that commit over to a new branch and continue on master from the previous commit (HEAD^). how is that done? git branch new-feature HEAD^ would create the branch but master would still have this commit i don't want..12:50
vmiklos git checkout -b new-feature12:51
dato rather:12:51
vmiklos git checkout master; git reset --hard HEAD^12:51
Mikachu in this case i think checkout -b is a roundabout12:51
just do git branch new-feature; git reset --hard HEAD^12:51
vmiklos ah yes, you can use git branch directly instead of git checkout -b and then you need only one checkout12:51
Mikachu assuming you're on master already12:52
d0k joined12:52
noodl bah, irssi having trouble drawing this channel12:52
Fullmoon joined12:52
noodl thanks Mikachu that's the ticket12:53
Mikachu you _can_ do git checkout -b newbranch; git push . +HEAD^:master , but it's a bit ugly12:55
gitte joined12:58
zawir joined12:59
redondos Mikachu: can you help me parse that last argument?12:59
Mikachu redondos: the + means the same as -f12:59
redondos ahh13:00
yes, found it in git-push(1)13:00
thanks13:00
snowblink joined13:02
spearce left13:02
MarcWeber joined13:03
MarcWeber When using git-svn is there a way to get the git-svn hash by revision after importing ?13:04
redondos git-svn find-rev13:05
MarcWeber Ah thanks. I haven't seen it.13:05
capisce_ joined13:07
git left13:10
MarcWeber Strange did not work with that repo. With another it did13:10
lorandi joined13:11
redondos MarcWeber: you have to specify an existing revision in that branch13:11
MarcWeber Ah this means I'm at the wrong branch?13:11
redondos probably.13:12
MarcWeber Unfortunate.. So I need a for `git-branch -a`; do .. or such ok.13:12
Anyway it's fun on a 400MB repo13:14
lea_w1 joined13:15
lea_w left13:15
lea_w1lea_w13:15
MarcWeber Is there a git-checkout --soft without touching the work dir?13:16
Mikachu git read-tree13:16
+ git reset i guess, if you want both the index and HEAD to move13:17
(reset --soft obviously)13:17
redondos he just wants the HEAD to move13:17
MarcWeber Propably the right way to go is grepping the svn repo from .git/config and ask that for the right branch :-)13:18
Mikachu then just reset --soft13:18
redondos yes13:18
MarcWeber boy. Obviously. I can pass any hash.. not only HEAD^^13:18
I should have know that already13:18
redondos or branch names13:18
stouset left13:20
stouset joined13:20
lnostdal joined13:21
queso joined13:21
capisce left13:22
capisce joined13:23
Fullmoon left13:25
ast3 joined13:26
comp_comp13:26
stouset left13:27
weswh- left13:28
VitaRara left13:29
vbabiy joined13:32
capisce_ left13:35
pflanze joined13:36
Beket joined13:38
SRabbelier left13:39
SRabbelier1 joined13:40
SRabbelier1SRabbelier13:40
peeja left13:40
SRabbelier left13:41
SRabbelier1 joined13:42
SRabbelier1SRabbelier13:42
mcgrof is there a way to somehow to cheat git to think it doesn't have a few files?13:42
redondos .gitignore?13:43
mcgrof hehe...13:43
Pieter update-index --assume-unchanged13:43
oh13:43
nevermind13:43
mcgrof basically I ran into an issue with git-p413:43
and p4 no longer has the files, and git does though13:44
cedricv joined13:44
mcgrof now I have people who pull from me though so they still have the files too13:44
git-p4 works by keeeping a remotes in p4/master in sync with the depot stuff13:45
oh I think I got it...13:45
hmm13:45
lets see13:45
ast3 left13:50
mcgrof nope..13:50
oh well, ne wtree13:53
s/ne/new13:53
stouset joined13:54
Sho_ left13:59
ckknight left14:00
peeja joined14:00
fafhrd left14:02
charon left14:02
ph^_ left14:04
charon joined14:05
mahoski left14:08
ckknight joined14:09
telmich wonders why so many people like the rebase idea... for me it just breaks the history14:10
SRabbelier left14:10
SRabbelier1 joined14:10
mislav telmich: for your personal development it often makes a lot of sense14:10
SRabbelier1SRabbelier14:11
telmich mislav: must confess I never use rebase, only with svn, but that's another story14:11
doener_ hm, you get your commits perfect on the first try? Then there's no need for rebase -i14:12
but I really love it for bringing a series of commits into shape before sending them out for review14:12
telmich yep, I almost always do git-status; git-diff; git-commmit14:13
-%14:13
-m14:13
mcgrof if people can just follow the rules to commit...14:13
I mean to rebase14:13
SRabbelier left14:13
SRabbelier1 joined14:13
telmich the big problem I see is that I am forced todo git-push -f which may overwrite other commits14:13
SRabbelier1SRabbelier14:14
doener_ telmich: well, you're not supposed to rebase after you published the commits14:14
comp telmich: well ... if you want to make several commits to "mainline" from your devel branch (squach 120 commits into 8 for example) then rebase it's better idea than git-diff and git-apply ...14:14
doener_ (unless you're on a branch that is known to be rebased, like git.git's origin/pu)14:14
pflanze left14:15
mcgrof yeah in those cases we use +branch for the push and it works fine it seems14:15
comp I personally use rebase as some sort of push preparation ...14:15
fafhrd joined14:15
telmich comp: ok, that maybe a reason I did not see, as I mainly receive, not send patches14:15
fafhrd left14:16
SRabbelier left14:16
fafhrd joined14:16
SRabbelier1 joined14:17
SRabbelier1SRabbelier14:17
lea_w left14:21
Mr_Mirsal joined14:23
SRabbelier left14:24
SRabbelier1 joined14:24
SRabbelier1SRabbelier14:25
tpope _zack: pong14:25
omygawshkenas joined14:25
peeja left14:25
tpope fwiw, I think having a bunch of configuration options that could easily be replaced with a simple autocmd is superfluous14:26
Jeraimee|Wrk joined14:28
Jeraimee|Wrk left14:30
powerfox joined14:31
powerfox Hello! What is the best way to know if the current dir in Git?14:32
lea_w joined14:32
lorandi left14:32
powerfox ajonat: .git, b_dir. I'm in b_dir, how can I understand b_dir is g«itted»14:32
?14:32
jast run any command that requires being in a git directory (e.g. git status). it will error out if you're not in a repo.14:33
powerfox jast: and better ways? I need to do it from C++ application, and doing if (task-exec() ) is not pretty14:35
mnemoc powerfox: hardcoding fragile git logic in your code is less pretty14:36
jast well, you can always check if certain things in $foo/.git exist, but it will be difficult to detect corner cases the same way git does14:37
tenpaiyomi joined14:38
powerfox mnemoc: maybe you're right14:38
tenpaiyomi left14:38
ketralnis joined14:38
ketralnis left14:38
ketralnis joined14:38
powerfox jast: after repo was created some dirs/files may be added, so the project's root can't help14:39
jast what do you mean?14:39
the structure of .git doesn't change much14:39
omygawshkenas 'morning #git14:41
garrin left14:45
rofrol left14:46
mnemoc powerfox: btw, git-rev-parse --is-inside-git-dir is what you want to exec() to know if you are in a git tree14:46
blowery`afkblowery14:47
redinger joined14:47
mnemoc err --is-inside-work-tree14:48
powerfox mnemoc: thanks. I think I will use it. But it has one problem: git init &&... mkdir foo && cd foo && git-rev-parse --is-inside-work-tree gives true14:50
mnemoc sure14:50
bremner powerfox: why is that a problem14:51
ciaran29d why is that unexpected :/14:51
powerfox mnemoc: but I think this would be enough :) Thanks a lot. bremner: I have to know if the dir was added to the git repo14:51
SuttoL left14:52
powerfox In some cases it can be a git subproject14:52
omygawshkenas When dealing with conflicts while trying to "git rebase" against a git master of an svn trunk (whew), what's the deal with the .dotest directory mucking things up?14:52
Ilari powerfox: IIRC, you can query if there are files with given path prefix using ls-files...14:52
omygawshkenas I resolve the conflict with git mergetool, and try to "git rebase --continue", but it throws a buncha:14:53
error: .dotest/0016: already exists in working directory14:53
error: Untracked working tree file '.dotest/0008' would be overwritten by merge.14:53
Are you supposed to do something to .dotest after fixing conflicts?14:53
powerfox Ilari: thanks a lot. Didn't think about it.14:53
mnemoc powerfox: if it's a git subproject it will be a git work-tree anyway14:53
Ilari omygawshkenas: You shouldn't have added those .dotest files...14:53
omygawshkenas I didn't14:54
powerfox mnemoc: yes :) I forgot that subproject contains .git too as I remember :)14:54
Thanks to all for help :)14:54
I have a big plan to finish some code and make sexy screenshots :)14:55
mnemoc :)14:55
omygawshkenas llari: oh shit, from before...14:55
If I know the commit where I mistakenly put them in, is it possible to go back and remove that commit from the history?14:57
sverrej left14:57
Ilari omygawshkenas: Since it is dcommitted to SVN, nope...14:58
aroben joined14:58
Ilari omygawshkenas: Probably abort the rebase (rebase --abort), create new branch starting from trunk, delete those files commit, dcommit and then retry the rebase?14:59
bdiego joined15:02
bloweryblowery`afk15:06
EmilMedve joined15:06
blowery`afkblowery15:06
omygawshkenas Nope, it hasn't been dcommitted to svn yet.15:06
etnt left15:06
omygawshkenas The mistaken .dotest files are in the git feature branch.15:06
Thank god.15:06
rdavila joined15:06
rdavila left15:07
mbuf left15:07
Ilari omygawshkenas: Then it is possible to remove it using interactive rebase (mark the commit in question to be edited).15:07
omygawshkenas Can I just git revert sha_of_bad_commit ?15:08
Ilari omygawshkenas: For finding it, 'git log -- .dotest' might be useful.15:08
msh left15:08
Ilari omygawshkenas: If it is just in feature branch, then editing it away would be better solution.15:08
visik7 left15:09
omygawshkenas Thanks. I'll give it a shot.15:10
jpeeler joined15:11
hobbes006 joined15:11
ketralnis left15:11
hobbes006 hi guys: quick question. how do i go about creating a gitignore file and tell git to ignore specific .pyc and .mo files? i found this page (http://download.ikaaro.org/doc/packaging/sect0004.html) but it isnt very descriptive. could someone point me in the right direction? thks.15:12
krawek joined15:13
Ilari hobbes006: Basically, .gitignore contains shell glob patterns, one per line of files to ignore. If no '/' is present, then it is appiled to all directories below the directory .gitignore is in, otherwise only to that directory.15:13
hobbes006: See gitignore(5).15:14
hobbes006 so i should write *.pyc/15:14
from my project root directory ?15:14
Ilari hobbes006: If you want to ignore all .pyc-files that would be '*.pyc'.15:15
hobbes006: And file would go to project root dir.15:15
hobbes006 got it. thanks for the tip :)15:15
just needed clarification.15:15
mcella left15:17
Ilari hobbes006: I don't quickly recall any use for trailing '/' in gitignore patterns...15:17
hobbes006: '/*.foo' could actually be useful (only ignore foos in current directory, not subdirectories)...15:18
hobbes006 ah. ok. makes sense.15:18
thank you Ilari.15:19
Mr_Mirsal left15:19
bobesponja_ joined15:20
MarcWeber left15:21
bobesponja_ left15:21
bobesponja joined15:22
l0verb0y joined15:24
digitalhobbit joined15:25
omygawshkenas illari: Thanks so much. The dotest files are gone.15:26
jengelh dotest is part of rebase.15:28
fhobia joined15:29
jast trailing slash, in recent versions of git, makes the pattern apply only to directories15:29
(this has been in the docs for much longer than it was actually supported, by the way)15:30
freelock joined15:35
superdump joined15:42
superdump hello15:42
CodeOfficer joined15:43
superdump i tried to push all commits on all branches to a remote15:44
i.e. git-push --all <remote name>15:44
now, i ha15:44
oops15:44
i had three branches in the tree15:44
jengelh --all also includes tags, does not it15:44
bloweryblowery`afk15:44
ketralnis joined15:45
superdump master, branched from the head of master i had channel_elements and branched from the head of that i had sbr15:45
i made a change to master, rebased channel_elements to the new head of master, then rebased sbr to the new head of channel_elements15:46
but when i ran the push it gave me this:15:46
! [rejected] channel_elements -> channel_elements (non-fast forward)15:46
! [rejected] sbr -> sbr (non-fast forward)15:46
jengelh go figure15:46
where was that link15:46
superdump why is that?15:46
jengelh http://eagain.net/articles/git-for-computer-scientists/15:47
because the new branch you are pushing does not have the old one as a parent15:48
superdump ok, so is there a good solution to this?15:49
i.e. a way i can push the tree with all such changes to the server15:51
superdump reads the linked page15:54
superdump from what you just said it sounds like i can't push these kinds of rebases15:55
in which case, how is one supposed to manage them when pushing to elsewhere?15:56
jengelh you can force push, but people which are pulling from your repo will get duplicate commits15:56
superdump are you supposed to duplicate your rebase operations at 'elsewhere'15:56
ok15:56
superdump waits for a mandatory star wars joke15:57
omygawshkenas left15:57
superdump pulling from the remote repo or my local one?15:57
jengelh remote15:57
superdump the duplicates being the old commits that were branched from the earlier commit on the master branch?15:58
priidu left15:58
jengelh try it15:58
pflanze joined15:59
superdump i suppose it takes two to duplicate :)15:59
arun joined15:59
jengelh you can act as two15:59
sverrej joined15:59
charon left16:00
VitaRara joined16:01
ijcd joined16:02
blowery`afkblowery16:02
Beket pasky, is it ok for one person to have > 1 project in repo.or.cz ?16:03
ijcd____ left16:03
pasky sure16:03
superdump jengelh: how would the duplicates be visible?16:03
EmilMedve left16:04
Beket pasky, thanks mate16:04
pombreda left16:04
jengelh gitk --all16:05
superdump: in every branch that branched from the original commits16:05
naeu left16:09
stouset left16:09
munga left16:12
nud left16:12
superdump i can live with that16:12
this tree won't be alive for all that long16:12
Kbyte left16:12
superdump thanks for your help jengelh16:12
cedricv left16:13
redondos left16:15
l0verb0y left16:17
p4tux joined16:17
ebel_ joined16:17
Alex_Gaynor joined16:18
timocratic joined16:19
Alex_Gaynor Hi, I have an existing git repo(hosted on github) that I would like to also make available via svn, so I'd like to host it on google code as well, how would I go about doing that16:19
ebel left16:20
ebel_ebel16:20
bloweryblowery`afk16:20
Ilari Alex_Gaynor: I say that is not a good idea. SVN can't represent nonlinear history.16:20
pasky is that still true for 1.5?16:20
jengelh Does Google use 1.5? (Probably not)16:21
pasky besides, it's about as good idea as git cvspserver ;)16:21
Alex_Gaynor 1,5 is still beta, isn't it?16:21
Mikachu pasky: i saw that the sort headers don't work on the fork pages on repo orcz, if you're bored and looking for somethnig to fix :)16:21
pasky I'm not but I might take a patch ;)16:22
Ilari Yes, it is still true in 1.5. It just tracks merges between linear branches (which is not the same as true nonlinear branches).16:23
Alex_Gaynor Any suggestions for how to make it available to SVN users then, the specific use case is they would like to use svn:externals on it16:23
Ilari Well, actually SVN doesn't even have first-class branches. :-)16:23
avar should [gc] auto = 0 \n packrefs = false \n autopacklimit = 0 in my .git/config be sufficient if I don't ever want packs created, I only want loose objects16:24
Ilari Alex_Gaynor: There is git2svn. But be warned that such SVN project is not allowed to have committers.16:25
jengelh only loose is inefficient over time16:25
alley_cat joined16:25
avar Yes, but this repository seems to work much better without packing stuff since there's no compression advantage16:26
ceez joined16:26
jengelh but reducing the number of files is an fs advantage nevertheless16:26
rubydiamond joined16:26
avar I'm not going to get enough files for this to be a problem16:26
pasky Ilari: what's the difference?16:27
Ilari pasky: The sidebranches are anonymous in Git. Good luck trying to represent that kind of thing in SVN...16:28
pasky /branch/auto-37F4B/ ;)16:30
rtomayko joined16:30
Tv have fun with octopus merges, too..16:30
Alex_Gaynor left16:30
Tv avar: btw you don't need packrefs, that's something else and mostly good for you16:31
loops left16:31
Mikachu do merges in svn 1.5 require you to keep the branches/foo branch around forever?16:31
pasky that's problem when converting to other vcses too... you just create virtual commits16:31
Mikachu (if you want to see the history of both sides of the merge)16:31
pasky (virtual isn't the right word, yeah)16:31
jengelh just leave it as git.16:31
Tv use that viewing-git-as-cvs thingie x.org wanted16:32
avar Tv: Thanks16:33
fhobia left16:33
avar Tv: I tried using git-unpack-objects to get stuff out of the pack yesterday and into individual objects but it wasn't working and I couldn't be arsed to figure out why, so I'm just rebuilding it and telling it not to pack stuff again:)16:34
Tv avar: I'd guess you missed "Objects that already exist in the repository will not be unpacked from the pack-file."16:35
superdump left16:35
Ilari avar: You have some special usecase like huge files in repo?16:35
Tv Ilari: exactly that16:36
avar I didn't, I just hoped it would magically work anyway and when it didn't I took the easy route:)16:36
redondos joined16:36
avar Ilari: Huge, uncompressable files:)16:36
Ilari avar: IIRC, there is patch that adds option to disable packing for files above configrable size...16:37
kanru left16:37
avar That might be nice since I actually have some metadata files which are XML and packable, but overall I'd just like to turn it off.16:37
Their total size is currently 4MB out of 23 GB so I don't see a reason to worry about it :)16:38
quesoqueso|away16:38
Ilari avar: How often new huge object appears in that repository?16:41
mtodd__ joined16:41
Tv Ilari: more like all blobs are huge16:42
avar Every few days, whenever I take new pictures16:42
Tv oh he has xml16:42
avar http://git.nix.is/?p=avar/cam;a=tree;h=f84ddc0ee10814be72786f49e913ef842985fbb7;hb=f84ddc0ee10814be72786f49e913ef842985fbb7 <- this is an older version of the repo16:42
each .cr2 file has a corresponding .ufraw file16:43
elliottcableec16:44
reel_ left16:44
Ilari avar: Have those megablobs somehow predictable filenames?16:45
blowery`afkblowery16:45
avar they're named img_$increasing_int.cr216:46
img_5000,cr2, img_5001.cr2, ...16:46
mrichman joined16:46
mrichman When I do a git push, how can I see it in the log?16:47
ketralnis left16:47
VVSiz joined16:47
VVSiz evening, guys16:47
jengelh mrichman: what would you "see"?16:47
Tv mrichman: log shows commits16:47
charon joined16:47
mrichman Tv: okay...so how do I see what was pushed and when?16:47
jengelh there might be a server-side reflog16:47
Tv mrichman: what you may want is git log origin/master16:47
mrichman: but most of the time, people just don't track what was pushed when; only what's current16:48
mrichman: you can also use the hooks server-side to gather any info you want16:48
Ilari avar: Maybe take latest version of git-repack.sh from git.git (at least the latest that didn't use --revs) and edit it to ignore those .cr2 files?16:48
mrichman git log origin/master matches git log, so i'm going to trust it means what it says ;)16:48
mtodd left16:48
Tv mrichman: means you have nothing extra in master to push16:49
ijcd left16:49
thannoy joined16:50
branstrom joined16:50
rtyler any way to specify the SSH user name to use on git pull, etc16:50
avar Ilari: Will I need to do that? I.e. is git-repack run automatically?16:51
bentob0x left16:51
Ilari avar: Well, if you disable autopacking, then you can run it manually.16:51
wolf^ left16:52
avar I've disabled autopacking, my strategy is to do that and refrain from running git-repack :)16:52
Ilari avar: Well, it could be good idea to name your version something like 'git-repack-nocr2'...16:52
Tv rtyler: in the url16:52
mtodd joined16:52
Ilari avar: Then 'git repack-nocr2' should become available.16:53
xkenneth joined16:53
xkenneth anyone have a link to a good "best practices" guide for tagging versions with git?16:53
sverrej_ joined16:54
lu_zero left16:54
VVSiz guys, is there a way to delete the braches in the remote repository, without having the file access to that repo?16:55
sverrej left16:55
VVSiz I have my repo on GitHub and managed to put lots of wrong branches in there16:55
Tv VVSiz: git push origin :branchname16:55
statim left16:55
pombreda joined16:55
Tv VVSiz: man git-push and looking for the word "delete" would have helped16:55
Ilari avar: Apparently latest usable version for editing is 62e27f273d66afa996cb7aee6cdb25fbedc053f6 (dated september 2006, but should still work)...16:56
s/is/is in/16:56
VVSiz Tv: ah, thanks! :) Who knew that in order to delete a branch I need to push! :)16:56
Tv VVSiz: it's the only over-the-network write operation you know of..16:57
avar Ilari: Do I need to? I'd rather have a setup that works on a stock git install and doesn't pack these files rarther than installing a custom version on every machine I use.16:57
VVSiz Tv: indeed, that simple enough. For some reason I was looking for some magic command to do that.16:57
Ilari avar: Doing fetch or push will pack those things for transfer...16:58
mrichman left16:58
avar damn16:58
mtodd__ left16:59
Ilari avar: The best could probably be to hack git to disable attempts to delta too large files...16:59
vineet joined16:59
wolf^ joined17:00
Ilari avar: For more advanced performance enhancement hacks: Restore capability to write new loose format (and make it default), and add capability to reuse those in packs.17:01
bartocc left17:02
JonathanT left17:02
tvachon joined17:04
k0001 joined17:05
Ilari avar: Also make it possible to reuse packed undeltified objects in loose objects (if you go that path)...17:05
_zack left17:05
bloweryblowery`afk17:06
rtyler 0/win817:06
oopsies17:06
blowery`afkblowery17:09
kanru joined17:09
avar Ilari: Since I have to avoid packing on fetch/push I could also hack around it by using rsync to sync repositories17:10
Eridius|work joined17:11
pasky gitte: I'm not watching closely now, how was the Git.pm dependency hell made worse recently?17:11
gitte IO::String?17:11
Ilari avar: Doing the four modifications I outlined should be enough... Reusing data is quite efficient...17:11
pasky isn't that getting fixed now?17:11
gitte pasky: It seems that dependencies are piled onto Git.pm instead of removed. Ugly.17:12
pasky: Actually, it has been _introduced_ now.17:12
pasky: but I should learn to shut up, because I lack the time to do anything about it.17:12
gitte shuts up because she is lacking the time to do anything on Git17:13
pasky it's just the Git.pm's testcase17:13
gitte pasky: So? How does _that_ make it any better?17:13
pasky it won't break git :)17:13
as far as I understand the patch, IO::String usage is getting removed17:13
it was recently itnroduced, trouble quickly spotted and it goes away again - isn't that the situation?17:14
Ilari avar: Using rsync to sync repositories is really good way to spread possible corruption (should one of repositories get it for some reason)...17:14
pasky I assume it didn't even hit #next17:14
so I kinda fail to see a problem17:14
Beket Hi people. When pushing, I get this one: error: unable to create temporary sha1 filename ./objects/tmp_obj_gLdm82: Permission denied17:15
dwmw2dwmw2_gone17:15
Eridius|work Beket: sounds like a problem server-side17:15
pasky you don't have write access to the remote repository17:15
Ilari Beket: Permission problems on the remote side.17:15
zawir left17:16
Beket Thanks Ilari17:16
pasky pfft ;)17:16
Ilari Beket: That is, either user is not authorized to push, or repository permissions are screwed up.17:17
Eridius|work Ilari: if user wasn't authorized to push I would expect a different error message17:17
pasky like?17:17
Eridius|work I dunno, but Beket's message clearly indicates the repo is trying to accept his pushed objects, but is prevented from doing so with a permissions error17:18
pasky which is different how from "not being authorized to push"?17:18
Eridius|work unless your definition of "user is not authorized" is "user doesn't have write permissions for the repo"17:18
pasky well, it is :)17:18
ketralnis joined17:18
Ilari Eridius|work: In case user login is valid, but that user is not authorized to push to that repo, that is exactly the error you are going to get.17:18
Eridius|work then don't say "not authorized *or* permissions problem", because by your definition those are the same thing17:18
pasky I don't ;)17:19
Eridius|work fine, by Ilari's def17:19
loops joined17:19
janm hi! Is it ok to undo a commit in git and git-svn will do the right thing in the svn repo?17:19
Eridius|work janm: define "undo"17:19
if you use git-revert to revert a commit, then git-svn should work fine17:19
janm Eridius|work: I mean revert a commit17:19
Ilari 'Screwed up' means things like objects/xx dirs having 755 mode on multi-user repo...17:19
Eridius|work if you destroy a commit with git-reset, git-svn will just re-create it17:20
janm Eridius|work: cool, thanks17:20
loops left17:25
queso|awayqueso17:27
snowblink left17:28
loops joined17:29
ebel left17:31
ketralnis_ joined17:35
ijcd joined17:35
luxid joined17:37
luxid  oggi è il download day! aiuta firefox ad entrare nel guinnes dei primati con il massimo numero di download in 24 ore! http://www.spreadfirefox.com/it/worldrecord entro le 20 di oggi17:37
Ilari luxid: What?17:38
luxid left17:38
Ilari (some firefox related spamming, I guess)...17:39
doener_ isn't there a "stupido" missing in that sentence?17:39
Tv yes let's all waste bandwidth and download even if we use debs!17:40
naeu joined17:41
redondos now we have geek flashmobs, too... :-\17:43
ketralnis_ketralnis_____17:43
loops left17:47
VitaRara_ joined17:48
VitaRara left17:49
avar Ilari: If I create a master repository at /tmp/git-test/master with a lot of small files and then another at /tmp/git-test/copy, do git init git fetch ../master I get packs automatically, and if I place 'exit 0' at the top of git-repack it gets fetched regardless and packed, what actually does the packing that I should modify?17:51
ketralnis left17:52
ketralnis_____ketralnis17:52
Ilari avar: The packing is done by git-pack-objects, (virtually) invoked by 'git-upload-pack'.17:52
icwiener_ joined17:53
Usiu joined17:53
Tv and the pack is written to disk by git-receive-pack17:53
avar: but the data is always transferred in pack format, so you already paid for packing cost; might as well keep the file17:54
Usiu how to setup remote git repo ?17:55
ijcd left17:56
ngng joined18:00
ShadeHawk joined18:01
avar creating an empty repo in 'tmp' then, git-unpack-objects < ../master/.git/objects/pack/$pack then rsync -av --progress --delete tmp/.git/objects/ master/.git/objects/ seems to work to eliminate packs after transfer18:02
ShadeHawk or you can just fiddle with configuration18:03
(the number of objects / size when git would not unpack transferred pack is configurable)18:04
byt why not simply repack?18:04
Ilari ShadeHawk: Huge blobs...18:05
ShadeHawk fetch.unpackLimit18:06
statim joined18:06
ShadeHawk pack.packSizeLimit (it will affect repacking only)18:09
avar yay, that works18:09
icwiener left18:10
avar So I can set [fetch] unpackLimit = 999999 in every cloned so that the clones don't pack everyhting18:10
ShadeHawk (or transfer.unpackLimit -- this affect also push)18:10
avar apperently fetch.unpackLimit will be used if transfer.unpackLimit is not set18:11
transfer.unpackLimit18:11
When fetch.unpackLimit or receive.unpackLimit are not set, the value of this variable is used instead. The default value is 100.18:11
statim can someone help me figure out how to do this: developer A made a bunch of changes, sent a patch to developer B. developer B applied the patch, made additional changes to the files, then commited the changes. developer B pushed the branch to remote. now developer A wants to get back up to date, so i told him to git pull on master to get the latest, then switch back to his branch and git rebase, but there are all kinds of conflicts. is there a better strate18:13
gy?18:13
Mikachu of course there are conflicts if there's a different version of the patch applied18:14
Usiu left18:14
Mikachu just use rebase --skip when you get to it18:14
quesoqueso|away18:15
ShadeHawk for patch-based workflow using "git fetch" and "git rebase" (or "git pull --rebase") is better solution than "git pull" which would use merge.18:15
schwarzes|Geist joined18:15
Usiu joined18:15
schwarzes|Geist is git good for downloading source and source control on php?18:15
statim ShadeHawk: im having hit git pull in master, and im having him never edit master directly18:15
Mikachu why?18:15
he already has origin/master18:16
schwarzes|Geist i have the need to learn a solution for doing both of these and seem to be caught between svn and git18:16
looking for pointers18:16
Eridius|work schwarzes|Geist: git is good for version control for any language18:16
statim Mikachu: not saying its a good idea. i figured having him keep a clean copy that just follows the remote branch would be easier.18:17
schwarzes|Geist any idea how i can go about implementing this or a good site to teach using it18:17
Eridius|work statim: origin/master is exactly that18:17
schwarzes|Geist i'm not familiar with git or svn so i would be learning it from scratch18:17
Eridius|work schwarzes|Geist: implementing what?18:17
ok, so go through git tutorials18:17
schwarzes|Geist i have an existing php project and i need to pull it into git18:17
Eridius|work unless you have a pressing need for a centralized version control system with strong per-user access controls and a linear history model, ignore svn18:18
ok, so read git tutorials.18:18
schwarzes|Geist any particular site or just w/e i find in google?18:18
Eridius|work git.or.cz should have a few pointers, but google works too18:18
I'm sure there are good tutorials that google will show that aren't linked on git.or.cz18:19
Mikachu and many bad18:19
schwarzes|Geist Mikachu, yeah that's what i want to avoid18:19
doener_ and lots and lots of outdated ones (which is sometimes worse than the plain bad ones)18:19
schwarzes|Geist figure this would be as good a place to start as any18:19
so git.or.cz should have the most up to date ones then?18:19
queso|awayqueso18:20
ShadeHawk schwarzes|Geist: documentation on git homepage (git.or.cz), especially "Git User's Manual"18:21
schwarzes|Geist ok thanks18:21
i'll check it out18:21
doener_ http://www.newartisans.com/blog_files/git.from.bottom.up.php18:21
ShadeHawk schwarzes|Geist: links on GitDocumentation and GitLinks pages on git wiki (http://git.or.cz/gitwiki/)18:21
doener_ that got some praise, I've never read it myself though18:21
ShadeHawk And for Subversion of course svnbook18:22
schwarzes|Geist left18:22
ShadeHawk if you (for the time being) plan on version control only for yourself, git is simpler to use: no need to setup server, just "git init; git add .; git commit -m 'Initial commit'"18:23
if not... Google Code and Sourceforge supports Subversion, for git hosting take a look at repo.or.cz, gitorious, GitHub; Savannah has also git support18:24
mnemoc did tla died?18:25
(OT)18:25
Sho_ joined18:26
ShadeHawk I think it did18:26
GNU Arch 2.0 (revc) never really started. From the ashes of GNU Arch (tla) there risen Bazaar (bzr), formerly Bazaar-NG18:27
but I don't think it has nowadays much in common with tla18:27
tla had, wrom what I've read, horrible user interface, used hostile non-portable filename conventions, and lacked 3-way merge18:28
mnemoc: but I think it would be best to ask on neighbour channel, #revctrl18:28
mnemoc the oddest thing is that sourcecontrol.net (tla hosting) has canonical copyright footer18:28
i didn't know that one :)18:29
ShadeHawk BTW Bazaar is now "GNU Bazaar"18:29
mnemoc oh18:30
copyright transfered to FSF?18:30
ShadeHawk more, Bazaar is now GNU project18:31
(from what I remember)18:31
mnemoc oh^318:31
Ramune shade: tla filesnames: {arch}/=spork18:31
shadehawk: did funny things w/ shell scripts :)18:31
drizzd joined18:31
mnemoc :D18:32
ShadeHawk that's what I meant with "hostile non-portable filename conventions" (some of those characters used IIRC were forbidden on some non-POSIX filesystems)18:32
mnemoc ,,foo was funny too18:32
david_koontz joined18:32
Ramune {arch}/++pristine-trees was also annoying18:33
iabervon For that matter, some contemporary versions of bash couldn't tab-complete those names.18:33
ShadeHawk nowadays Git, Mercurial, Bazaar are the DVCS considered, with a little side of Monotone18:34
mnemoc: as I said, try to ask about tla on #revctrl channel18:34
Ramune personally, i like monotone for one reason -- the logo :)18:35
mtodd__ joined18:35
warthog9 left18:35
timocratic left18:35
timocratic joined18:35
mnemoc ShadeHawk: yes, sorry for the off-topic... i was just wondering where tom lord and tom from libtomcrypt went18:35
ShadeHawk don't be. I just think that they might (might!) know more on #revctrl18:37
punto left18:37
Usiu left18:37
mnemoc :)18:37
ShadeHawk Hmmmm... Savannah now supports Mercurial (I have took a look to check if there are some stats what VCS offered by Savannah are used by projects most)18:39
robinr joined18:39
ShadeHawk if they are, I cannot find them...18:41
mtodd left18:42
WALoeIII joined18:45
drizzd_ left18:46
iabervon Hmm... I bet that Tom Lord isn't either of the first two hits on google for Tom Lord.18:48
ijcd joined18:50
ijcd left18:50
ijcd joined18:51
zawir joined18:52
JonathanT joined18:53
kdubois joined18:53
kdubois i heard something like being able to collapse a bunch of commits into one commit, how can i do that?18:53
jengelh any overdose of heat should make anyone collapse18:54
warthog9 joined18:57
drizzd you could git reset --soft HEAD~5 and the commit, I guess.18:57
Jc2k or git rebase --interactive HEAD~5, not sure if thats the right syntax..18:58
drizzd and then there is git merge --squash, if that's what you heard18:58
Jc2k: how can you squash commits with rebase?18:58
ShadeHawk git merge --squash, git rebase --interactive and 'squash' line18:58
Jc2k drizzd: i used rebase to combine 2 commits before, you just put something like sqush in the $EDITOR that rebase --interactive pops up18:59
drizzd: try it - it even tells you in the help blurb19:00
drizzd ah, ok. didn't know that19:00
I guess that's the more visual method then19:00
rubydiamond left19:01
lu_zero joined19:03
BinkyTheClown joined19:03
BinkyTheClown hi19:04
is it possible to git-svn only a branch of a svn repo?19:04
lorandi joined19:04
mnemoc BinkyTheClown: yes19:05
vineet yes binky, you can just specify the branch url as the repository url19:05
BinkyTheClown vineet: ok, thanks :)19:05
vineet since there's no distinction on the svn side; directories are directories19:05
bronson_ joined19:05
BinkyTheClown mnemoc: thanks19:05
git is the bussiness19:06
thiago_h1methiago_home19:12
yofel joined19:13
mjc left19:13
ciaran joined19:14
harryv joined19:16
harryv left19:17
powerfox left19:18
bloweryblowery`afk19:19
lorandi left19:24
blowery`afkblowery19:28
stouset joined19:30
Eludias joined19:31
yofel left19:34
l0verb0y joined19:35
yann left19:36
johan-s joined19:40
yann__ joined19:42
mcgrof so I forgot to git-stash before a pull19:43
:T19:43
and I got a merge, and silly me, I didn't care about the stash so I just tried git-checkout -f then19:43
and now I get issues19:44
mcgrof@nesi:~/wireless-testing$ git-fsck19:44
dangling blob 7f0ce88cf21d247e8d88c3884d4a3fb03340484519:44
dangling blob e1c9deaa229d5a52ae9eaf42533f52a37405ddf719:44
jengelh that's not an issue19:44
mcgrof oh, how do I move forward?19:44
mcgrof@nesi:~/wireless-testing$ git-pull19:44
You are in the middle of a conflicted merge.19:44
jengelh resolve it or abort it19:45
git pull is not the ultimate solution; sometimes you just want fetch19:45
mcgrof how do I do that, I didn't see an abort on the git-merge page19:46
yeah I should've just used git-fetch19:46
jerbear joined19:46
jerbear i ran a git-gc on a bare repo recently and it removed refs/heads/master and created a packed-refs. this is normal right?19:47
deavid left19:48
jerbear anyone?19:49
Arjen Is anything broken?19:49
jerbear Arjen: the permissions on packed-refs was set to 660, which caused gitweb to show "no commits"19:51
lea_w left19:51
bhuey__ joined19:54
ShadeHawk jerbear: yes, by default git-gc packs refs, although I think you can disable this via config19:54
jerbear: what umask do you use? git-gc lefs packed-refs with 644 in my clone of git.git repository19:55
jerbear ShadeHawk: this behavior is fine with me.. i'm just trying to figure out why the permissions were set to 66019:55
statim left19:56
jerbear ShadeHawk: i haven't set a umask... it shows as 002219:56
ShadeHawk hmmm... same by me19:56
VitaRara_ left19:57
ShadeHawk do you have jerbear perhaps `core.sharedRepository` set to 0002 or something?19:57
jerbear ShadeHawk: i'll check19:57
bloweryblowery`afk19:58
ShadeHawk it looks like it got umask instead of permissions19:58
l0verb0y left19:58
jerbear ShadeHawk: core.sharedrepository is set to 119:58
bhuey__ how do I get the diffs from a git branch ?19:59
jerbear ShadeHawk: some of the other repos do not have a value for that19:59
bhuey__ I have the URI but I have little experience with git in general19:59
jerbear ShadeHawk: this is strange... my repos have varying settings, yet i have never changed them from the defaults20:01
ShadeHawk jerbear: I cannot help you further, unfortunately20:01
jerbear the only thing i can think of is that they were created at different times, with different git versions20:01
ShadeHawk: how can i find documentation on config settings?20:02
blowery`afkblowery20:02
jerbear ShadeHawk: thanks for your help, i do feel closer to solving it20:02
ShadeHawk man git-config20:02
man git-clone (about sharedRepository)20:02
jerbear ShadeHawk: thanks20:03
ShadeHawk bhuey__: could you elaborate a little?20:03
bhuey__: if you want diff between two branches in the same repository, "git diff <branch1> <branch2>" would suffice20:04
d0k left20:04
ShadeHawk bhuey__: if you want diff between two different repositories, take a look at GitFaq (or GitTips) on Git Wiki, http://git.or.cz/gitwiki/20:05
bhuey__: if the project has git web interface, be it gitweb or cgit (or other), you can request commitdiff between branches by handcrafting (modifying) URL20:05
HTH20:05
ebel joined20:08
nud joined20:09
mislav left20:17
hobbes006 left20:18
bremac joined20:19
chris2 joined20:20
bhuey__ ShadeHawk: I just have a link to a URI where it contains the changes, it's its own tree20:23
mtodd__ left20:24
ShadeHawk I don't quite understand20:24
bhuey__ maybe neither do I20:25
l0verb0y joined20:25
bhuey__ git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-kgdb.git20:25
is the tree20:25
ShadeHawk bhuey__: is it URI to remote repository, and you want to check if there were some new commits, or how tip differs?20:25
bhuey__ I want to get a patch from that URI that I can apply to my tree that's non-git20:25
ShadeHawk bhuey__: you want diff (patch) between your non-git working tree (filesystem), and tip of given git repository?20:26
bhuey__ something like that, but i know that this tree is against another branch20:26
kdubois left20:26
bhuey__ so I want a diff between that URL and the base branch20:27
URI20:27
ShadeHawk bhuey__: and you don't have Linux kernel git repository somewhere?20:27
bhuey__ yes, I do20:27
I can cd into it and do various things like pulling it20:28
Eridius|work left20:29
Eridius|work joined20:29
ShadeHawk bhuey__: do you want to get (a) diff between two different branches in mingo/linux-2.6-kgdb.git repository, or (b) diff between branch in mingo/linux-2.6-kgdb.git and some branch in _your_ git repository, (c) diff between mingo/linux-2.6-kgdb.git and filesystem?20:30
bhuey__ ShadeHawk: (c)20:30
really that tree has been updated to mainline so there might be a name symbolic name for it20:31
Eridius|work left20:32
Eridius|work_ joined20:32
Eridius|work_Eridius|work20:33
ShadeHawk bhuey__: simplest would be to either go to your git repo, use "git remote add linux-2.6-kgdb <URL>", then "git fetch --depth=1 linux-2.6-kgdb", then use "git diff <path to workdir> linux-2.6-kgdb/master" (--depth=1 might not work, if not try without it)20:34
bremac left20:34
ShadeHawk bhuey__: or just "git clone --depth=1 <URL>" and "git diff <path to workdir> master"20:34
--depth=1 means only tip of history is interesting20:35
hendry joined20:38
quesoqueso|away20:41
janm left20:41
tfogal joined20:42
queso|awayqueso20:42
tfogal Is there a good solution for git-svn development when `master' gets updated as you work?20:43
The situation I run into is that I branch off of master, start doing some work, including a few commits20:43
and then somebody else commits to the svn repo ... so I switch back to master, git-svn rebase, and then merge that into my branch20:43
Eridius|work don't merge into master20:44
rebase your work branch on top of master20:44
tfogal you mean from master?20:44
Eridius|work sure20:44
tfogal heh20:44
Eridius|work git rebase master work20:44
tfogal which is equivalent to `git checkout work; git rebase master', yes?20:45
statim joined20:45
Eridius|work yes20:45
tfogal that leaves me with strange conflicts; it seems it has forgotten commits I did a day or two ago.20:46
Sput git rebase is not a good idea with a branch that has been published though, right?20:46
Eridius|work Sput: that's why he's rebasing his work branch20:46
tfogal Sput: unpublished branch, for better or worse20:46
Eridius|work tfogal: what do you mean, forgotten commits?20:46
Sput yeah I mean in general... sometimes I push branches into the public repo for collaboration20:46
tfogal Eridius|work: I have conflicts which are `<<< my updated code === /* nothing */ >>>>'20:47
Eridius|work Sput: in general, don't rebase published branches20:47
tfogal: not sure what you mean20:47
oh, you mean the conflict had you added code20:47
Sput ok, so I thought, so the git rebase master work is for local, private working branches only20:47
Eridius|work I assume the problem is it doesn't know if you added code, or if the other side removed code. which is odd, it should be a 3-way merge20:47
Beket left20:47
Eridius|work Sput: or for branches which you've explicitly advertised as subject to rebasing20:47
such as next/pu on git.git20:47
tfogal well, my merges onto master before I push to the svn repo is squashed20:47
err, are squashed, close enough..20:48
Sput Eridius: thanks20:48
X-Blade left20:48
Eridius|work tfogal: ok, sure. svn dcommit will commit the tree after the merge and follow the first parent20:49
so if that's the behavior you want, then that's fine20:49
ajonat left20:50
tfogal It all seems to work out, AFAICT, but my `git merge --stat work', right before I merge from work, is quite scary. It makes it look like its re-applying patches which came in after I branched work.20:50
ajonat joined20:51
tfogal If I'm careful not to merge into work except at those points, maybe that will make it a moot issue.20:51
x-oweb joined20:53
cnk joined20:53
freelock left20:58
_graham_ joined20:59
fafhrd_ joined20:59
jtbandes joined21:00
jtbandes Does anyone know if it's possible to use git with Xcode on Mac OS X like you can with Subversion?21:00
netoman joined21:01
Eridius|work jtbandes: nope, sorry21:01
jtbandes :(21:01
Eridius|work I don't think Xcode's SCM support is worth using anyhow21:01
jtbandes No?21:01
Why not?21:03
Eridius|work it's just never seemed right21:04
jtbandes What do you mean?21:04
(I haven't really used it, but I was thinking it might be a good idea.. maybe not)21:04
fafhrd left21:05
Eridius|work eh, try it if you want, I didn't like it21:05
hansengel joined21:06
hansengel Hi, I just ran this command:21:06
AlexanderS joined21:06
AlexanderS left21:06
hansengel `git svn clone -t http://www.something.com/svn/`, but I got this error:21:06
`Can't locate SVN/Core.pm in @INC`21:06
l0verb0y left21:07
stousetstouset|away21:08
bhuey__ ShadeHawk: thanks21:09
Eridius|work hansengel: sounds like you're missing the subversion perl bindings21:09
hansengel hm.. would I need to build SVN from source to get these?21:09
peeja joined21:09
hansengel I installed SVN from my package manager21:09
and I don't see anything about Perl bindings..21:10
Eridius|work your package manager probably has a package for it21:10
look for subversion bindings21:10
hansengel all I see here is `subversion` and `subversion-tools`, and subversion-tools only contains svn2cl21:10
mario_ joined21:11
tfogal hansengel: try grepping your pkg manager for `svn'21:11
jtbandes Is the git-osx-installer anything different than just compiling from source?21:11
pygi left21:12
mario_pygi21:12
hansengel ah, found it.. it was libsvn-perl21:12
thanks, I'll try running the command again once it's installed21:12
felipec joined21:13
ShadeHawk hansengel: it is in subversion-perl package (Fedora Core) at my computer21:14
hansengel ShadeHawk: mine was libsvn-perl, Ubuntu 8.0421:15
stouset|awaystouset21:22
proxie joined21:24
mikearr left21:25
kewark joined21:25
mikearr joined21:28
jerbear left21:28
Ace_NoOne left21:30
AlexanderS joined21:38
AlexanderS left21:38
AlexanderS joined21:39
nud left21:39
grasshopp left21:40
spuk- left21:41
Mr_Mirsal joined21:41
spuk- joined21:42
chris2 left21:42
freelock joined21:43
thannoy_ joined21:43
krawek left21:43
ph^ left21:44
hendry there is some code i want in an old revision. currently I `git diff b9626fdbfeec02d694d499a5b9c9f33699a2467a .xsession` and then copy the bits in the diff and remove the dashes etc.21:45
is there some merge tool invocation for what i'm trying to do?21:46
bloweryblowery`afk21:46
pygi left21:46
AlexanderS left21:46
Ilari hendry: One possibilty would be to dump that version to another file (git show b9626fdbfeec92d:.xsession >.xsession.another) and then move snippets over in editor.21:48
tfogal left21:49
hendry Ilari: that sounds reasonable21:51
xkenneth left21:51
CIA-2 left21:52
ebel left21:52
jtbandes If the project I'm putting on my repository is normally completely contained by a single folder, would it be common to simply put the contents of the folder on the repository, or the folder itself as well, so I'd have /path/to/working/copy/Project/stuff.etc?21:53
xkenneth joined21:54
Ilari jtbandes: I'd say puts the contents of folder in repository...21:55
CIA-2 joined21:56
thannoy left21:56
JonathanT left21:57
mnemoc left21:57
netoman left22:00
gitte left22:02
pygi joined22:03
emlprime joined22:03
gitte joined22:03
xkenneth left22:08
stouset left22:13
vbabiy left22:16
|Ryan52 left22:18
emlprime left22:19
fafhrd_ left22:21
naeu left22:21
_graham_ left22:23
bhuey__ ShadeHawk: I did do the check out, but I'm having difficulty doing the diff22:24
hansengel left22:24
ShadeHawk what are the results (error message)?22:26
troy_ joined22:27
troy_ I've got a problem with git-cvsimport; I've been using it with no issues for many months; however I've got a problem with tags not being added/updated.22:30
(ie. tags from CVS)22:30
punto joined22:31
radarek left22:34
kewark left22:36
BinkyTheClown left22:36
bhuey__ ShadeHawk: mostly just nothing22:36
blank really, like doesn't respect the --depth=1 specification22:36
when I got a git-branch it says "master"22:37
got=do22:37
sorry for the lag, lots of screens here22:37
jpeeler left22:37
krawek joined22:40
yofel joined22:41
ceez left22:41
Gitzilla left22:42
Eludias left22:42
claymccoy joined22:43
BinkyTheClown joined22:44
claymccoy I just pushed some commits to a remote bare repo, and the files I added were the wrong permission (644 rather than 755). Not sure why that happened. But now I need to remove the last 3 commits I just pushed to the bare repo. I can't find instruction on how to do that.22:44
wagle left22:44
alley_cat left22:45
Eridius|work claymccoy: do you want to keep the local changes, just destroy the commits themselves?22:45
BinkyTheClown I have run git-svn to clone a svn repo, is it possible to do 'svn diff' to send the output to a file?22:45
bhuey__ ShadeHawk: any hints or a URL for the procedure ?22:45
Eridius|work BinkyTheClown: use git diff22:45
Mikachu you can push any commit to a remote, git push -f theremote thebranch~3:thebranch22:45
Eridius|work Mikachu: I would assume he wants to blow away the local commits too, so he can re-do them22:46
Mikachu you can have svn give you diffs without having a checkout :)22:46
claymccoy I already redid the local commits22:46
Mikachu then you can just push -f22:46
claymccoy made more commits that edited the permissions, then used "git rebase -i" and squashed them into the appropriate original commits22:47
stouset joined22:47
Eridius|work claymccoy: so just push -f to overwrite the remote branch22:47
charon left22:50
claymccoy can I just do -f or do I need to do the ~3 thing to remove the 3 unwanted commits on the bare repo?22:50
Mikachu no you can ignore me, just push -f22:51
BinkyTheClown when I was in the subversion bussiness I had to run 'svn diff --diff-cmd diff --extensions "-u -p" > patch.prop'; how can I do this with 'git diff'?22:51
claymccoy cool, thanks!22:51
Mikachu BinkyTheClown: git diff > patch22:51
i don't know exactly what "--extensions" does though22:52
Eridius|work BinkyTheClown: you may want git diff --no-prefix > patch22:52
Mikachu: presumably it passes flags to diff22:52
but git already does a unified diff22:52
Mikachu ah22:52
right22:52
Eridius|work and, er it already shows the C function too22:52
BinkyTheClown Mikachu: Eridius|work: yes, they are flags to unix diff22:52
Mikachu i know what -up does of course :)22:52
Eridius|work BinkyTheClown: git diff already uses those flags, apparently22:52
Mikachu i just didn't figure out the --extensions thing was to pass them to diff22:53
BinkyTheClown Eridius|work: ok, i will try, thanks all22:53
thiago_home left22:54
bronson_ left22:55
claymccoy somtimes when I merge it puts the exact commits, and sometimes it rolls them up as a "Merge branch 'banch'". I prefer the first, but it seems random to me. Can anyone explain this?22:58
strangy joined22:58
schwank joined22:58
robinr left22:58
zawir left22:59
claymccoy actually I guess it always puts the rolled up commit in as a place holder in addition to the regular commits. What I notice is random, not what the computer does. :P23:01
schwankschwanksta23:02
bhuey__ how do I view the diff of a tree with a given a somekind of ancestor versus HEAD of the repo ?23:03
xyzzy42 anyone know if there is a git mirror of buysbox's SVN?23:03
Eridius|work bhuey__: git diff ancestor HEAD23:03
bhuey__ It's completely unclear in the documentation how to do this23:04
Eridius|work: ok, I tried that and it complains about the ancestor argument23:04
Eridius|work what does it say?23:05
bhuey__ how can I move a repo back in time and do that ?23:05
schwanksta left23:05
Eridius|work bhuey__: the command I gave should diff the ancestor vs the HEAD23:05
what error did you get?23:05
tenpaiyomi joined23:05
bhuey__ Eridius|work: complains about being an unknown branch or revision23:05
tenpaiyomi Somewhere in the process of doing all my work, I've managed to get 4 separate stashes23:05
Is there a way to merge them together?23:05
Eridius|work sounds like ancestor doesn't exist. what did you give as ancestor?23:05
tenpaiyomi Or, merge them all into my working copy?23:05
Eridius|work tenpaiyomi: you could try applying each one on top of each other. are you sure the stashes don't contain each other, though?23:05
bhuey__ I don't know what the ancestor is which is one part of the probem23:05
problem23:06
Ryback_ left23:06
Eridius|work bhuey__: what are you giving as your ancestor?23:06
bhuey__ I know how to do this in monotone but not git23:06
tenpaiyomi Eridius|work: It looks like 3 of them are identical, so ideally what I would want to do is drop 2, and merge the 2 unique ones into my current working copy23:06
bhuey__ I'm not sure, I don't know about the ancestors23:06
xkenneth joined23:06
bhuey__ I'd like a list of of them but I don't know how to get them in git23:06
tenpaiyomi Eridius|work: Or, I guess, stash my current work, and merge the 3 unique copies into a single stash, and apply that stash23:06
Eridius|work bhuey__: ok, so when I gave you the git diff command, did you literally type "ancestor"?23:06
bhuey__ yes23:07
Eridius|work tenpaiyomi: you can destroy stashes with `git stash drop <stash>`23:07
you can apply them with `git stash apply`, etc23:07
bhuey__: ok, that's clearly wrong23:07
you want to diff "some ancestor" with HEAD. what ancestor do you want to diff?23:07
describe it23:07
bhuey__ well, it would be clear if I knew git23:07
but I don't23:07
Eridius|work in english23:07
just tell me what you're trying to do23:07
quesoqueso|away23:07
queso|awayqueso23:07
tenpaiyomi Eridius|work: Is there some way to do a diff between 2 stashes to ensure there are no differences between them I am not seeing?23:08
Eridius|work sure, use git diff ;)23:08
tenpaiyomi something like git stash diff stash@{0} stash@{1}?23:08
bhuey__ Eridius|work: take a branch and diff it against a base23:08
Eridius|work tenpaiyomi: that should work fine23:08
bhuey__ Eridius|work: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-kgdb.git23:08
that's the repo23:08
Eridius|work bhuey__: so you have HEAD, and a branch. you want to find out how that branch differs from.. what. HEAD? the branch point?23:08
DrNick left23:08
bhuey__ I've pulled it and I don't know what else to do after that23:08
Eridius|work: I'd like to get the branch point from the base that it's against23:09
Eridius|work when you say the "base" what do you mena?23:09
*mean23:09
tenpaiyomi Eridius|work: Not working. Figured it out to be git diff stash@{0} stash@{1} (or whatever you so desire)23:09
DrNick joined23:09
bhuey__ so that I can get the patch and apply it into another tree that's non-git23:09
Eridius|work tenpaiyomi: if you get the sha1's for the stash it'd be easier23:09
bhuey__: you're missing the question here23:09
do you want differences from HEAD, or do you want differences from the commit where the branch was created?23:10
stousetstouset|away23:10
bhuey__ Eridius|work: I have the tree, I have the HEAD, But this should be a branch against some base revision. I would like the diff between the branch point and the head23:10
Eridius|work ok, git diff HEAD...branch (note the 3 periods)23:10
bhuey__ Eridius|work: commits from when the branch was created23:10
Eridius|work where branch is the name of the branhc23:11
*branhc23:11
*branch23:11
bhuey__ literally branch ?23:11
Eridius|work no, the name of the branch23:11
bhuey__ I don't know the name of the branch, how can I get a list ?23:11
Eridius|work `git branch`23:11
actually, you probably want `git branch -r`, since you probably only have master as a local branch23:11
bhuey__ I get HEAD and master only23:12
tenpaiyomi Eridius|work: Don't suppose you know how to show the sha1 of a stash, do you? If I just do a git stash list it truncates the sha1 after 7 digits23:12
Eridius|work bhuey__: right, use `git branch -r`23:12
tenpaiyomi: that 7 digits should be fine23:12
assuming that 7-digit prefix is unique, git will find the full sha1 automatically23:12
bhuey__ Eridius|work: that's the only two things that come out from that comment23:12
command23:12
Eridius|work bhuey__: even with -r?23:13
tenpaiyomi Eridius|work: Well, the first 3 stashes all have the same 7 digit prefix, but 2 of the stashes are the same, and one is different23:13
bhuey__ Eridius|work: yes23:13
Eridius|work tenpaiyomi: that sounds highly improbably23:13
*improbable23:13
bhuey__: ok, what version of git are you using?23:13
bhuey__ the latest stuff from Ubuntu23:13
Eridius|work which is what?23:14
type `git --version`23:14
bhuey__ 1.5.4.323:14
tenpaiyomi Eridius|work: I can do a git diff stash@{0} stash@{1} and it shows no differences, but a git diff stash@{0} stash@{2} brings up differences, yet the list has them with the same 7 digit prefix23:14
bhuey__ Eridius|work: I appreciate the help btw23:14
Eridius|work tenpaiyomi: check `git rev-parse stash@{0}` and `git rev-parse stash@{2}`23:14
xkenneth left23:15
bhuey__ Eridius|work: maybe the tree was created improperly23:15
xkenneth_ joined23:15
peeja left23:16
Eridius|work bhuey__: `git branch -r` should show more than just "master", even on 1.5.4.323:16
bhuey__ Eridius|work: git log is short as well23:16
Eridius|work: no, it just shows those two lines23:16
origin/HEAD origin/master23:17
Eridius|work ok, you didn't say the origin/ part. that makes a difference23:17
in other words... there's no branches23:17
bhuey__ oh23:17
Eridius|work why did you expect there to be a branch?23:17
bhuey__ because it should be pulled against the latest kernel sources23:17
Gitzilla joined23:17
Eridius|work goes to clone the repo23:18
Eridius|work how large is this repo, btw?23:18
bhuey__ 40M<23:18
Eridius|work oh23:19
bhuey__ it comes down relatively quickly if you have a cable modem23:19
Eridius|work ok, I'm not going to clone that here23:19
stouset|away left23:19
Eridius|work ok, what does `git remote show origin` says?23:19
*say23:19
bhuey__ I use to do this on monotone all of the time relatively easily, but I don't know git at all other than the pull command23:19
Eridius|work bhuey__: you might want to start going through git tutorials23:19
bhuey__ Eridius|work: nothing really special, I don't see anything new regarded as tags23:20
Eridius|work bhuey__: it has the right URL?23:21
EiNZTEiN joined23:21
bhuey__ yes23:22
Eridius|work ok, try `git remote update`23:22
wagle joined23:22
cliffstah joined23:22
bhuey__ done, nothing much there to print out23:23
felipe left23:23
xkenneth_ left23:23
Eridius|work ok, I just checked using the HTTP transport, it really does appear that there are no branches23:23
plenty of tags... no branches23:24
bhuey__ yeah, improperly created tree ?23:24
Eridius|work no23:24
your clone is fine23:24
bhuey__ or do we need to use the tags instead ?23:24
Eridius|work if there's a problem, it's on the remote side23:24
what did you expect to find as a branch?23:24
bhuey__ something much more substantial than the git log output23:25
Eridius|work what's wrong with git log?23:25
what does `git rev-list HEAD | wc -l` say?23:25
bhuey__ 223:25
Eridius|work ....23:25
try this: `git rev-list origin/master | wc -l`23:26
bhuey__ 2 again23:26
ft left23:26
Eridius|work ...23:26
Toad__ joined23:26
Eridius|work ok, what about `git rev-list v2.6.25 | wc -l` ?23:27
troy_ left23:27
bhuey__ unknown revision or path23:27
tenpaiyomi Eridius|work: Do you know if it's possible to apply all stashes, and not just one?23:28
Eridius|work tenpaiyomi: I would just try applying each stash in turn23:29
bhuey__: odd, you should have picked up the tags23:29
bhuey__ recheck it out ?23:29
tenpaiyomi Eridius|work: Well, the problem with that is that after the first stash is applied, any stash application past that gives a message about cannot apply over a dirty index23:29
Eridius|work bhuey__: maybe you should try re-cloning, that would definitely fix any local issues23:29
quesoqueso|away23:29
bhuey__ I did try to use --depth=1 when I checked it out23:30
Eridius|work bhuey__: .....23:30
that's the source of your problem with git log23:30
Mikachu vital information revealed late23:30
stouset joined23:30
Eridius|work you told git "only grab the latest commit from history"23:30
no *wonder* your `git log` only has 2 commits23:30
bhuey__ ok23:30
Mikachu you can't do anything with a shallow clone except look at the actual files23:30
Eridius|work tenpaiyomi: you could just stash, commit, stash, commit, etc., then squash the commits23:30
bhuey__ well, trying to follow the instructions of another person on the channel23:30
Mikachu bhuey__: do you currently have a local linux-2.6.git clone somewhere?23:31
bhuey__ yes23:31
Mikachu you want to use the --reference switch for clone then23:31
bhuey__ what does that do ?23:31
and how do I go about using it ?23:31
mithro joined23:31
Mikachu it is in fact documented in the manual page23:31
eternaleye_ left23:32
Eridius|work bhuey__: you really should read git tutorials instead of stumbling around blindly23:32
xkenneth joined23:32
eternaleye_ joined23:32
bhuey__ Eridius|work: the tutorial is rather unclear and basic23:33
unless I'm looking at the wrong tutorial23:33
Eridius|work there's a plethora of tutorials23:33
Pieter yay23:33
Eridius|work in the last month or two, it seems the Hip New Thing™ has been to write git tutorials23:33
Pieter /topic | s/1.5.5.4/1.5.6/23:33
ChanServ set mode: +o23:34
anzalaya joined23:34
Eridius|work woot!23:34
Mikachu changed the topic to: 1.5.6 | Homepage: git.or.cz | GSoC 2008 Is On! | Everyone asleep or clueless? Try [email@hidden.address] | Channel log http://colabti.org/irclogger/irclogger_log/git | Mailing list archives: http://marc.info/?l=git | Gits on git: http://tinyurl.com/2xq3ke | You want $ID?: http://tinyurl.com/yqpgv9 | Need to paste something?: http://git.pastebin.com | http://www.gitcasts.com23:34
Eridius|work when is git.or.cz going to be updated so it can actually list releases with no patchlevel?23:34
redondos left23:34
RobotDeathSquad joined23:34
Pieter itcan't do that?23:35
Mikachu heh, good way to minimize impact of brown paper bag bugs23:35
Mikachu set mode: -oo23:35
Eridius|work Pieter: IIRC, it didn't list 1.5.5 until 1.5.5.1, and that's the explanation I was given23:35
Pieter heh23:35
digitalhobbit left23:35
Pieter that should be a trivial patch :)23:36
Mikachu i'm sure pasky will be happy to accept it too23:36
bdiego left23:36
Eridius|work where's the relevant code?23:36
icwiener_ left23:37
Pieter http://repo.or.cz/w/git-homepage.git?a=blob;f=update.sh;h=ad23f989f1bfd94c1dd5ba0c46062e1065b25a47;hb=92214ba9ea9ebda9022969d1197726917d562ccc23:37
I think23:37
Mikachu Eridius|work: last section on the frontpage links to git-homepage.git23:37
Pieter time=$(git cat-file tag $ver | sed -n 's/^tagger.*> //p' | cut -d ' ' -f 1)23:38
doesn't look very bad23:38
ft joined23:38
Mikachu cut -d \ would be one character less! :)23:38
Eridius|work oh that's right, it's not a problem with the script23:38
it's because the maint branch doesn't get updated23:38
until a patchlevel23:39
strangy left23:39
Pieter huh23:39
Mikachu ah right23:39
maint isn't forwarded to 1.5.6 yet23:39
bhuey__ Eridius|work: yeah, tons of lines now23:39
Pieter hmm23:39
Eridius|work bhuey__: great23:39
Mikachu: why isn't maint forwarded until a patchlevel release?23:40
Pieter Vienna:git pieter$ git describe23:40
v1.5.6-158-g3b7f0af23:40
whoo23:40
Mikachu why does it look in the git repo to find the latest tarball though?23:40
eikonos left23:40
Eridius|work Pieter: do you have a local patch series, because you have 11 more patches than me23:40
Mikachu or does it in fact generate the tarball in that script? i didn't read it very carefully :)23:40
Pieter Eridius|work: yes23:41
Mikachu Eridius|work: don't we all? :)23:41
Eridius|work bah23:41
BinkyTheClown chao a todosssssssssssssz23:41
Pieter some basic things like making builtin-mailinfo grok Mail.app mails23:41
BinkyTheClown bye all23:41
Eridius|work would be working on a patch series to allow interactive editing of diffs in add, except I only got the idea because I heard someone else is doing that :/23:41
bhuey__ Eridius|work: what to do with it next is another matter23:41
Toad left23:41
BinkyTheClown left23:41
Eridius|work Pieter: you mean you want to point it at Mail.app's cache?23:41
bhuey__: it's called read tutorials23:41
eikonos joined23:42
Pieter Eridius|work: yeah, ~/Library/Mail23:42
carrus85 joined23:42
Pieter Eridius|work: now I can drag patches to a folder and have an alias that applies them all23:42
Eridius|work nice23:42
bhuey__ Eridius|work: nice, git log23:42
Pieter don't use that as much though, as I now have a script that applies selected messages23:42
Eridius|work Pieter: you could use osascript to ask Mail to hand back the source to the selected messages... ;)23:42
Toad__Toad23:42
Pieter hah, you're too late! :P23:42
Mikachu Eridius|work: that is not only doing, it's done23:42
Eridius|work :'(23:42
Mikachu has used git add -e a couple of times23:43
Eridius|work Mikachu: really? where? last I heard it wasn't even in pu23:43
Pieter I love git add -e23:43
Mikachu Eridius|work: git://repo.or.cz/git/dscho.git23:43
Eridius|work how come it's not in mainline next/pu yet?23:43
Mikachu it's among the top 10 commits in my-next i think23:43
i think there are two commits you need23:43
Allow git-apply to ignore the hunk headers (AKA recountdiff)23:43
git-add: introduce --edit (to edit the diff vs. the index)23:43
Pieter yeah23:43
are those the newest? that fix the tmpfile thing?23:44
bhuey__ Eridius|work: just you helping me was sufficient to generate the patch :)23:44
thanks23:44
Eridius|work bhuey__: great23:44
Mikachu Pieter, Eridius|work: yeah the commit titles might have changed since i grabbed them23:44
so by yeah i mean no23:45
Pieter I wonder if I can do sha1^ in rebase-i23:45
Mikachu in where?23:45
Eridius|work hrm, dscho/my-next isn't up-to-date wrt. origin/next23:45
Mikachu Eridius|work: he is only human :)23:45
Pieter hah23:46
that's nice23:46
p4tux left23:46
Eridius|work heh, but it sounds like all I need is dscho/my-next^^ and dscho/my-next^23:46
Mikachu yeah, i just cherry-picked those to a local topic branch23:46
Pieter I just did a "pick 7eb692a918b180d1fc40438ef83c5536fcc34242^\npick 7eb692a918b180d1fc40438ef83c5536fcc34242"23:46
Mikachu Pieter: oh you cheat and add commits in rebase -i instead of giving on the command line?23:47
s/you/you can/23:47
Pieter yeah23:47
well23:47
I did a rebase -i in my editor23:47
and replaced my old versions with the new ones23:47
xkenneth left23:47
Mikachu ah23:47
ShadeHawk left23:47
Mikachu is there some easy way to do interdiff =(git show sha1) =(git show sha2) ?23:48
Pieter http://ss.frim.nl/==80623:48
:)23:48
Mikachu doesn't like tilted lines23:48
Mikachu or at least not lines that change direction more than once23:49
felipec Mikachu: if you use zsh yes :)23:49
Mikachu felipec: hm?23:49
oh you need <() in bash23:49
Pieter Mikachu: that might be a nice script to make23:49
Eridius|work huh, Mikachu, I never knew about <(). useful!23:50
felipec Mikachu: oh, that works on bash too! didn't know that23:50
claymccoy left23:51
Mikachu cat <(echo hello) and echo hello > >(cat) :)23:52
those are unidirectional pipes sort of, so if a command wants to lseek it will fall over23:52
Eridius|work they're fifos23:53
Mikachu that's what you call them, thanks23:53
but they're not actual fifos as you would get from mkfifo23:53
$ echo <(:)23:53
/dev/fd/6323:53
stouset left23:53
Eridius|work ok, bash says it will either use FIFOs or /dev/fd devices23:53
Mikachu in zsh, with =() you get a temporary file in /tmp that gets removed after the command line finishes23:53
ah okay23:54
Eridius|work I don't know how it determines which, but the idea is it's not supposed to matter23:54
Pieter Mikachu: hah, I get the same fd23:54
Mikachu maybe it starts at 6423:54
3*23:54
Eridius|work wow I get the same fd too23:54
Pieter :D23:54
xyzzy42 can I clone an existing git-svn created repo, then update it with git-svn?23:54
Mikachu try opening 63 fds in bash and see what happens23:54
Eridius|work: irssi23:54
Pieter Vienna:~ pieter$ echo <(:) <(:)23:54
/dev/fd/63 /dev/fd/6223:54
going down!23:55
Eridius|work Mikachu: I'm trying to find out OS23:55
xyzzy42 the git-svn man page has some commands that are supposed to do this, but it doesn't work.23:55
Mikachu Eridius|work: linux ~2.6.1923:55
Eridius|work ok23:55
stouset joined23:55
Mikachu to save you the nmap23:55
Eridius|work xyzzy42: you can, with a few steps23:55
Pieter Mikachu: /dev/fd/4 /dev/fd/64 /dev/fd/65 /de23:55
Mikachu Pieter: damn i just finished that too :)23:56
(repeat 63 echo '<(:)')|xargs23:56
xyzzy42 I followed the example in the git-svn manpage, but it fails on the last command, "git-svn rebase"23:56
Pieter what does it say?23:57
stouset left23:57
stouset joined23:58
xyzzy42 I think it might be because there is no refs/heads/master23:58
nexus10 joined23:59

Logs Search ←Prev date Next date→ Channels Documentation