IRCloggy #git 2007-09-25

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.

2007-09-25

aeruder so git checkout pixman-0.9.500:00
underplay it finds them both00:00
HEAD is now at 8ff7213... rasterize traps that extend outside of the image bounds correctly00:00
branstrom left00:00
underplay now do git-pull?00:00
Randal why pull?00:00
you're already checked out00:00
underplay Thats downloads all oof 0.9.5?00:00
that*00:01
Randal download?00:01
Mikachu you did that when you cloned00:01
Randal you said you git-clone already00:01
Mikachu you have all of all versions00:01
rlb3_ left00:01
underplay I did, but i wanted to use a specific version00:01
Mikachu you are00:01
underplay i wanted to pull 0.9.5 specificly00:01
Randal and a specfic version is a subset of all versions. :)00:01
Mikachu (why didn't you just download the tarball?)00:01
underplay couldnt find one00:01
apol left00:02
aeruder underplay: you download the ful history, when you do the git checkout you are checking out that particular version00:02
you are done00:02
Mikachu underplay: "pull" means to get the latest development changes from upstream00:02
which isn't what you want00:02
underplay oh ok00:03
Already, thanks guys, i appreicate your patience and help00:03
coxy joined00:06
jtoy left00:07
coxy how do I get all the commits for a single file and apply them in another repository?00:07
mithro joined00:08
theCarpenter joined00:09
doublec joined00:09
jtoy joined00:12
fultilt left00:14
agoode joined00:15
fultilt joined00:18
amfwrk joined00:18
jtoy left00:21
bife-the-wise joined00:22
bife-the-wise hello00:22
Tene Hi!00:22
bife-the-wise I have a gitk question, I'm wondering if this is the right channel to ask00:23
Tene This is a pretty good channel for it, I believe.00:23
bife-the-wise ok, I'm actually using hgk for Mercurial, which I'm told it's an older version of gitk adapted for hg00:24
stick joined00:24
bife-the-wise I got it to work fine, but I've been struggling to find good docs00:24
mainly I'm curious about the meaning of the colors of the lines that connect revisions00:25
are they random or is there a method to them?00:25
Mikachu i believe they are random00:25
coxy is it possible to use git-svnimport to import just a single file?00:25
bife-the-wise I see00:25
coxy left00:37
lyoungz joined00:37
yorgen15 left00:40
tongueroo left00:48
spearce joined00:57
mankind_tweezer joined01:01
jtoy joined01:03
branstrom joined01:07
mankind_tweezer left01:13
jtoy left01:14
telmich_ joined01:17
kanru2 left01:19
KirinDave left01:23
saintdev_ joined01:26
saintdev left01:27
saintdev_saintdev01:27
telmich left01:29
lyoungz left01:39
yorgen15 joined01:39
factor joined01:40
factor can I pull just a latest version number with git?01:40
aeruder you can grab the latest version generally with the gitweb01:43
and i think git can do shallow clones01:43
Mikachu --depth 101:43
but that is most likely not a released version01:43
aeruder there you go01:43
stouset joined01:44
metze_awaymetze01:45
DrNick joined01:46
Mikachu DrNick: aren't you supposed to say "HELLO EVERYBODY!"?01:49
DrNick no01:49
Mikachu and then we say HI DR NICK!01:49
spearce why are we shouting at DrNick ?01:49
Mikachu simpsons references01:49
spearce isn't that just a reference to Cheers ?01:50
Mikachu too young for that :)01:50
factor what does --depth 1 do01:51
aroben left01:51
Mikachu it fetches only the objects you need to see the last two commits on every branch01:51
factor k01:51
would try it off hand but GITing kernel tree so will take a bit01:52
because I would like to have a few git repositories on my server but would like to have its web front end grab the version number from its git tree after a mirror01:53
FunkeeMonk joined01:59
metze left02:09
metze joined02:10
glguy left02:18
metafollic left02:19
jasam left02:19
metafollic joined02:21
underplay left02:25
jtoy joined02:26
yorgen15 left02:30
aroben joined02:34
branstro1 joined02:38
Ingmar left02:43
Ingmar joined02:45
leonardop left02:50
branstrom left02:56
glguy joined02:59
elmex_ joined03:05
bdiego left03:05
rtmfd_icbm left03:10
brandonz left03:10
rtmfd_icbm joined03:19
FunkeeMonk left03:19
elmex left03:19
jtoy left03:21
yorgen15 joined03:24
Teln1100A joined03:25
Teln1100A I am trying to install Git, I used the command make prefix=/usr all doc info here is teh output: http://pastebin.com/m458c78e903:26
fhobia joined03:28
spearce you don't have libcurl on your system. either install it, or build git without curl by doing `make NO_CURL=1 prefix=....`. building without curl means you cannot clone/fetch/push over http. which may still be acceptable for your needs.03:28
Teln1100A I am using centos 5 is there a way to yum install libcurl03:30
spearce `yum install libcurl-devel` ? i don't know, i stay away from things named yum...03:30
Teln1100A what bout rpm, what do you think of those03:31
eMBee having two workdirectories (using git-new-workdir) confuses svn fetch03:33
if i try svn-fetch from both03:34
thiago_h1me joined03:38
jtoy joined03:39
jtoy left03:40
spearce heh: "git-send-pack died with strange error". its not a strange error. i got a sigsegv you moron.03:46
Randal you need a stranger error. :)03:47
spearce indeed. unfortunately the address it was using was 0x34. not the most interesting of numbers.03:47
thiago_home left03:51
krawek left04:04
gitster spearce: were you talking to me?04:06
spearce not recently, no.04:06
i have a patch for send-pack though.04:06
gitster I thought you were saying "you moron" some time ago...04:06
spearce yea. to git. not you.04:06
unless you think git is yourself. in which case i think you have some issues. :)04:06
glguy so either he has issues for thinking he's git, or you have issues for conversing with a program04:09
;)04:09
rodserling joined04:09
spearce thinks he's the one with issues04:09
Randal zen master to hot dog vendor: Make me One with Everything.04:10
gitster Has anybody who's using 'next' got burned by the auto gc yet?04:11
spearce i got slammed by a badly timed gc --auto on commit early this morning. really pissed me off.04:12
not burned (no damage done) just wasted a lot of my time.04:12
gitster which means --auto is not lightweight enough.04:13
which part can and should we shave?04:13
spearce this morning --auto turned into `repack -a -d` for some unknown reason. when it was done i had 1 packfile and 40 loose objects. not what i expected from an auto.04:13
aroben left04:14
spearce sends gitster 3 patches for send-pack segfault issue04:14
cehteh auto gc'ing shall never be dangerous? ... why not fork it into the back?04:14
(by config variable, not default)04:14
gitster The tip of jc/auto which is in next does "repack -A -d -l" when there are more than 20 packs that are not marked with *.keep (notice capital A not -a).04:15
maybe "there are too many packs" check went berzerk?04:15
spearce that's probably what it was. its my git.git mirror at day-job, fetched over http. probably had a ton of packfiles in there.04:15
it was very poorly timed as my system was also busy virus scanning the entire drive (ran all day and never finished), i couldn't abort the $@#(@!(!@( virus scanner, and i had a build running in another window, and my email was downloading... my system was way overtaxed. i didn't expect git-commit to launch into a full repack.04:16
cehteh nice it :)04:17
eMBee heh04:17
maybe the command can check the system load04:18
mugwump cehteh: backgrounding gc is dangerous04:18
cehteh mugwump: it doesnt --prune or?04:19
gitster mugwump: maybe you are not aware that we've been devising undangerous version for this very purpose.04:19
cehteh iirc it should (actually must) be not dangerous04:19
mugwump I looked over some of the new auto gc stuff04:19
cehteh with the cfq scheduler nice even affects io allocation04:19
fork in back, run nice .. if thats dangerous the whole auto-gc design is flawed anyways imo04:20
mugwump the repack would need to lock the objects and packs it's repacking so no other auto-gc tries to repack them as well04:20
cehteh (while i like the idea of auto-gcing .. it just shouldnt spit into my face)04:20
mugwump s/'// :-}04:20
branstro1 left04:21
cehteh mugwump: we could create a lockfile for that .git/autogc_running or whatever04:21
mugwump yes that would do04:21
well, apart from when it jams ;)04:21
branstrom joined04:21
cehteh there is no guarantee either that no autogc happens in parallel .. imagine serveral user accessing it over different logins ...04:22
jams as in process get killed, stale lockfile left?04:23
thats fixable04:23
mugwump shared filesystems..04:23
DrNick there's an autogc now?04:23
cehteh in the works04:23
spearce `gc --auto` in next04:23
DrNick does it have a "Compacting object database (Press Ctrl-C to safely interrupt)... 30%" ?04:24
cehteh even shared filesystem give some guarantees about atomic operations04:24
DrNick and when you press Ctrl-C, does it remember for, oh, a half hour or so?04:24
cehteh gnu-arch did a lot tricks in that area :P04:24
mugwump right, but you can't detect a stale lock that way, unless you say "any lockfile not touched in 30min is stale"04:24
cehteh thats sufficient for this purpose, i would even write the gc's hostname/pid every once a while to that lockfile then you can check if the gc process is still running with more or less efforts04:26
mugwump thing is, by default it doesn't pack until you hit 6700 objects or so. I think a better figure is about 100-20004:27
that way it's a *really* quick repack04:27
cehteh having a auto-gc once left out because of a stale lock isnt dangerous at all04:27
rkaway left04:27
mugwump so long as it eventually resumes04:27
cehteh yes04:28
say repacking shall write a host/pid tuple every minute into the lockfile .. and if the lockfile is older than 30 minutes then consider to test if the packer still running ...04:29
it might even ring an alarm bell if it thinks there is a stale lockfile and not remove it automatically04:30
rkaway joined04:30
mugwump so, conglomerating small packs should hopefully be less work than making one mighty pack in the first place ... hence the original generational idea04:31
cehteh automatic packing should be a) solid and b) optional ... anything else is a bug isnt it?04:32
mugwump of course I have no hard figures to base that guess off04:32
by building smaller packs more often, and only collating the small ones into larger chunks, you pay the price of a large repack in small instalments04:32
gitster and probably end up with way suboptimal packs, I am afraid.04:33
That's where the 6700 figure comes from.04:33
spearce and the only way to get a better pack is to do a --aggressive/-f which takes a heckva long time on a sizeable project. :)04:34
gitster The whole "auto-gc" thing was just to make sure people do not go forever without running _any_ gc.04:34
mugwump agreed on that, for sure, but the main point was to avoid horror repositories, not make every repository as small as possible by default04:34
I'd think that no auto-GC should ever try to collate more than, say X MB of packfile together04:35
cehteh can you do small repacks frequently and big complete repacks infrequently?04:35
Pieter joined04:36
gitster Oh, the main point is to avoid horror repositories, _AND_ not make repositories of people who diligently do their own repack suffer from auto-gc. That is why setting the threshold too low is not a good idea.04:36
mugwump right, because the deltas won't be recomputed without -f04:36
can deltas be extended without -f?04:36
or is any deltified object considered "finished" and not used for deltifying others?04:37
gitster if you are already a delta and your base is being repacked then you won't get recomputed.04:37
eMBee how can i get rid of all untracked files from my workdir?04:38
cehteh git clean04:38
eMBee ah, thanks04:38
gitster also I think if you are already in a pack and you are not a delta, you won't get recomputed either.04:38
cehteh gitster: so what speaks against going into background?04:39
gitster that it does not buy you much?04:39
you can send the stuff to the background with "^Z; bg". I do not think backgrounding is an issue.04:40
cehteh huh? .. it can continue working cant i?04:40
mugwump or you can put git-gc --auto & into a hook04:40
cehteh well i mean in a smart way .. writing this lock/pidfile and nicing04:41
eMBee hmm, is there a way to search the changes? ie, some change removed some code, now i am trying to find where that was removed04:41
gitster git log04:41
mugwump eMBee: git log -S, git log -p | grep04:41
eMBee thanks04:41
mugwump or use gitk and enter in box "highlight commits adding/removing string"04:41
cehteh well ... i admit i didnt looked. .. but why is autogcing not implemented in a hook altogether?04:42
eMBee ahh, that's even better, thank you!04:42
mugwump cehteh: I sent one to the list that worked like that a while abck04:42
gitster: ok, so it seems like repack would want to be able to treat "short" delta chains as possibly able to be lengthened. which sounds like a feature with limited use04:44
picking the right deltas can really make a huge difference04:46
in the Perl repository import, getting the deltas right, plus allowing very deep deltas on the initial import, made my git-fast-import output pack smaller than one with badly ordered objects that was later repacked with --depth=100 --window=10004:47
fhobia left04:51
orospakr joined04:52
stick left04:59
Unleashed left05:07
rodserling left05:07
thiago_h1methiago_home05:17
rodserling joined05:28
fhobia joined05:34
DrNick left05:34
eMBee yay, cherry-pick handles subtree commits, i am impressed, i expected it to bail out05:38
madewokherd left05:39
plexq left05:40
_hdl_ joined05:49
spearce left05:50
|hdl| left05:50
fhobia left05:52
janm left05:54
doublec left05:54
phmelak joined05:56
aroben joined05:57
eMBee if i want to replace a bunch of remote branches with a submodule, do i just delete the branches and add the module?06:01
rodserling left06:08
mugwump eMBee: yep06:09
you don't need to delete the remote branches of course06:09
eMBee i don't? ok06:09
glguy are submodules new?06:09
-ish06:09
eMBee new in 1.5.306:10
glguy looks like I need to catch up!06:10
eMBee what about the data that is already in the directory where the submodule is to be cloned?06:13
saintdev_ joined06:18
saintdev left06:18
saintdev_saintdev06:19
polyonymous left06:22
polyonymous joined06:23
Sho_ left06:23
FunkeeMonk joined06:30
Ilari eMBee: You need to get rid of it or move it elsewhere in revisions that have submodule there...06:30
eMBee ok06:30
saintdev left06:31
engla joined06:31
Ilari eMBee: Because submodules work bit like mount points. You can't modify what is under unless you modify what is linked.06:31
eMBee nods06:32
eMBee i understand the why06:32
just truing to figure out the actual steps i need to take06:32
glguy so the idea is you could depend on a library at a specific version06:32
and library development can continue06:32
without breaking the project?06:32
eMBee no, the idea is that a subdirectory of your code lives in a different repository06:35
you would still use it the same way as if it were in the same repo06:35
mugwump right, but it needs its own url06:35
Ilari Probably easiest way would be to remove the remote remote and reclone it where you want it and add that directory. There are tricks to recover most of object database entries so to dramatically reduce amount of data needed for recloning.06:36
eMBee as in rebuild my repo from scratch more or less06:36
thought about that too06:37
trying both06:37
problem is one of the repos is svn06:37
so the recover trick may not work06:38
mgrimes joined06:38
Ilari eMBee: I'm sure sightly more complicated version of it would work with git-svn. But I haven't played with it...06:39
eMBee and another issue is, that one the submodule branches needs to be tracked in both repos06:39
well, i'll see. thanks so far06:40
saintdev joined06:41
saintdev left06:41
glguy is a new blob created every time a file is edited and committed?06:41
(I suppose that it would have to be..)06:41
saintdev joined06:42
gitster every time a content that your git repository has never seen is "git add"ed.06:45
pdmef joined06:49
Pistahhh joined06:51
devogon joined06:52
vmiklos left06:52
vmiklos joined06:58
dkagedal joined06:58
jlh left07:07
Pistahh left07:07
mithro left07:07
jlh joined07:08
PistahhhPistahh07:09
tronical left07:16
rtmfd_icbm left07:21
tronical joined07:23
mgrimes left07:27
fowlduck joined07:28
fowlduck unexpected behavior here, using the example from git-svn: git-svn clone http://svn.foo.org/project -T trunk -b branches -t tags07:28
inside of the project directory is the contents of trunk07:29
granted tags and branches are empty in the svn repository07:29
if a svn branch were to be added, what behavior could I expect?07:29
ahh, fooey, dead in here, methinks07:32
FunkeeMonk left07:33
dkagedal left07:38
devogon left07:42
phmelak left07:42
telmich_ left07:42
loops left07:42
pa-ching left07:42
lazyatom left07:42
Thumper_ left07:42
jtraill left07:42
ojn left07:42
jepler left07:42
ruskie left07:42
tcoppi left07:42
jeremyb left07:42
eMBee left07:42
fowlduck spliiiit07:42
so can anyone answer my question?07:43
Thumper_ joined07:44
devogon joined07:45
phmelak joined07:45
telmich joined07:45
loops joined07:45
pa-ching joined07:45
lazyatom joined07:45
tcoppi joined07:45
ruskie joined07:45
eMBee joined07:45
jepler joined07:45
jeremyb joined07:45
jtraill joined07:45
ojn joined07:45
bcr left07:48
FunkeeMonk joined07:49
tango_ joined08:02
tango_ hm I did a git pull of the git repo today and got this error: error: Object a0e7d36193b96f552073558acf5fcc1f10528917 is a blob, not a commit08:02
however, the merge completed successfully. any indication on what could the problem be and what I can do to solve it?08:02
aroben left08:06
standel joined08:11
standel left08:11
Bertl joined08:19
glguy left08:20
Bertl greetings folks! I have a git question:08:20
glguy joined08:21
FunkeeMonk left08:21
Bertl when I pull/merge from a branch, and get conflicts08:21
is there a simple way to say: take all versions from the 'new' branch?08:21
MadCoder git merge -s theirs iirc08:25
glguy there's a theirs merge strategy?08:26
MadCoder okay I'mwrong there is only ours08:26
Bertl my git says no :)08:26
glguy ours isn't really a "merge" as much as a symbolic dependency08:26
as far as I can tell at least, I'm not a merge expert08:27
cortana left08:27
Bertl so any ideas how I can avoid going through N files and resolving merge conflicts manually when I _know_ I want the version from the merged in branch?08:27
MadCoder well I would use a git macro for that08:28
tokkee Bertl: Switch to the other branch and use "ours"?08:28
markoa joined08:29
glguy That strategy instructs git that the merged result should be the same08:29
as the current HEAD. Any other branches are recorded as parents, but08:29
their contents are ignored.08:29
I don't think that that is what he wants08:29
Bertl hum, besides that this would make it very confusing because then I'm on the wrong branch :)08:29
dkagedal joined08:29
tokkee True...08:30
Bertl is this really such an unusual situation?08:30
MadCoder no I've done that many times before08:31
but like said I use a macro from my editor for that08:31
Bertl so manually then or what?08:31
MadCoder because I always want to check it does the right thing08:31
it's manually automatic08:31
:)08:31
you also can use git mergetool08:32
with kdiff3 you can tell, always j'ai08:32
with kdiff3 you can tell, always keep from left or right side08:32
Bertl hmm, I'm kind of sure that I do not want to go through 1000+ files manually :)08:32
tokkee Bertl: A hackish way might be to create a diff yours..theirs, apply that to your branch and then merge the other branch...08:32
MadCoder 1000+ ? heh08:32
fowlduck hmm08:32
MadCoder Bertl: sed is your friend08:32
fowlduck I was hoping it automagically detected new files and added them08:33
that sucks08:33
Bertl yes, I thought about that ... and I think that should work, but I couldn't believe that there is no simple way08:33
after all, git _shows_ me the three versions as hashes08:33
MadCoder sed -i -e '/^<<<<<<<$/,/^=======$/d;/^>>>>>>>$/d' yourfile.c08:33
that would keep the "second" part always08:33
(I think)08:34
tuxos joined08:34
MadCoder yeah it works08:34
of course if it's the first you want it would be08:35
markoa Is it possible to undo a commit, ie keep the changes it introduced in the working tree?08:35
MadCoder sed -i -e '/^=======$,/^>>>>>>>$/d;/^<<<<<<<$/d' yourfile.c08:35
markoa: git reset HEAD~108:35
(not --hard !)08:35
tuxos is there a general way to show the chronological changes for the last, say 3-5 commits that affect a particular file ?08:35
markoa MadCoder, is that a minus or a tilda?08:36
MadCoder tuxos: git log -- your-file08:36
markoa: a tilde08:36
tuxos: of course it would show all the commits08:36
but it's fast08:36
you can also use git rev-list -- your-file | head 5 | git log --stdin or sth like that if you only want 508:36
tuxos no, MadCoder: I want the changeset, not the log08:37
MadCoder gitk -- your-file08:37
and walk through it08:37
tuxos yes exactly - but on the command line?08:37
MadCoder yes08:37
tuxos I mean: how to on the console?08:37
(without X)08:37
MadCoder git rev-list -- your-file | head 5 | git log -c --stdin08:37
should probably work08:38
or sth similar08:38
fowlduck hmm, any good frontends to git? I never found one I liked for svn, wondering if anything is better on the git side in this regards08:38
tuxos rev-list takes a commit, so that doesn't do it08:38
MadCoder okay git log doesn't take --stdin08:38
it does --all08:39
git log -c -- your-file08:39
markoa MadCoder, thanks08:39
MadCoder that should do it, as it's streamed in less, you can read the result before it's 100% done08:39
err -p08:39
not -c08:39
I'm really confused today morning08:39
tuxos MadCoder: thanks a lot, that's it!08:40
MadCoder markoa, tuxos: 'welcome08:40
fowlduck: how would it do that ? adding any new file in the respository is almost never what you want08:41
and I don't think there is a lot of front-ends yet, except git-gui and the eclipse plugins08:41
tuxos and another question: when do I ever need reset --soft ?08:41
fowlduck MadCoder: that's what I mean, it would be hard to implement, I just hate the old svn move svn copy svn this svn that commands08:41
MadCoder tuxos: --soft is the default08:42
fowlduck or in this case git08:42
tuxos --mixed is08:42
MadCoder oh I don't know then08:42
I never used it08:42
fowlduck svn always broke on me when I did that crap slightly incorrectly, is git so unforgiving? (I'm investigating, presently)08:42
MadCoder fowlduck: git does not do mv/cp like svn at all08:43
fowlduck oh, it has mv and cp though, so what's the diff?08:43
MadCoder for real git does not records anything on move or copy08:43
markoa left08:43
MadCoder when you ask for a diff, git cleverly guess which files have been moved or not08:44
`git mv a b` is merely the same as doing:08:44
fowlduck I'm looking at git --help though and there's mv and cp and rm08:44
MadCoder mv a b08:44
git add b08:44
git rm a08:44
fowlduck oh, i see08:44
MadCoder it's just a convenient method08:44
fowlduck so it doesn't penalize you like svn does08:44
good08:44
MadCoder but what I just wrote will work _exactly_ the same08:44
no08:44
you can mv 3 4 10 times before commiting, it will work08:45
fowlduck yeah, svn is pretty stupid about all that08:45
so frustrating08:45
MadCoder yes because it registers the fact that it's a copy (as mv is merly a copy + rm in svn)08:45
git doesn't, it guess it each time you ask for it08:45
fowlduck kk08:45
thanks08:45
MadCoder that's the reason why there is a --find-copies-harder to many commands08:46
glguy left08:47
fowlduck I'm so new, I didn't even know that08:48
saintdev left08:50
adante joined08:51
tuxos left08:51
saintdev joined08:52
yorgen15 left09:03
cortilap joined09:09
dwmw2_gonedwmw209:15
laj left09:18
dooglus joined09:21
dooglus where can I get an icon for my 'gitk' launcher?09:21
zecke joined09:24
david__ joined09:26
fonseca dooglus: Maybe you can use the git.git/gitweb/git-logo.png09:32
dooglus it's a bit wide, but thanks :)09:40
I cropped out a 24x24 icon: http://dooglus.rincevent.net/random/git-logo-24x24.png09:46
and http://dooglus.rincevent.net/random/git-logo2-24x24.png09:59
chris2 joined10:01
fonseca logo2 looks nice.10:16
dooglus I like the simplicity of the first one10:17
simmel I also like theese http://henrik.nyh.se/2007/06/alternative-git-logo-and-favicon10:17
fonseca Oh, yeah, it is used by WinGit ...10:21
simmel Oh really?10:22
I must tell Malesca this because I don't think he knows = )10:22
fonseca For the icon of the downloaded package and the installed program link to the git shell.10:23
simmel Got an URL for WinGit? Was hard to search10:23
Found it10:24
fonseca It is one of the downloads on http://code.google.com/p/msysgit/10:24
doublec joined10:27
fultilt left10:28
Yuuhi joined10:32
Roomster joined10:53
ferdy joined10:56
Romster left11:03
GyrosGeier joined11:12
orospakr left11:19
aruiz joined11:35
duncanmv joined11:39
duncanmv hi11:39
laj joined11:39
duncanmv is the same for git to diff and merge between two directories (different checkouts/repos) than to do it in the same repo across branches?11:39
MadCoder you can't merge/diff between two different repositories11:40
you have to fetch one in the other, and do the merge in the checkout of the latter11:41
if it's a merge, once done, you can push it to the former if appropriate11:41
duncanmv ahh ok11:42
doublec left11:48
duncanmv left11:50
factor left11:50
jwb_gonejwb11:52
plokier joined11:54
plokier left11:57
elmarcoelmarco|away11:58
kanru joined12:03
Sho_ joined12:05
factor joined12:06
lcapitulino joined12:08
jlh left12:14
jlh joined12:14
jtoy joined12:15
jtoy left12:18
factor left12:35
cmarcelo joined12:44
Mikachu hm, i have a shared clone of linux in /tmp, and it has some extra objects in it that isn't in the main repo12:45
and i fetched into the /tmp clone and pushed into the main repo a couple of times12:45
then i ran git-repack -a -d in the /tmp one, and the size went from 4MB to 84MB12:45
the only way i managed to get it down was to move the pack file out of .git and run git-unpack-objects on it, and then rerun git-repack -d (without -a)12:46
is there another way?12:46
yorgen15 joined12:58
jeffpc left12:58
Ryback_ joined12:59
jtoy joined13:01
madewokherd joined13:08
phmelak left13:11
telmich someone an idea, why I've merge problems with a newly created .git? = >http://home.schottelius.org/~nico/unix/progs/git/git-pull113:27
stouset left13:27
telmich man git-config says " Without this option, git pull defaults to merge the first refspec fetched."13:28
(below branch.<name>.merge)13:28
bdiego joined13:30
_spuk left13:31
rodserling joined13:38
robfitz_robfitz13:44
theCarpenter left13:54
engla left13:55
hliusv561 Mikachu: Alternates?13:58
Mikachu yes, as i said it is a -s clone13:59
thiago I'd like to hear some opinions on what would be the "git way" on this issue:14:00
there's this project I am developing on top of the master branch of a repository14:01
so, I am usually using "git rebase" to get up-to-date with master14:01
now, I have people working with me so we want to have a shared repository14:01
should I keep on using rebase + push -f?14:02
Mikachu i would maybe try and not rebase until there were any conflicts with upstream that needs resolving14:03
hliusv561 thiago: Rebase and shared repositories do not mix.14:05
thiago so, I should merge instead of rebase from master from time to time?14:06
engla joined14:06
hliusv561 thiago: Yes. Then after the feature is more or less compelete, rebase it (making sure everybody you are working with that part understands what you are doing.)14:07
thiago hliusv561: ok, I see14:07
thanks14:07
Mikachu (ie, don't keep the merges in history?)14:07
thiago yep, I can't keep the merges in history in this particular case14:07
I'll probably squash most of the commits anyways14:07
stick joined14:10
rtmfd_icbm joined14:16
p4tux joined14:17
PerlJam joined14:20
jcollie joined14:20
elmarco|awayelmarco14:23
orospakr joined14:25
plexv joined14:33
plexv left14:34
dkagedal left14:35
bentob0x joined14:36
rafl left14:39
rafl joined14:43
stouset joined14:50
dkagedal joined14:59
tango_ left15:00
aruiz left15:04
krh joined15:06
fdr- left15:15
fdr joined15:18
fdrfdr-15:18
robewald|work hello, I want to use git-format-patch -p HEAD^ with GIT_EXTERNAL_DIFF set, but i don't get a custom diff. just the usual one. When I do git-diff HEAD^ i get what I expect. What am I doing wrong?15:19
Mikachu --ext-diff?15:20
robewald|work yes, thats it, thanks :-)15:22
gitte joined15:26
tcoppi left15:28
sudoer joined15:29
tcoppi joined15:29
leonardop joined15:31
engla hm how do I get the name of the latest tag (from a script)15:31
gitte I suspect you want to say "git describe HEAD"15:31
Mikachu possibly git describe --tags HEAD15:33
kumbayo joined15:34
gitte Mikachu: that will include the light-weight tags. Not sure when you would ever want that.15:36
Mikachu that depends on how much you use light-weight tags15:36
kanru left15:38
jtoy left15:38
dkagedal left15:39
jtoy joined15:39
engla describe works well enough15:46
Fullmoon left15:47
engla I suppose many people thought of using git describe and git archive to package source tarballs15:50
bronson joined15:50
kanru joined15:50
elmex joined15:53
sudoer left15:55
kelvie_ is it safe to continue work while git-gc is running?15:58
it's at repack.. and it doesn't look like it's going to stop soon (I just checked out our 8 gig or so svn repo and converting it to git :/)15:58
gitte Usually, it is.15:58
(Safe)15:58
Mikachu unless you said --prune, i think15:58
kelvie_ just git-gc ..15:59
gitte Even with --prune, it is usually safe.15:59
(It does not prune objects referenced from the index)15:59
engla kelvie_: tell us how big it is after repacking compared to the original svn repo16:01
kelvie_ haha16:01
is there a way to tell on the svn web interface?16:02
I do _not_ want to make clean my tree16:02
engla I don't know how to do that with svn16:09
elmex_ left16:10
anders_ left16:13
Mikachu kelvie_: are you importing full history or only the latest revision?16:15
adante left16:15
adante joined16:15
kelvie_ full history, and already imported :(16:15
it's just repacking now16:16
Mikachu: ^16:16
Mikachu ah16:16
david__ left16:19
kelvie_ anyone here use git-svn?16:24
engla I used it only to import. so not much16:24
kelvie_ I just want to know if you can set dcommit to not commit every single change as a new revision16:24
but rather one large one16:24
gitte Use, yes. Expert, no.16:24
kelvie_ or should I just use svn commit :P16:25
where change = git commit16:25
MadCoder kelvie_: use git rebase -i16:25
and then dcommit16:25
engla kelvie_: I know you can do a squish merge or similar. So you merge your git branch back to the svn tracking branch as one commit. And then dcommit it. But that is what I have heard16:25
I wonder if this git alias is sane, for packing up a tarball16:26
dist = !git archive --format=tar --prefix="`basename $PWD`-`git describe HEAD`/" `git describe HEAD` | gzip > "../`basename $PWD`-`git describe HEAD`.tar.gz"16:26
fowlduck left16:27
robinr joined16:27
kelvie_ MadCoder: doesn't that retain all the separate git commits?16:28
strangy joined16:30
MadCoder kelvie_: git rebase -i allow you to squash git commits together16:31
interactively16:31
kelvie_ oh16:31
MadCoder you can even reorder them, or edit them16:32
then you dcommit sth that makes sense and has a nice history16:32
p4tux left16:32
kelvie_ MadCoder: oh wow, that is nice :)16:35
you can even change the commit messages (which was something I had to do)16:35
robinr who posted git onto freshmeat? maybe time for an update. 1.3.1 may not be the optimal version for a newcomer.16:38
Theory hehe16:38
robinr oh, it say there. Nguyen.16:39
bife-the-wise left16:47
aroben joined16:48
HackyKid joined16:50
nud joined16:51
bife-the-wise joined16:53
Mikachu anyone can update packages on freshmeat16:56
cehteh robinr: at least it isnt 1.4.x16:58
sgrimm left17:00
gitte Mikachu: nope. Not git. Maybe an error by pclouds...17:05
amfwrk left17:06
Mikachu Your new release (ID 262484) has been stored for verification by the freshmeat.net crew. Please note that submissions may be edited for brevity, grammar and in some cases content.17:08
gitte left17:13
praka joined17:13
rtmfd_icbm left17:14
amfwrk joined17:20
Ilari engla: It doesn't store the version number into tar file (which you might want to do, since that is no longer available from VCS).17:23
drizzd joined17:24
markoa joined17:28
markoa hi folks17:29
Yuuhi left17:29
markoa I've created a local branch, done some work17:29
now if I push to my repo, from this new branch...17:30
will it end up in the repo?17:30
praka left17:30
markoa (master untouched)17:30
kelvie_ well then17:32
is it normal to have "failed to unpack tree object" errors while git-gc'ing?17:32
drizzd left17:32
drizzd joined17:33
markoa hmm (regarding my q) it won't, that easily at least...17:35
alley_cat joined17:35
workkevin markoa: Do you mean "will it end up in the working tree"?17:37
If so, the answer is "no, and you probably shouldn't push to a repo with a working tree"17:37
markoa workkevin, I'm not sure I know what you mean by working tree here. My local working tree? or the repository's current tree?17:38
workkevin "Working tree" refers to the checked out source files. In this case, I'm talking about the working tree on the remote repository17:39
Mikachu markoa: it depends on what the push line says for the remote in .git/config17:41
i think if it says "push = refs/heads/*:refs/heads/*" you'll push all your branches17:41
markoa Mikachu, heh, it doesn't say anything17:41
I only have the url and fetch lines17:42
Mikachu then it will probably only push the current branch17:42
note that i'm not 100% sure about this, i usually fiddle around with it until it works :)17:42
Sho_ left17:43
Sho_ joined17:43
markoa so far I'd always merge work into my local master, then push, which would always go into the remote repo's master17:43
Mikachu if you want to push the new branch just this one time you can say "git push remotename branchname:refs/heads/branchname"17:44
you need the refs/heads/ prefix only the first time in order to create the branch17:44
rtmfd_icbm joined17:45
markoa and eg if I want to push from that branch (to that branch on remote) in future as well? It seems like I need to configure the remote a bit.17:45
engla Ilari: good point17:46
KirinDave joined17:49
Mikachu i wonder if that should be chiisai (small) instead of chisai (district court)? :)17:50
KirinDave Mikachu: Both work. ;)17:53
Mikachu hehe17:53
bfields joined17:56
markoa so I did 'git push remotename newbranchname'17:56
how does someone cloning the repo get that branch ?17:57
ok, there is git branch -r to see it...18:02
Eludias joined18:07
Ilari kelvie_: Definitely not normal...18:08
rtmfd_icbm left18:08
markoa ok, I did "git fetch origin refs/heads/branch-name:refs/heads/origin/branch-name"18:09
hopefully that's up to the convention18:09
kelvie_ Ilari: yep -- I figured out what it was.. apparently if you use a symlinked subdirectory of a repo18:09
it doesn't work too well with git18:09
alias cd='cd -P' :P18:10
rtmfd_icbm joined18:11
puzzles left18:16
puzzles joined18:16
loops left18:18
pdmef left18:19
yorgen15 left18:19
strangy left18:21
loops joined18:21
Husio left18:23
dwmw2dwmw2_gone18:28
drizzd is the 'Pull:' line in .git/branches/origin equivalent to the value of remote.origin.fetch?18:30
yorgen15 joined18:31
Ilari drizzd: No. It was earlier version of IIRC "branch.orgin.merge"...18:34
drizzd oh I see, but it's still in the git-pull manual18:34
Mikachu i think they still work18:34
drizzd I like the config version better in any case18:35
gitster both are supported. in .git/remotes files there is no concept of branch.<name>.merge; the Pull: lines correspond to remote.<name>.fetch.18:36
sgrimm joined18:36
tarrybone joined18:37
glguy joined18:37
glguy left18:38
gitster The config version was introduced later, because people wanted to get extended semantics that was cumbersome to express in .git/remotes version, and by now the former is much more developed. So we teach new people the former, but the latter is still supported and I do not see them to be deprecated anytime soon.18:38
glguy joined18:38
drizzd ok, so when the manual says: add foo to the Pull: line I can equivalently say git config remote.<name>.fetch foo?18:39
loops left18:39
loops joined18:42
Mikachu that section of the manual is probably outdated then18:45
cortilap left18:47
kergoth Any idea why a git push to my apache2/webdav git repo isn't working? i can use cadaver to push a file to that webdav path manually fine18:51
seems to just hang18:54
cehteh is Lars Hjemli here on irc?18:54
drizzd you're probably lacking a slash in our url18:54
if you don't have that slash git get's a redirect from apache which it can't handle -> infinite loop18:55
kergoth hmm, it says "no DAV locking support on remote repo".. would i get that if its the redirect issue?18:57
took a while for it to error out though18:57
kergoth tries pushing with trailing / :)18:58
kergoth aha, thanks :)18:58
drizzd :-)18:58
kergoth course it still failed, but its probably just a permissions issue now, stupid git-update-server-info18:58
gitster how hard would it be to update http-push to understand redirects, I wonder...18:59
So that "no DAV locking" was a bogus diagnostic message?18:59
kergoth yep, i can push to dav fine with cadaver, so locking works19:00
i think..19:00
markoa left19:00
kergoth debugs the permissions issue first19:00
Ingmar left19:00
kelvie_ is there a way to do a git-svn rebase on all branches at once?19:00
markoa joined19:01
amfwrk I just did a git-svn rebase (with my changes commited to a WIP since I had to switch brances) and had a bunch of conflicts, now that the conflicts are fixed and in the index do I need to commit to fix the conflict (I usually commit -a -m 'WIP'; git-svn rebase; git-reset --soft HEAD^19:01
kelvie_ amfwrk: git-svn rebase --continue19:01
I'd think19:01
gitster I've seen that error message mentioned here a few times, written them off as server configuration error, but if that is the case at least could somebody put it in the FAQ? Teaching http-push about redirect (or even easier would be to add trailing slash) would also be nice.19:01
rtmfd_icbm left19:04
alley_cat left19:04
alley_cat joined19:04
amfwrk kelvie_: Unknown option: continue; The docs say that it accepts all options that git-rebase accepts too19:05
kelvie_ yeah that's weird :P19:05
Ingmar joined19:05
kelvie_ just use rebase --continue I guess?19:05
drizzd actually, the howto at http://www.kernel.org/pub/software/scm/git/docs/howto/setup-git-server-over-http.txt says that 'no DAV locking support' is usually an authentication problem19:05
kelvie_ actaully don't19:05
I wouldn't know the repercussions of that :/19:05
so maybe you should wait for someone more knowledgeable to chime in first :P19:05
kergoth suggestion: should probably unset GREP_OPTIONS in git scripts. I expect that it'd be bad if the user changed the behavior to something git doesn't expect19:06
metafollic left19:06
kergoth also, i doubt you'd want color output if you're grepping for something in git, and the user could be setting --color=always in gnu grep :)19:06
yorgen15 left19:06
amfwrk kelvie_: Everything looks fine from git-status, but I'm sure git thinks it is in a conflict/merge state (correct me if I'm wrong)19:07
kelvie_ amfwrk: that's what I'd assume too19:08
but hey, I just started using git for real yesterday :P19:08
kergoth ah, thats why i keep running into permissions issues with my http git repositories.. needed to set the umask to 0002 in my post-update's, so everyone in the git group can write to the files (i have some repositories owned by me, some by the git user)19:09
Ilari kergoth: You should set the shared flag instead...19:10
kergoth oh, right, dangit, i knew i was forgetting something :)19:11
thanks19:11
meandtheshell joined19:13
metafollic joined19:13
elmarcoelmarco|awayyy19:16
up_the_ironsirons|lunch19:28
engla kelvie_: did the repack finish?19:29
kelvie_ engla: 93% :D19:29
it's going really fast now19:30
engla :)19:30
rodserling left19:31
stouset left19:33
metafollic left19:33
stouset joined19:34
metafollic joined19:36
meandtheshell hi folks, is this statement http://rafb.net/p/s3GNO938.nln.html correct?19:36
Mikachu not entirely19:37
moh left19:37
meandtheshell how so?19:37
kelvie_ engla: or not .. now it's writing objects.. it's just done deltifying them :O19:37
meandtheshell Mikachu: how would you rephrase it?19:37
Randal "other than the current one" is clearly wrong19:38
I can have 30 local branches, and zero or more remote branches19:39
H4ckyK1d joined19:39
H4ckyK1d left19:39
Randal Oh. "other than the currrent one" doesn't apply to branch19:39
well, that's ambiguous then. :)19:39
Mikachu and the remote branches are all in the repository as well19:39
Randal a remote branch indeed19:39
meandtheshell Randal: right - it refers to repos19:39
Randal yeah, was going there.19:39
a "remote branch" is a branch that is tracking a remote repo, and is generally updated by "fetching" that repo.19:40
dduncan joined19:41
Randal as opposed to local branches that are updated either by local commits or local merges or merges with commits from remote branches19:41
meandtheshell sure but a branch is considered remote it it resides in a repository other than the current one - yes?19:42
Randal "resides" is the crazy word there19:42
meandtheshell it it*19:42
Randal there's no "one" home for a branch19:42
a branch can be everywhere19:42
this is what distributed systems are19:42
kelvie_ wow I really should have niced the git-gc :/19:42
Randal my local branch is your remote branch19:42
my remote branch is your local branch, or maybe another of your remote branches19:42
but the branch "resides" on both repos19:43
so that's a bad word19:43
there is no difference between commit DEADBABE on my machine and commit DEADBABE on yours19:43
they both comtain identical information19:43
Tene kelvie_: renice19:45
Mikachu kelvie_: renice 20 `pidof git-gc` ?19:45
and possibly child-processes19:45
`pgrep -t pts/n` where n is the number of the terminal19:45
kelvie_ doh19:46
right I forgot I could do that :P19:46
meandtheshell Randal: ok, so that was ambiguous - however, from the repository point of view I can say "A branch is considered a remote branch if it gets fetched from a repository other than the current one" ... - yes? Do we agree on that?19:46
Randal that's closer19:47
Mikachu a branch is a remote branch if it's in the remotes/ namespace instead of refs/19:47
Randal there may still be exceptions19:47
meandtheshell :)19:47
Randal yeah Mikachu has it19:47
Mikachu that doesn't tell you a lot about what it is though :)19:47
Randal but I think meandtheshell wants a more useful view, not an implementaion view19:47
meandtheshell right - something a novice can understand better ... however, Mikachu statement is not bad19:48
Mikachu 'these branch tips are automatically updated when git fetch is run, and shouldn't be modified locally' or something?19:48
CIA-11 left19:48
meandtheshell hm ... that's with regards to the workflow ... not what I need19:48
Mikachu doesn't the tutorial already say something clever about them?19:48
meandtheshell nope19:48
that's why - the wiki is also quiet about "what is a remote branch" - sure, how to create and deal with them is there19:49
also why they are useful etc.19:50
Mikachu it's the same as a local branch in most other regards19:50
ie just a reference to a commit sha119:50
moh joined19:50
meandtheshell yep, we know that but would you put that "as is" on a nice howto :)19:51
Mikachu i'm not writing a howto :P19:51
meandtheshell hehe19:51
stouset left19:52
meandtheshell we should find two or three appropriate sentences to put them on the wiki ...19:52
CIA-11 joined19:55
HackyKid left19:57
tcoppi left20:00
Randal and maybe a few inappropriate ones, just for fun. Hey, it's a wiki! What's a wiki without wiki spam and revert wars!20:02
bentob0x left20:02
LotR Randal: a useful resource? ;-p20:03
meandtheshell Randal: don't do that please20:04
stouset joined20:06
kergoth man, i hate how easy it is to end up with a stale webdav lock if you interrupt a push over it :\20:12
Ilari kergoth: Webdav sucks, doesn' it?20:14
HackyKid joined20:20
kumbayo is there a easy way to delete a packed ref beside git-update-ref -d <ref> <oldvalue> ?20:22
Mikachu is that hard?20:22
kumbayo yes i have to search refname and old hash value :-)20:23
Mikachu can't you just say ref ref?20:23
Ilari kumbayo: See also 'git branch -d' and 'git branch -D'.20:23
MadCoder and git tag -d20:23
Mikachu that is true, that is a lot easier20:23
MadCoder kumbayo: else git update-ref -d ref $(git parse-rev ref) works great you know20:24
rev-parse actually20:24
kumbayo hmm it is in refs/patches/obd_development/thread_safety_8 so it is not a branch and not a tag20:25
MadCoder kumbayo: see what I just typed20:25
kumbayo it is a remanent of a deleted stg patch20:25
MadCoder git update-ref refs/patches/obd_development/thread_safety_8 $(git rev-parse refs/patches/obd_development/thread_safety_8)20:25
kumbayo i understood :-)20:26
already20:26
MadCoder :P20:26
kelvie_ what's the most ideal way to commit to an svn tree, to commit your working branch and git-svn rebase, or to merge into your master branch and commit?20:26
MadCoder git svn rebase is better20:26
I mean no it sucks hard20:26
but you have to talk to svn in the end20:27
so you'd better behave more like svn than like git sadly20:27
irons|lunchup_the_irons20:31
thiago_home you don't need rev-parse20:32
this works: git update-ref refs/patches/obd_development/thread_safety_8 refs/patches/obd_development/thread_safety_820:32
kumbayo hmm nice, i used magic shell middle button paste + ^W^W :-)20:35
glguy refs/patches? is there a list somewhere of all the things that are refs?20:35
Mikachu anything in refs/ :)20:38
thiago_home: that doesn't delete the ref though20:38
thiago_home add -d20:40
Mikachu that most likely doesn't accept an -ish20:41
thiago_home git update-ref -d refs/patches/obd_development/thread_safety_8 refs/patches/obd_development/thread_safety_820:41
sure it does20:41
Mikachu then what is the point? :)20:41
kumbayo i tried here20:41
jwbjwb_gone20:42
H4ckyK1d joined20:42
HackyKid left20:42
H4ckyK1dHackyKid20:42
shoe I found it surprising that "git-init --bare --shared" doesn't work, while "git --bare init --shared" does.20:44
Mikachu git-init --bare doesn't work either, it seems20:45
shoe really? git-clone --bare work, I think.20:45
Mikachu yes20:45
shoe that's definitely strange, then.20:46
Mikachu maybe you're the first to want to init a bare repo20:46
shoe well, I really did the init for the --shared, so it's not *that* odd.20:46
rtmfd_icbm joined20:46
Randal yeah, there is a gap there20:47
you can git-init, and then config it to be bare.20:47
Mikachu (--shared to git-init isn't the same as -s for git-clone)20:47
mmp joined20:47
rtmfd_icbm left20:48
rtmfd_icbm joined20:48
mmp hello -- any idea how to manually deinitialize (or forcibly reinitialize) branch on which 'stg init' was used?20:49
csc` left20:50
rodserling joined20:51
troyt joined20:53
polyonymous left20:54
kristoffer joined20:54
kristoffer Any git guru got a sec?20:54
I've downloaded a repository which consists of 3 branches. I can see them doing 'git branch -r'20:54
but Im lost howto move to another branch, since in my heads/ I only got the main branch20:55
Im guessing the heads wasn't downloaded properly or something, or am I doing something silly?20:55
Ilari kristoffer: 'git checkout -b foo origin/foo'...20:55
kristoffer Ilari, oki, but doesn't that create the local repository foo?20:56
Randal not repo20:56
branch20:56
Ilari That creates branch foo, starting from orgin/foo and then checks it out.20:56
Randal just like you ask for20:56
polyonymous joined20:56
kristoffer aaah, oki. Big thanx20:56
troyt left21:00
lcapitulino left21:01
G_SabinoMullane left21:04
nud_ joined21:04
bife-the-wise left21:07
kelvie_ hrm the git repo ended up larger than the svn repo21:09
MadCoder because you didn't repacked21:10
thiago_home repack now21:10
MadCoder git gc --aggressive21:10
thiago_home did you import with git-svn?21:10
kelvie_ yep21:10
devogon left21:10
MadCoder kelvie_: git gc --aggressive21:11
thiago_home how many SVN revisions are there in your repo?21:11
kelvie_ 39k at the moment21:11
thiago_home or, more to the point, what is the highest SVN revision number you imported?21:11
kelvie_ 39 thousand something :P21:11
MadCoder or git repack -a -d -l -f --window=5021:11
it will be slow21:11
but it's definitely a thing to be done after a big import21:11
thiago_home ok, you have then 1.6 MB of git-svn database21:12
MadCoder there is that too indeed21:12
git-svn is a pig wrt that21:12
kelvie_ my svn (old) repo is 7.7 gigs21:12
and that's with object files21:12
devogon joined21:12
kelvie_ right now, my "clean" svn import after a git-gc is 11 gigs21:12
thiago_home have you repacked now?21:12
kelvie_ yes21:12
MadCoder with the options I proposed ?21:12
thiago_home how big is the pack file?21:12
kelvie_ er h rm21:12
packed-refs?21:13
MadCoder no packed-refs will gain almost nothing21:13
git repack -a -d -l -f --window=5021:14
kelvie_ yeah I'm doing that21:14
MadCoder this will be slow, but should achieve a way better compression ratio21:14
kelvie_ looks like it'll be another many hours21:14
MadCoder it will hog your machine21:14
probably21:14
kelvie_ well either way it's 11 gigs right now21:14
matteo joined21:14
matteo hi all21:14
MadCoder and like thiago_home asked, what does du .git/objects says ?21:14
kelvie_ and my svn repo from before was 7.7 gigs.. with object files :O21:14
matteo quick question, how to revert my kernel to the 2.6.22 tag?21:14
MadCoder git-svn is a pig and has many many things in .git/svn or sth21:14
kelvie_ objects are 8.8 gigs21:14
MadCoder okay, I wouldn't be surprised that after the repack it'll be better21:15
though it sounds like you should split the repo in many smaller21:15
kelvie_ .git/svn is only 14 megs :P21:15
yeah can you do that? :/21:15
MadCoder or is there a lot of big big binary files in it ?21:15
kelvie_ very possible21:15
MadCoder of course you can21:15
kelvie_ but wouldn't explain why the svn is still smaller21:15
winter-m1te joined21:15
MadCoder though it's not very easy21:15
kelvie_ even after "make"21:16
MadCoder heh21:16
otoh you have a full history since rev 021:16
kelvie_ or well we use jam21:16
MadCoder it has to be a bit bigger21:16
kelvie_ oh svn doesn't store all the revisions?21:16
winter-mute left21:16
kelvie_ by default21:16
winter-m1te left21:16
MadCoder not in the checkout21:16
winter-mute joined21:16
kelvie_ ooh21:16
MadCoder in your .git there is _all_ the revisions21:16
meandtheshell left21:17
kelvie_ how many does it checkout by default?21:17
MadCoder one21:17
kelvie_ oh21:17
really o.O21:17
MadCoder I mean, svn when you svn co has only informations about the last revision21:17
all the rest needs network access to the server21:17
kelvie_ aah21:17
MadCoder git works 100% offline21:17
kelvie_ well either way I had to make a git import for my coworkers21:17
poor guys are using cygwin :P21:17
4 days importing and counting...21:18
MadCoder heh21:18
anyways I'm completely sick, hence heading to bed right now21:18
cu21:18
kelvie_ Thanks21:18
matteo how can I revert to a tag?21:18
Ilari matteo: If you don't have any uncommitted changes, 'git reset --hard v2.6.22'.21:19
matteo ok tnx Ilari21:19
kumbayo left21:20
shoe Is there a convenient way to clone a repo while preserving the git-svn bits?21:21
matteo left21:21
kelvie_ how do you only clone one branch?21:23
I imported an svn tree, and want to clone and share it, but I'd like to take out my private branches :P21:24
vmiklos git fetch url branch21:24
that won't fetch object with are not reachable from that branch i think21:24
anonuser joined21:25
kelvie_ mm21:26
nud left21:26
anonuser Is there ever going to be a libgit or something like that? Or is current methodology just to delegate to git?21:28
vmiklos there is a libgit actually21:30
see also the related gsoc project:)21:31
glguy left21:34
jcollie left21:35
anonuser vmiklos, oh really.21:37
I thought it was more of an internal thing.21:38
It does't actually produce a shared object?21:38
stick left21:39
vmiklos the one in git.git is a static lib so yes, it's mostly internal21:43
i don't think they really care about api changes:)21:43
anonuser vmiklos, well i'm looking at the libgit stuff and I have no idea what was accomplished :-\21:43
vmiklos i have no idea about what the gsoc changed21:43
anonuser ahh i found it21:44
vmiklos http://repo.or.cz/w/git/libgit-gsoc.git21:45
anonuser vmiklos, http://permalink.gmane.org/gmane.comp.version-control.git/5343321:45
that's what I was looking for21:45
vmiklos yes, that's the same:)21:45
anonuser Okay neat21:45
vmiklos but be aware that this is not yet merged afaik21:45
anonuser It's not merged as far as I can tell.21:46
Roomster left21:46
matteo joined21:47
anonuser gitweb isn't allowing me to search so I can't really search :-\21:47
matteo hi21:47
corecode dammit21:47
anonuser If it doesn't change I guess I can work on the language bindings with the thin lib21:48
corecode how do i pull one file from a different revision?21:48
git reset doesn't work21:48
gitster you do not pull. Do you want to see the file from a different commit?21:48
Is the commit in the same repository?21:48
does "git show that_commit:path/to/the/file" ring bell?21:48
is "git checkout that_commit path/to/the/file" what you want?21:49
shoe I guess not too many people try to clone a git-svn managed repo.21:50
devogon left21:50
gitster I had an impression that git-svn author was against that whole notion.21:51
devogon joined21:51
shoe But it seems like that might be a gentle way to transition from git-svn + svn to just git.21:51
gitster ... but I may be mistaken.21:51
Yes using git-svn seems like so. Cloning such a repository is a separate issue.21:52
Actually, cloning and expect that cloned one to interoperate with the same SVN repository _directly_ is a separate issue.21:52
I do not know if normalperson is around...21:53
shoe Well, I'd be willing to tell people "hey, add this [git-svn] block to your config"21:53
But I'd rather they not have to wait for git-svn to rebuild the revdb.21:54
gitster That's what I meant. In that workflow, everybody interoperates with svn individually.21:54
shoe I guess I could just use 'tar' instead of git-clone.21:55
gitster I think alternatively you could designate one git repository to interoperate with git-svn.21:55
nud_ left21:55
gitster That repository would need to have local branches that correspond to git-svn managed "remote" tracking branch, though. Then your git-only users would clone/pull/develop/rebase/push into it as if it is just a regular git repository.21:56
shoe hmm, that might work... like a gateway... maybe with a post-commit hook with git-svn dcommit?21:56
gitster The designated git-svn repository that interact with SVN would need to handle dcommit though.21:56
Ask git-svn people; unfortunately I am not one of them.21:57
shoe oh... but I'd want to preserve author, of course.21:57
gitster Isn't author preserved by dcommit?21:57
shoe Not really.21:57
Romster joined21:57
gitster dcommit propagates committer identity to SVN?21:58
shoe The dcommitted commits are thrown away, and the svn-commits determine author.21:58
gitster Ah, but that is because git-svn's mental model is still "SVN is the king".21:58
IOW, as far as the project as the whole is concerned, what's committed to SVN is the official history.21:59
shoe well, I think it's more a function of the fact that git-svn can't control who svn thinks the author is.21:59
only the svn-server does the user-mapping.22:00
gitster That is something you cannot fix with git-svn without really migrating out and makign the git side the official repository, I am afraid.22:00
But I am not sure if git-svn can still be used after such a migration happens to a project.22:01
shoe there'd be no point.22:01
gitster Because the whole notion of "git rebase and then commit to svn" or "dcommit" comes from the basic attitude of treating the SVN side the official history.22:01
Why there is no point? After you manage to migrate some or even most people it would be nice to keep the legacy SCM around during the transition period.22:02
shoe perhaps.22:04
Anyway, I guess I'll just pass around a tarball of the git-svn repo, and let people cut their teeth there.22:05
jtoy left22:06
orospakr left22:06
alley_cat left22:07
yorgen15 joined22:07
doublec joined22:08
chris2 left22:12
tarrybone left22:14
tarrybone joined22:14
bfields left22:15
Randal what's the simplest way to have a laptop *and* an online version of my personal work repo22:18
treat it as if I was two people pushing and pulling?22:18
gitster I would say so but I probably would do pushing and fetching+rebasing for my own stuff.22:25
bdiego left22:25
gitster ... and using the "mothership-satellite" aka "push into tracking branch" layout.22:26
elmex left22:28
markoa left22:31
yorgen15 left22:31
Randal I think I can do it with a bare repo on the server, and a working dir on the laptop22:37
then it's just a matter of the right git-remote. :)22:37
mugwump that's the use case that made me throw svk away22:37
Randal What is "Can't locate Git.pm in @INC" when invoking git-remote?22:37
mugwump Randal, surely... :)22:38
anonuser left22:38
Randal I know what causes it. are there things that add to PERL5LIB?22:38
or how else does it find a weird location for Git.pm?22:38
ahh - second line of git-remote22:39
the path there must've come from configuration22:40
see - leave me alone and I come up with my own worldview. :)22:40
krh left22:42
HackyKid finally! i did it! the pern *finally* compiles in msys!22:42
s/pern/perl22:43
mugwump HackyKid, did Strawberry Perl not work for you?22:43
gitte joined22:43
HackyKid hey gitte, you just missed it :-p22:44
gitte What?22:44
HackyKid <HackyKid> finally! i did it! the pern *finally* compiles in msys!22:44
gitte perl?22:44
gitster you said pern again ;-)22:44
HackyKid yeah22:44
heh22:44
gitte Okay!22:44
HackyKid lazy copy/paste :-)22:44
Randal on my git-remote, I have use lib (split(/:/, $ENV{GITPERLLIB} || "/opt/git/lib/perl5/site_perl"));22:44
gitte Now, not to spoil your party, but does it do MSys paths?22:44
Randal but on brian's, he says no path there, just the gitperllib22:44
did that change recently?22:44
HackyKid mugwump: well. i needed a perl that understood the msys unix-style paths22:45
gitte: hmm, yeah, still need to test that :-)22:45
gitster Randal: "how do I find out what got changed in a directory recently?"22:45
Randal heh22:45
ok22:45
gitte git log directory/?22:45
gitte is watching the Mondrian talk.22:45
Randal git-blame git-remote.perl :)22:45
gitster "perl/" directory Aug 20 is the last commit I see.22:46
Randal oh wait - git-remote.perl doesn't have that line at all22:46
must be part of some build process22:46
gitte HackyKid: was the recipe not sufficient?22:46
HackyKid gitte: it does link against the msys dll :-)22:46
gitte HackyKid: oh, oh!22:47
gitster Makefile has a funky rule.22:47
cmarcelo gitster: what is that "mothership-satellite" layout you talked about?22:47
Randal Funky!22:47
HackyKid wasnt the recipe for a dmake based build?22:47
gitster We had a patch posted to that part this morning.22:47
cmarcelo: http://git.or.cz/gitwiki/GitFaq#head-46de97a5ac549d3adf406c22674b3325ae25d09c22:48
gitte HackyKid: try 'perl -e "open IN, "/bin/awk"; while (<>) { print $_; }', please22:48
HackyKid: yes, it was.22:48
cmarcelo tks22:48
Randal eww. /bin/awk22:49
you're reading a binary?22:49
Tene gitte: check your quotes.22:49
branstrom left22:49
gitte Tene: very funny.22:49
HackyKid gitte: hmm, misquoting?22:49
branstrom joined22:49
gitte HackyKid: you know whaddimean.22:50
HackyKid i do? i dont actually know perl, you know :-)22:50
yorgen15 joined22:50
gitte HackyKid: okay: open an editor, please.22:50
tcoppi joined22:51
Randal "perl -perl /bin/awk" would have worked as well :)22:51
lot less typing22:51
"perl -perl" is the new "/bin/cat" :)22:51
gitte HackyKid: and then paste http://paste.debian.net/3803322:51
Randal: won't work.22:52
Randal in what sense of "won't"?22:52
gitte MSys' bash will mangle the command line before you can say "oh?"22:52
Randal mangle how?22:52
gitte So perl will see C:\bla\blub\msysGit\bin\awk22:52
Not /bin/awk.22:52
Randal oh weird.22:52
gitte Yes, it's tricky.22:52
Randal then quote it22:52
perl -perl "/bin/awk"22:53
gitte Nope.22:53
AFAIK won't work either.22:53
The safest way _is_ to write a script.22:53
Randal perl -perl "</bin/awk" then22:53
it *is* a script22:53
just a short one22:53
perl -perl "date|" - the hard way to get a date22:53
HackyKid gitte: it prints /bin/awk22:53
gitte Oh, I seem to have my nobody-understands-what-I-mean day!22:53
HackyKid: very well done!22:53
So what is the correct recipe?22:53
Randal I've made a living from those22:53
ferdy left22:54
gitte Randal: of those days?22:54
HackyKid heh, work around a lot of problems :-p22:54
gitte Randal: you'll have to show me how.22:54
HackyKid but i'll write it all up tomorrow or so22:54
gitte HackyKid: I hope you wrote all down.22:54
HackyKid yeah most of it22:54
Randal indeed22:54
gitte HackyKid: just for my curiosity: what are the essential tricks?22:55
gitster wonders if "git -git" also meows like a cat...22:55
HackyKid wrestling the configure system into submission :O22:55
for some reason it sometimes deletes the makefiles after it is done generating them22:56
gitte But then you got it compiled _and_ linked to msys-1.0.dll?22:56
HackyKid yeah22:56
gitte Ah, I know why.22:56
Case insensitivity.22:56
It removes "makefile".22:56
Not "Makefile".22:56
HackyKid yeah, i suspected as much22:56
gitte Alas, Windows is dumb as a chair.22:56
HackyKid :O22:56
gitte Chair like in "flying" ;-)22:56
wycats left22:56
HackyKid also there was an error in one of the msys headers :O22:56
GyrosGeier left22:57
gitte Yeah, I think I edited one too.22:57
HackyKid oh, and i tries perl 5.6.1 this time instead of the newest version22:57
gitte Just before giving up on configure.22:57
HackyKid s/tries/tried22:57
gitster randal: what does command line switch -r do?22:58
gitte HackyKid: (But I used "git init" on the perl sources just before playing with it, so I'd not have to write it all down ;-))22:58
Randal I don't know22:58
HackyKid i did too this time :-)22:58
Randal that's not what that's doing22:58
perl -perl is actually perl -p -e 'rl'22:58
HackyKid so my config settings are at least still in there22:58
Randal where 'rl;' is the "program" I'm running22:58
bobesponja joined22:59
Randal so perl -peatmoss would also work22:59
gitster what does rl; do?22:59
Randal it's just the bareword "rl"22:59
gitte HackyKid: as long as you did not edit intermediate files ;-)22:59
bobesponja what's the best way to create a patch file from a commit so I can send it by mail?22:59
gitster ok.22:59
Randal perl -p -e '"rl";'22:59
that'd be the equivalent fully dressed22:59
gitte HackyKid: since I am so curious, could you send me the diff?22:59
gitster "perl -pwerl" wouldn't have worked, in other words?23:00
HackyKid heh, and i had to rename INSTALL, otherwise 'make install' would not work :-)23:01
gitte yep, I remember deleting it.23:02
Randal that would, but with an error, probably23:03
I never use warnings, dunno23:03
bobesponja anyone about best practice for patch creation?23:03
HackyKid gitte: hmm, only modification to the perl sources needed was uncommenting a line in pp_sys.c ("extern int h_errno;")23:03
eh23:03
gitster Sure, write a perfect code ;-)23:04
HackyKid s/uncommenting/commenting23:04
commenting out, even :O23:04
gitte HackyKid: makes sense...23:04
bobesponja: Look at Documentation/git-format-patch.txt23:05
robfitz_ joined23:06
stouset left23:06
jepler HackyKid: if you're using GNU make, see: info make "Phony Targets"23:06
HackyKid: '.PHONY: install' should make the install target work even when a file named 'install' exists23:06
Eludias left23:07
mmp left23:07
bobesponja gitte: thanx, I'm trying but it doesn't seem to create any file or at least I can't find it, any idea?23:10
gitte_ joined23:12
gitte left23:12
jepler bobesponja: how did you run it -- did you give a revision? On my tree, this prints a diff on stdout: git-format-patch --stdout HEAD^23:12
gitte_gitte23:12
jepler without --stdout, it would go in a file the name of which is printed on stdout23:12
e.g., 0001-work-properly-for-negative-scales.txt23:13
gitte bobesponja: I guess you did not provide _any_ arguments, right?23:13
You have to give git a chance to know _what_ patches you want...23:13
bobesponja gitte: I did: "git-format-patch 2d9d04eec20d -o some_path/"23:13
jepler I'm not sure why git-format-patch doesn't print an error when there are no revisions given, since it's never useful without at least one revision (right?)23:13
gitte bobesponja: where 2d9d04 is HEAD?23:14
bobesponja gitte: yes that's HEAD23:14
jepler % git-format-patch HEAD^ -o some_path/23:14
Not a valid rev -o^ (-o)23:14
gitte For historical reasons, giving _one_ ref means that you want to print all patches _since_ that ref.23:14
In your case... none.23:14
jepler on my git this isn't accepted, but maybe that's changed since ancient times?23:14
Ryback_ left23:14
gitte Oh yeah, and I'd _definitely_ write the options before the parameters.23:15
(Like in most Unix programs)23:15
bobesponja ok thanks a lot to both23:15
gitte yw23:16
Mikachu has a keybind in zsh that moves options before parameters for you :)23:18
robfitz left23:18
gitte Mikachu: so what do people have with this newfangled zsh? Is it so fast or what?23:18
Mikachu i've actually never used bash in the first place23:19
gitte So what system installs it by default?23:19
Mikachu i don't know if any do23:19
dash__ joined23:20
gitte Then you had to have a reason to install it yourself.23:20
Mikachu yeah, the name sounded cool23:20
(this was a few years ago :)23:20
gitte Ah, a very sound reason then ;-)23:21
Mikachu i'd say it's about as good as using a shell because it's the default23:21
gitte Umm. It's the default?23:22
Mikachu no i meant my reason is as good as yours is for using bash23:22
jtoy joined23:23
gitte I actually played a little with busybox' builtin shell.23:23
And with tcsh, since Mac OS X 10.2.8. had _that_ as a default shell.23:23
As well as the Alpha boxen I was forced to use a few years ago.23:23
Mikachu zsh's globbing is so good i hardly even know how to use 'find' :)23:24
and there are lots of crazy shorthand syntax for common operations23:25
cmarcelo left23:25
Mikachu like if foo=dir/name.ext, then $foo:h is dir, $foo:r is dir/name, $foo:t is name.ext, and so on :)23:26
which is handy in for loops when converting png to jpg or whatever, you can say $i:r.jpg instead of some crazy ${i%.png}.jpg23:27
gitte Oh? perl gone shell?23:27
Mikachu i usually joke that zsh is the only language more unreadable than perl23:27
gitte You don't know brainfuck.23:27
Or Malbolge.23:28
Mikachu apart from those :)23:28
gitte Whereas a colleague of mine said Cobol would beat Malbolge hands down.23:28
Mikachu *(@e:'[[ ! -e `zstat +link $REPLY` ]]':) expands to all broken symlinks23:31
gitte Now, that is a good reason to switch ;-)23:31
robinr COBOL is brainf*ck, except you don't know you're being f*cked23:31
dash_ left23:31
gitte BTW am I the only one who thinks that the Mondrian talk was a little *cough* dry?23:31
jtoy_ joined23:32
branstrom left23:32
robinr link?23:32
Mikachu gitte: show me how to do it in bash then :)23:33
gitte robinr: http://video.google.com/videoplay?docid=-850290407644071486623:33
Mikachu: I'll show you next time I need it, okay?23:33
Mikachu sure23:33
gitte But don't hold your breath for it ;-)23:33
Mikachu creates a function so *(e:brokensym:) also works23:34
gitte (I never, ever had the need to find all broken symlinks)23:34
Mikachu some usually accumulate in /usr/bin, and it's boring to copy paste red text from ls output23:34
robinr gitte: nowhere near as boring a Marc Andreesen at oopsla '95 (or somewhere near that)23:36
branstrom joined23:37
gitte robinr: somebody should have told Guido _before_ minute 30 or so that it helps to drink, and then more than a drop.23:37
Mikachu: find -maxdepth 1 -type l | while read line; do test -e "$(readlink "$line")" || echo "$line"; done23:37
Mikachu: Scrap the "-maxdepth 1" if you do not want to test, as I did.23:37
Mikachu: I find that utterly more readable, thankyouverymuch23:37
Mikachu sure :)23:38
mine forks less23:38
Randal find2perl . -eval '-l and not -e' -ls | perl23:38
that forks even less. :)23:38
as in, not at all23:39
two processes total23:39
Mikachu that is two forks then, mine does zero23:39
gitte Hah. Perl is even _less_ obfuscated!23:39
Randal Yeah, but you have to use bash.23:39
I won't.23:39
Mikachu gitte: i think i agree with your assessment of that video23:40
heh, the guy in the "Dtrace Review" video reminds me of daniel in sg-123:42
robinr left23:45
matteo why a git tree has many heads?23:45
how to select one?23:45
Mikachu git-checkout23:45
gitte Those are branches, IIUYC.23:45
matteo also, can I get infos about such branches?23:45
gitte What kind of info?23:45
matteo a comment or so23:46
http://git.kernel.org/?p=linux/kernel/git/linville/wireless-2.6.git;a=summary23:46
robinr joined23:46
matteo there are almost 10 branches23:46
gitte Sure, I can give you a comment about ath5k.23:47
This is the branch for the Atheros 5k.23:47
Or z1211: the branch developing the driver for z1211.23:47
Should I go on? ;-)23:47
adante_ joined23:55
devogon left23:58

Logs Search ←Prev date Next date→ Channels Documentation