IRCloggy #git 2009-07-03

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.

2009-07-03

neoeinstein left00:00
majd left00:02
mtveemtvee|away00:02
johndoigiii left00:03
SwistakTheJesterSwisOff00:04
johndoigiii joined00:05
joevandyk_ left00:06
joevandyk_ joined00:10
mtvee|awaymtvee00:11
rpag left00:11
sitaram joined00:14
whee left00:15
sergiodj left00:15
jjuran If I'm not mistaken, 5 hex digits won't yield a collision untl about a half million objects, on average. With 6 digits it's 8 million. With 8 digits, 2 billion.00:15
ezyang left00:16
hpoydar left00:16
makiesmakies_bot00:17
ericindc left00:20
tomoj don't you have to use birthday problem math there?00:21
lightcap joined00:21
jjuran tomoj: Am I supposed to divide the exponent by two instead of the number of keys?00:23
tomoj no, I think it's more complicated00:23
http://en.wikipedia.org/wiki/Birthday_attack00:23
rushed left00:23
tomoj based on that approximation I get 1283 objects on average for 5 hex digits00:23
gonna run an experiment to test it00:23
jjuran Oops. IANAC.00:24
tomoj hmm.. I may be thinking about it wrongly00:25
whee joined00:25
tomoj if you just generate random 5-digit hex strings, it will only take you around 1283 to get a collision.00:26
johndoigiii lol00:26
sorry to set this off00:26
ereslibre left00:26
struberg left00:28
qhoxie left00:29
standel joined00:29
standel left00:30
alexyk_ joined00:30
tomoj but assuming sha1 is perfectly distributed, the first 5 digits of every hash IS a random 5-digit hex string, right?00:30
alexyk left00:30
jjuran 5 hex digits has 2^20 combinations, yielding 2^10 bits of security after dividing by 2. Where does the 1.25 coefficient come from?00:31
tomoj I was using the sqrt(pi/2 * n) approximation00:32
qhoxie joined00:33
reprore left00:34
rpag joined00:34
whee left00:34
jjuran Okay, so my revised numbers are a thousand objects for 5 digits, and each extra digit buys you a factor of four.00:34
JasonWoof joined00:35
mithro left00:35
mithro joined00:36
mw___ left00:36
eldragon left00:37
qhoxie left00:37
utu joined00:37
tomoj yup00:37
so less than 100000 objects for 8 digits00:38
neoeinstein joined00:41
tmm1 left00:42
johndoigiii hmm, whats the easiest way to dump the commit id into a file? I'd like to test this out for a real project00:42
sorry, all of the id's in the log00:42
tomoj johndoigiii: maybe something like: git log --all --pretty=format:"%H" > ids.txt00:46
alexyk joined00:47
johndoigiii tomoj: git rev-list00:47
thats what i am using00:47
tomoj oh yeah, that's easier :)00:47
I guess you can't tell rev-list to list ALL the commits?00:48
johndoigiii --a00:48
all*00:48
tomoj well, I don't think that will list unreachable commits00:48
alexyk_ left00:49
johndoigiii yeah00:49
tomoj but I guess those will be gone soon anyway and so don't really matter00:49
johndoigiii only 11256 commits for rails.git00:49
i dont think thats right00:49
khmarbaise joined00:50
kennethlove left00:53
d0k left00:54
parasti left00:55
klbate left00:55
tomoj yeah I got the same result00:56
whaley left00:56
WebDragon|away left00:57
WALoeIII left01:00
johndoigiii this is for rails.git http://dpaste.com/62708/01:01
with a rev list of 11,25601:01
tomoj 7 digits is supposed to be good for 20000-ish on average01:02
but it's just average, so that sounds right01:02
sitaram left01:02
neunon left01:04
__iron left01:06
tomoj git.git has 21287 commits with no duplicates for 7 digits01:06
altrux joined01:08
lightcap left01:08
hpoydar joined01:08
makies_botmakies01:09
mugwump use the birthday calculator01:09
http://my.instacalc.com/calc/91ca9ae67a434f82be1b84d85ea9e06501:09
eg, put in (16^7) for total_items01:10
tongueroo left01:10
agenteo joined01:10
ericindc joined01:10
tomoj it says 19291 needed for 50% probability01:11
whee joined01:11
mugwump and then for something really spooky put in 57% for probability_of_match ...01:11
tomoj haha01:11
toxx_ left01:11
tomoj is "needed for 50% probability" the same as "expected number you have to have to get a collision"?01:12
mugwump sure, you can read it like that01:13
it's more like "given X repositories that that many commits, 50% of them will have a collision"01:13
tomoj ah, I see01:13
Bass10 left01:13
mugwump reduce the probability if you want to be more sure01:14
tomoj so rails with 11256 has about a 21% chance of needing 8+ digits01:15
bcardarella left01:18
alexyk_ joined01:19
Marmouset joined01:19
mugwump er ... "4 out of 5 rails-sized projects will need 8+ digits"01:20
*1* out of 5 I mean01:20
johndoigiii very cool01:20
mugwump I'm surprised it only has 11k commits tbh01:21
bcardarella joined01:22
johndoigiii left01:22
thoraxe joined01:22
sgrimm left01:23
_Vi left01:25
slyphon left01:25
Superbaloo left01:26
tomoj linus's kernel tree needs 9 digits :O01:26
binjured left01:27
alexyk left01:28
jackdempsey joined01:30
jksz joined01:31
mw joined01:34
WALoeIII joined01:35
spaceonline joined01:35
WALoeIII left01:35
Chillance left01:36
jksz_ joined01:38
joevandyk_ left01:38
jksz left01:38
icwiener left01:38
Alinermedia left01:39
alexyk_ left01:42
brizly1 joined01:45
Octalot left01:46
kinkerl left01:47
ehc joined01:48
mw left01:49
ehc left01:49
ehc joined01:50
hpoydar_ joined01:52
hpoydar left01:52
mtveemtvee|away01:54
mtvee|awaymtvee01:55
dreiss left01:55
flippo joined01:56
aziz left01:56
javatexan left01:59
bugfux joined02:00
brizly left02:01
psynaptic left02:02
bugfux left02:04
thoraxe left02:04
utu left02:05
vals_ joined02:06
jjuran left02:07
javatexan joined02:09
loincloth hey02:09
so02:09
i said "git push" and it spit out all that stuff about how i didin't specify where, etc02:10
but then it hung..02:10
and i wasn't sure what it was doing..02:10
so i killed it, but i did so JUST as it spit out info like it was actually doing a push02:10
blkf joined02:10
loincloth wait02:10
loincloth left02:10
flippo That was special.02:12
lut4rp_AFKlut4rp02:13
univate_ left02:14
guitsaruguitsaru|away02:14
flaguy48 left02:14
univate_ joined02:15
kuadrosx left02:17
kuadrosx joined02:17
whee left02:18
tango_ left02:21
khmarbaise left02:21
krawek left02:21
krawek joined02:22
jeffrey__ joined02:23
jeffrey__ Is there any easier way to generate the difference of two commit in Linux kernel source code than "git diff 42ca4fb69126dd9d0e25112edca1cacf846aa5c3 43644679a1e80f53e6e0155ab75b1093ba3c0365", since that the revision number is so long in Linux kernel source code.02:23
joevandyk joined02:23
rhett left02:24
followumesh joined02:26
followumesh Hi02:26
hpoydar_ left02:26
juanjoc joined02:27
followumesh Anyone knows how to jump between commits, like we do with --hard reset? thanks02:27
spaceonline left02:28
rhett joined02:28
joevandyk left02:29
tongueroo joined02:29
followumesh left02:30
rhett left02:30
ehc left02:30
umesh joined02:31
schambers left02:32
JasonWoof left02:32
smoofra so aparetnly there's a cache of objects somewhere. anybody know wehre to find it?02:33
Derander left02:33
umesh Hi, anybody knows how to jump to older commits?02:34
sekimura left02:34
kpreid_ jeffrey__: you can write any unambiguous prefix of those hashes, does that help? (e.g. perhaps git diff 42ca4 43644). any further refinement would require more information about where you're getting them from02:34
schambers joined02:37
mnick left02:37
ben_h joined02:38
jeffrey__ kpreid_: thank you. I tried, and it works with at least 7 digit prefix.02:38
sergiodj joined02:39
javatexan left02:41
neoeinstein left02:42
neoeinstein joined02:42
javatexan joined02:43
bugfux joined02:44
harinath joined02:46
mw___ joined02:50
tjafk2 joined02:53
smoofra hrm anybody know the diffirence between the SEEN and SHOWN flags?02:53
dreiss joined02:54
blkf left02:54
bugfux left02:55
bugfux joined02:57
kanzure so, can you remove something from a bare repository?02:58
mw___ left02:58
alexyk joined02:58
umesh anybody knows how to older commits, AFAIK, we can do --hard reset, and ORIG_HEAD keeps the previous head of the branch, so if we reset multiple times we lose the track of the recent commit.02:59
kanzure I committed something stupid02:59
:(02:59
umesh *how to jump02:59
MetaCosm left02:59
drewr left03:02
kukks left03:02
joevandyk joined03:05
lut4rplut4rp_AFK03:06
sitaram joined03:07
tjafk1 left03:10
fujin left03:11
Strogg left03:12
tomoj umesh: if your problem is losing track of stuff: git reflog03:12
Strogg joined03:13
kanzure is there a way to rewind a bare repo?03:17
guitsaru|awayguitsaru03:18
djgera left03:19
guitsaru left03:21
offby1 what does "rewind" mean?03:22
kennethlove joined03:26
WebDragon joined03:27
bugfux_ joined03:30
bugfux left03:31
sitaram you mean reset to a former state? not easily, unless you had the foresight to set core.logallrefupdates03:32
marvil07 left03:32
sitaram but I probably misunderstood your question anyway03:32
sfwc joined03:39
hydrogen joined03:40
girishr joined03:42
kennethlove left03:44
aspotashev|eeepc joined03:44
Mage_Dude left03:46
schambers left03:46
Chouser joined03:48
bugfux_ left03:48
bugfux joined03:49
Chouser is it bad for the same commit in two different branchs to have slightly different commit messages?03:49
Mage_Dude joined03:49
offby1 if the messages are different, then they aren't the same commit.03:50
Chouser well, they're not the same commit anyway because if the branches are different, right?03:50
sergeykish joined03:50
schambers joined03:51
offby1 wrong03:51
:)03:51
Chouser :-(03:51
offby1 a "branch" is just a reference to a commit.03:51
You can have as many references to a given commit as you want.03:51
offby1 strongly recommends "Git For Computer Scientists"03:51
offby1 'splains it all03:51
ankit9 joined03:51
Chouser ok, but isn't a commit a snapshot of the whole tree, not just a diff?03:51
offby1 correct.03:51
it's a snapshot of the tree _plus_ a comment and author _plus_ pointers to other commits.03:52
Chouser so if the branches have any difference in their history (as you might expect of a branch), then the same patch applied to two branchs are different commits anyway, even if the message is identical03:52
offby1 the other commits being its parents. There can be any number of parents, including 0; 1 is the most common number; 2 is pretty common; 3 or more is possible but I don't think I've ever actually seen it03:52
yes, the same patch applied to different branches yields different commits.03:53
easy enough to try that out as an experiment in a toy git repository.03:53
Chouser ok, so I phrased my original question incorrectly. :-)03:53
is it bad for the same patch applied to two different branchs to have slightly different commit messages?03:53
offby1 even if the different branches happened to have the same tree -- if the branches indeed reference different commits, then the same patch applied to both will yield two different commits still.03:53
oh.03:54
ok, answering your question: I don't see why it would be bad.03:54
Chouser ok, great.03:54
offby1 commit messages are up to you; use whatever you think will be clearest.03:54
Chouser I know git itself doesn't care, but I didn't know if other surrounding tools might03:54
offby1 I _will_ say I can't offhand think of _why_ you'd want the message to vary.03:54
other tools won't care either.03:54
Now, us humans: _we_ might care :)03:54
offby1 poke sitaram03:55
w|shimmy joined03:55
offby1 surely you have an opinion?03:55
s/poke/pokes/03:55
Chouser in this case, we plan to have 'release' and 'bugfix' branchs03:55
offby1 sure03:55
sergeykish Hello, I get "You must edit all merge conflicts and then ..." on rebase. But there is no unmerged files (git checkout HEAD^ file). What can I do?03:55
Chouser when a bug is reported that applies to both, it gets two tickets03:55
one for each branch03:55
offby1 ah03:55
whaley_ joined03:55
offby1 that would do it, wouldn't it.03:55
Chouser: I wouldn't worry.03:55
Chouser the bulk of the message in each case can be the same, but I want the ticket number to refer to the approriate ticket.03:56
offby1: ok, great, that's what I was hoping to hear.03:56
offby1: thank you very much!03:56
offby1 cackles evilly03:56
Chouser now I just have to write a tool so I don't have to manually edit that message each time :-P03:57
MikeStone joined03:57
jrmuizel joined03:57
sergeykish Wow, it fixed while I search answer03:58
What can it be?03:58
offby1 Chouser: typically, people apply the patch to just one branch, and then merge that branch into the other.03:58
Or they might cherry-pick03:58
Chouser I plan to do something like a cherry-pick03:58
sergeykish And get again same thing03:58
Chouser ...except I need to adjust the message on its way through03:59
it was the awkwardness of having to adjust that message that made me wonder if I was doing somethign vile03:59
sitaram just saw offby1's poke, is sorry he was away04:00
offby1 you could cherry-pick and then "git commit --amend" to tweak the message04:00
sitaram: shameful04:00
majd joined04:00
Chouser offby1: yeah, I'm going to do something like that, but I don't want to edit the message manually.04:00
offby1 should be doable04:01
ankit9 left04:01
Chouser that is, I think I'll have the ticket number fixed automatically before popping up an editor so I can confirm it didn't screw up the regex04:01
that is, that the regex didn't screw up the message.04:01
ankit9 joined04:01
sitaram offby1: yes isn't it -- old men have no attention span these days!04:01
ankit9 left04:01
sjl left04:02
scarabx left04:02
offby1 probably making dinner for your family or some other old-man thing04:03
or earning money!04:03
Squaaaaare!04:03
sitaram if I made dinner, they'd all be dead by now heh!04:04
Chouser offby1: ok, thanks for your help. Bedtime.04:05
wshimmy left04:05
majd left04:06
SjB joined04:06
justin-george joined04:06
jrmuizel left04:07
offby1 nods04:07
offby1 given that .in is far away, /me guesses it's breakfast or even lunchtime04:08
hydrogen left04:08
majd joined04:09
owen1 what is the best way to resolve conflict when merging branches?04:12
vimdiff?04:13
offby1 I like kdiff304:13
juanjoc left04:13
offby1 works on Windows, too04:13
upul joined04:14
umesh left04:15
umesh joined04:15
umesh left04:15
owen1 vimdiff file_from_master file_from_branch how do i get the second file?04:15
aspotashev|eeepc left04:15
offby1 dunno04:16
anyway it's best to mention _three_ files, not just two (the third is their common ancestor)04:16
owen1: try running "git mergetool"; chances are it'll Just Work™04:16
owen1 it opened gvimdiff. how do i change it to vimdiff?04:17
hydrogen joined04:18
sitaram offby1: I'm at work actually, and they keep interrupting with stuff they want me to do; it's not fair!04:21
owen1: I like meld too04:21
owen1 is it text-based?04:22
sitaram no04:22
you want text-based? "git mergetool -t vimdiff" should work I think04:22
owen1 sitaram: i'll try it04:22
Mage_Dude left04:25
owen1 sitaram: works. i have 1 conflicted line. Am I suppose to delete it from one of the files and save it?04:26
j416 joined04:29
j416 how can I get a hook to execute a script inside the repo?04:29
is there a variable holding the path to it, or should I use $GIT_ROOT/../ ?04:29
owen1 sitaram: i tried to delete the line and closed vim. it asked me if the conflict was resolved, i said yes but i see a few weird files with all kind of extensions. what happened?04:30
ankit9 joined04:31
tlrobinson joined04:31
owen1 and when i 'cat test' (this is the name of the conflicted file) i get the line with the conflict from both master and the branch.04:31
so i assume it failed.04:31
majd left04:34
sitaram owen1: sorry;... will take a bit04:38
upul left04:38
sergeykish left04:40
marc_kdab left04:40
sergeykish joined04:41
rs joined04:42
rakoth joined04:44
lut4rp_AFKlut4rp04:44
j416 hmm04:47
Lemao joined04:47
j416 I would like to add a file using a hook, before commit04:47
is this possible?04:47
stringo0 left04:47
j416 I'm using git to manage a database-driven website, and I want to include dumps of the database for each commit04:47
s/dumps/a dump/04:47
i tried doing 'git add dump.sql' in pre-commit, but it doesn't seem to add the file04:48
ideas?04:48
scarabx joined04:48
offby1 I'd be more prone to write a wrapper around "git commit" that simply does the add, and then commits04:49
j416 hmm04:49
rakoth left04:50
rakoth joined04:50
offby1 back when I hung out in #svn, people would ask the equivalent question, and the answer was always either a) it's not possible for a pre-commit hook to modify the commit; or b) it's a _really bad idea_ to have the pre-commit hook modify the commit04:51
(forget which)04:51
j416 ok!04:52
I wonder how I should wrap it... hm04:52
Lemao left04:52
offby1 oh, just a two-line shell script ought to do it04:52
j416 yeah.. just trying to figure out where to put it04:52
linoj left04:54
offby1 j416: http://gist.github.com/13991704:54
untested, but you get the idea04:54
utu joined04:55
j416 yeah... thanks04:55
I got that part04:55
rather, I was thinking of how to organise it all04:55
(so that I wouldn't forget to run the script instead of git commit, for instance..)04:55
maybe I should just dump manually04:56
yeah.. that seems good04:56
sorry :)04:56
offby1 that "how do I remember to run the script" is indeed the trickiest part :-|04:56
perhaps you could have your pre-commit hook _reject_ the commit if it doesn't find your sql dump file in it somewhere.04:57
j416 offby1: that's clever04:57
offby1 and zap you with a cattle prod for good measure04:57
j416 haha04:57
offby1 it'd only take a few times before you'd have formed the habit :)04:57
j416 although04:57
I'm thinking, maybe a dump isn't needed for each and every commit04:57
offby1 well, probably not :)04:58
j416 I guess I could do it manually when needed instead04:58
it will be cleaner04:58
offby1 that kind of thing sounds more like a backup than revision control04:58
j416 i have written scripts for dump/restore so i just need to run those when needed04:58
yeh04:58
dsop left05:01
ankit9 left05:03
MikeStone I'm trying to install git locally on my new hostmonster account, and make is blowing up... I've been trying to google for a resolution to no avail... would this be the right place to seek help?05:04
offby1 yep05:04
betcha you're missing some lbirary05:05
library05:05
either install it, or poke around in the Makefile to divine the magic incantation that tells make to skip that part05:05
MikeStone well, it's failing to make during the perl target it looks like05:05
offby1 like, "make NO_CURL=1" or something05:05
hm, you probably need perl05:05
hard to imagine git without perl05:05
MikeStone well, I have perl, and I exported PERL_PATH=where it is installed05:05
offby1 MikeStone: paste a transcript why dontcha05:05
also mention what OS it is05:06
MikeStone sure, one sec05:06
dsop joined05:06
MikeStone hmmm, what's the command to see the os again? I just have shell access, so not quite sure05:06
Khisanth uname -a :)05:07
MikeStone cool, thanks! hmmm.... just says GNU/Linux, 64 bit version05:07
perhaps just vanilla linux... not a particular distro....?05:08
offby1 MikeStone: lsb_release -a05:08
maybe look in /etc/motd05:08
MikeStone not a command05:09
offby1 it's a plain text file if it exists at all05:09
MikeStone /etc/motd not a file I have access to if it exists05:09
bernd_ left05:09
offby1 "motd" == "Message Of The Day"05:09
odd indeed.05:09
MikeStone well, it's hostmonster, they may have a custom linux build or something05:09
offby1 "ls -l /" _might_ give a clue05:10
MikeStone ok, here's the make results with verbose turned on:05:10
make -C git-gui gitexecdir='/home6/invotati/Applications/git/libexec/git-core/\05:10
' all05:10
make[1]: Entering directory `/home6/invotati/Downloads/git/git-1.6.0.4/git-gui'05:10
make[1]: Leaving directory `/home6/invotati/Downloads/git/git-1.6.0.4/git-gui'05:10
make -C gitk-git all05:10
make[1]: Entering directory `/home6/invotati/Downloads/git/git-1.6.0.4/gitk-git\05:10
'05:10
make[1]: Nothing to be done for `all'.05:10
make[1]: Leaving directory `/home6/invotati/Downloads/git/git-1.6.0.4/gitk-git'05:10
make -C perl PERL_PATH='/ramdisk/bin/perl' prefix='/home6/invotati/Application\05:10
s/git' all05:10
make[1]: Entering directory `/home6/invotati/Downloads/git/git-1.6.0.4/perl'05:10
make[2]: Entering directory `/home6/invotati/Downloads/git/git-1.6.0.4/perl'05:10
make[2]: true: Command not found05:10
make[2]: *** [blibdirs] Error 12705:10
make[2]: Leaving directory `/home6/invotati/Downloads/git/git-1.6.0.4/perl'05:10
make[1]: *** [all] Error 205:10
make[1]: Leaving directory `/home6/invotati/Downloads/git/git-1.6.0.4/perl'05:10
offby1 wow, the web site sure looks sleazy05:10
MikeStone make: *** [all] Error 205:10
[email@hidden.address] [~/Downloads/git/git-1.6.0.4]# uname -a05:10
Linux host380.hostmonster.com 2.6.28-9.15.intel.BHsmp #1 SMP Sat Apr 18 08:53:0\05:11
9 MDT 2009 x86_64 x86_64 x86_64 GNU/Linux05:11
which?05:11
offby1 MikeStone: in the future, when we say "paste", we don't mean 'paste in the channel'; we mean 'paste on a paste site like gist.github.com'05:11
MikeStone ooooh, sorry05:11
I'm kind of a noob to irc... sorry!05:11
offby1 .oO("true: Command not found"?!)05:11
offby1 smells a broken setup05:11
lut4rplut4rp_AFK05:11
girishr left05:11
MikeStone yeah... it kinda seemed funky to me05:11
marc joined05:12
offby1 well, if _I_ made a brain-dead distro like that, I wouldn't put _my_ name on it, either :-|05:12
MikeStone I would try to figure it out myself, but I haven't touched a Makefile in years... kinda lost as to how to debug the problem05:12
offby1 I think you need to talk to hostmonster05:12
marvil07 joined05:12
offby1 bets there is nobody there with a clue05:12
marcmarc_kdab05:12
Superbaloo joined05:12
MikeStone well, they seem to be pretty good so far05:12
some posts online indicated installing git on hostmonster would be a snap... maybe they had a host with a more standard distro or something05:13
offby1 clearly not aimed at programmers, though05:13
MikeStone no, I think it is geared for people just putting junk up quickly... they have 1 click installers for the popular content management systems and blogs and whatnot05:14
offby1 mm hmm05:14
MikeStone but they host rails pretty cheaply, and came recommended from a good friend05:14
offby1 I will bet you there is a maximum of one person at that company with enough technical smarts to answer your question05:14
MikeStone I hope you are wrong, but I bet you are right05:15
offby1 faq says it's CentOS05:15
MikeStone do you know what blibdirs is?05:15
offby1 http://www.hostmonsterforum.com/showthread.php?t=316905:15
MikeStone: blibdirs, if I recall correctly, is some directory in which perl expects to find binary something-or-others05:15
scarabx left05:16
tlrobinson i'm looking for a way to merge a sub tree of one branch into another branch. the subtree merge seems to be merging a whole branch into a subtree of another branch, is that correct?05:16
offby1 CentOS release 4.7 (Final) maybe05:16
Chouser git show --pretty=oneline <commit id> # prints a patch too05:17
MikeStone well, thanks for all the help, I'll figure it out eventually, I'm sure... sorry again about the paste ;-) I'll remember that for next time05:17
Chouser what's the right way to get just the first line of the commit message?05:18
offby1 MikeStone: hmm, CentOS 4.7 isn't very old. It should be doable, somehow05:18
MikeStone yeah, I can't imagine they cripple the server THAT much...05:18
offby1 Chouser: (didn't we discuss this already?) "git log --format=%xx" for some value of x :)05:18
MikeStone I wish they supported git out of the box though.... I don't want to go back to svn ;-)05:19
Chouser offby1: sorry if my brain is slipping, but I don't see how to get log to print just the one commit I want05:20
offby1 Chouser: git log --format=%s SHA1 -105:20
wsc joined05:20
Chouser ah, thanks05:20
jceb joined05:21
Chouser --pretty=format:%s05:21
offby1 --format=%s works too in newer versions05:21
Sonderblade_ left05:22
sgrimm joined05:22
Chouser oh, ok05:23
zdennis left05:23
johan-s left05:24
bernd_ joined05:27
disappearedng left05:28
sitaram MikeStone: cat /etc/issue may tell you what distro it is05:28
jackdempsey left05:28
sitaram wakes up05:28
MikeStone left05:30
cehteh left05:32
wereHamster good morning sitaram :)05:32
upul joined05:35
SjB left05:36
sitaram wereHamster: good morning!05:36
I guess you saw Linus's reply... :)05:37
sitaram wonders if arafangion is around...05:37
bizhat joined05:37
wereHamster hm, linus's reply to what?05:37
hydrogen left05:38
wereHamster re. nfs?05:38
sitaram aah... am I thinking of someone else...? there was this argument yesterday about what happens if you put a bare repo on an NFS/CIFS server and different people access it directly via mount05:38
yes nfs05:39
wereHamster reading it right now :)05:39
sitaram so it was good to hear that it will "just work" (modulo "git gc --prune", which is fine!)05:39
Moult joined05:40
sitaram and on a side note, it increasingly looks as if the cygwin port (which can do "git daemon", while msysgit cannot) can be really, really ignored. I always liked msysgit anyway, my windows users cant handle more complex installations!05:40
utu left05:41
j416 left05:41
bizhat left05:42
giallu joined05:42
sergeykish left05:46
ankit9 joined05:46
Superbaloo left05:49
lightcap joined05:53
binjured joined05:54
justin-george left05:56
ankit9 left05:59
girishr joined06:00
ph^_ joined06:00
mtvee left06:00
mtvee joined06:00
stableable left06:02
girishr_ joined06:05
krawek left06:06
SwisOffSwistakTheJester06:07
saurabhverma joined06:08
saurabhverma left06:08
Tuomas joined06:10
altrux left06:11
ereslibre joined06:11
marvil07 left06:12
ankit9 joined06:13
johndoigiii joined06:13
ankit9 left06:14
ph^_ left06:14
ankit9 joined06:14
ankit9 left06:14
ankit9 joined06:15
lightcap_ joined06:16
cloudhead left06:17
saurabhverma joined06:17
saurabhverma left06:18
saurabhverma joined06:19
saurabhverma left06:19
ppawel joined06:20
k0001 left06:20
kuadrosx left06:21
context clear06:21
ls06:21
oops06:21
psankar joined06:23
sea-gull joined06:23
k0001 joined06:23
drizzd joined06:23
ereslibre left06:24
k0001 left06:24
k0001 joined06:25
j416 joined06:26
jceb left06:26
gebi left06:26
gebi joined06:26
saurabhverma joined06:28
saurabhverma left06:29
Mage_Dude joined06:29
girishr left06:31
j416 left06:32
lightcap_ left06:33
neoeinstein left06:34
fynn joined06:36
alexyk left06:38
fynn So, I'm using a mergetool for the first time: vimdiff06:38
I have a LOCAL buffer on the left and a REMOTE one on the right.06:38
But what is the actual final version of the file that I'm going to commit?06:38
Basically, I'm asking what's the proper procedure to resolve a conflict through a mergetool that uses a split screen like this.06:39
drizzd_ left06:39
johndoigiii left06:39
tongueroo left06:41
joeytwiddle fynn: i'm not an expert, but i imagine LOCAL is the one you want to fix06:41
fynn joeytwiddle: I thought so too, but it turns out to not be so simple.06:43
is there a way I can mark a file as unmerged?06:43
lightcap left06:43
fynn I'd like to experiment with it a bit.06:43
tomoj fynn: I thought there were supposed to be three windows?06:43
or whatever vim calls them06:43
fynn tomoj: hm, good point, I may have screwed things up with my custom settings ;)06:44
anyways, how do I mark a file as unmerged again?06:44
wereHamster fynn: git checkout -m -- <file>06:44
fynn thanks.06:45
giallu left06:46
tongueroo joined06:47
tomoj I get LOCAL on the left, REMOTE on the right, and another in the middle06:48
Derander joined06:48
fynn tomoj: yup06:50
exactly, just found it in the source:06:50
http://github.com/gitmirror/git/blob/606475f3178784e5a6b3a01dce1a54314345cf43/git-mergetool--lib.sh06:50
ericindc left06:50
Gitbot [git 606475f31]: http://tinyurl.com/ndnztk -- Remove filename from conflict markers06:50
fynn I wrote my own custom difftool and mergetool06:51
but I reused my difftool as the mergetool06:51
vals_ left06:51
fynn and forgot to add $REMOTE to the mergetool one.06:51
sgrimm left06:54
fynn wereHamster: btw, "git checkout -m -- file.py" doesn't seem to mark the file as unmerged.06:54
AkumaStreak left06:55
fynn The file appears as "modified" (and staged) in git status, not unmerged.06:55
thiago_home joined06:56
ankit9 left06:56
ankit9 joined06:56
roop joined06:57
johndoigiii joined06:57
wereHamster does mergetool only pick up files that are marked as unmerged?06:58
thhp_ joined06:59
Fullmoon joined07:00
mnick joined07:00
__bert__ left07:00
fynn yup.07:00
sgrimm joined07:01
bugfux left07:02
tomoj is git leaving the .orig file or is that my mergetool?07:02
tongueroo left07:03
bobesponja left07:03
drizzd tomoj: see the mergetool.keepBackup config option07:04
joevandyk left07:04
sgrimm left07:04
tomoj drizzd: thanks07:04
ssmithstone joined07:05
ciskje joined07:05
bugfux joined07:05
Korren left07:06
ssmithstone I have a svn repos which i've cloned with git svn clone i've created a branch called sprint_1 on the svn and started work with it on my local git with git checkout i've done the work dcommit'd back to the svn into the brances/sprint_1 , now i want to put this on to the trunk so i do checkout master then git merge sprint_1 which pulls the changes into the master branch however when i go to do a git svn dcommit the u07:08
ankit9 left07:08
ankit9 joined07:09
tomoj anyone know about getting emerge mergetool to use emacsclient? I found a bit of discussion about it on the mailing list but no conclusion07:09
khmarbaise joined07:09
ankit9 left07:09
sunoano left07:09
ankit9 joined07:09
ankit9 left07:09
thiago_home ssmithstone: don't use git merge with git svn07:09
it won't work07:09
ssmithstone thiago_home: what command will work ?07:10
thiago_home ssmithstone: none07:10
well, actually, git merge --squash07:10
that will work07:10
bugfux left07:10
khaase joined07:10
sunoano joined07:11
tomoj guess I need to build a custom mergetool as well :(07:11
ciskje left07:11
khaase left07:11
gebi ssmithstone: git merge works, but only if you make a fast forward merge, (you have to rebase your branch on top of trunk)07:12
ciskje joined07:12
thiago_home a squash will work too07:13
ssmithstone thiago_home: cheers that worked a treat just what i wanted07:13
thiago_home there are two problems with a normal merge:07:13
rraasch joined07:13
thiago_home one is that SVN just can't hope to represent the level of information that Git has07:13
second is that git-svn scans the commits to find out which branch to submit to, and it'll find the wrong branch07:13
thiago_homethiago07:14
david joined07:14
davidGuest1553307:14
ssmithstone cheers for the help07:15
GodEater left07:15
justin-george joined07:15
ssmithstone left07:15
GodEater joined07:16
giallu joined07:17
wereHamster or rebase would also work07:18
joshthecoderjoshthecoder_afk07:19
sitaram left07:19
galderz joined07:20
agenteo left07:23
yinzen left07:23
laj left07:23
kingfishr left07:25
AAA_awright Is there a way, or any planned way, to discard all history until the very most recent? Actually, not keep any data in the repository at all? The purpose would be to speed updates/pulling from a server, even better then rsync could.07:25
tango_ joined07:30
girishr joined07:32
j416 joined07:33
drizzd AAA_awright: it's possible to do shallow clones07:34
__bert__ joined07:34
karmi joined07:36
justin-george left07:36
struberg joined07:37
Mage_Dude drizzd: Can't you just checkout a tag/hash? And only pull file versions associated with that tag/hash?07:41
epic how do i truncate all my local patches to 1 big one?07:41
mtvee left07:42
drizzd Mage_Dude: first of all, git only allows you to access published tags or branches for security reasons07:44
if you fetch any one of those, git will download the associated history and all trees07:44
johan-s joined07:45
AAA_awright drizzd: Yeah, I know about that, but can you /keep/ it shallow? Is there any way to prune objects not used by the current checkout?07:45
fr|fr07:45
Ilari AAA_awright: Transfer diffs? With binary diffing enabled so it can handle binary files?07:45
drizzd AAA_awright: I don't think so07:45
Ilari AAA_awright: And 'git apply' works without repository.07:46
AAA_awright Not exactly what I had in mind07:47
A client only needs to tell a server I have revision x, and the public repository server simply sends the compressed changes, more efficent then rsync.07:48
fujin joined07:48
jmesnil joined07:49
drizzd AAA_awright: yes, in theory you are correct. Git cannot currently do that.07:50
dreiss left07:51
drizzd OTOH, if you really benefit from the diff, the overhead of getting the versions in between should not be too great.07:51
Derander left07:51
tbf|zzztbf07:51
drizzd s/diff/delta07:51
ceyusa joined07:51
drizzd has to leave07:52
ikrabbe joined07:52
priidu joined07:53
Superbaloo joined07:56
AAA_awright What about git --git-dir=.gitnew clone --shallow 1 .git07:57
rs left07:57
AAA_awright Then rm .git, mv .gitnew .git, though that is a bit of a hack...07:57
thiago left07:58
wereHamster imho, discarding history won't make pulling much faster. commits and trees make up a very small fraction of the actual data.07:59
lbt joined07:59
ponch joined08:01
rakoth left08:02
naeu joined08:02
aatanasov joined08:02
AAA_awright I know how efficent git is at packing objects, but if you are never going to use the history (only the public repo would keep history to resolve diffs), why heep it around? My intended target is for fairly large binary files, anyways.08:02
Pewpewarrows left08:03
shruggar joined08:03
struberg1 joined08:03
Ilari AAA_awright: The server can give client a tag that client replays on next update...08:04
aatanasov left08:04
robinr joined08:05
AAA_awright You could, but I still like the idea of this with Git because you can commit changes and push them to a mirror.08:06
kinkerl joined08:06
ponch Hi all. Is there a way to convert a single trivial commit into a standard patch as would be created by the standard diff program? I mean without the git extensions such as sha indication etc...08:06
AAA_awright git diff HEAD HEAD^ (right?)08:07
struberg1 or git diff hash1 hash208:07
aatanasov joined08:07
Ilari ponch: Or 'git format-patch <commit>^!'.08:07
ponch but i don't want the lines beginnig with "diff --git ..." and "index ..."08:08
Ilari You can't disable sha indication. Standard patch should be able to digest it anyway.08:08
AAA_awright I thought those were just comments08:08
wereHamster AAA_awright: what about git archive?08:09
j416 left08:09
drizzd left08:09
ponch yes i know that, but sometimes i send git diff to people worrying about those lines and i'd like to know if is there a way to disable them08:11
Ilari ponch: AFAIK, no, there isn't.08:11
ikrabbe I have a development host (D) and a deployment host (I), where D can reach I, but I cannot reach D. So I want to push my changes from D to I. But I get that warning that I need to set receive.denyCurrentBranch=ignore.08:11
AAA_awright Maybe for something else... hm... but no. Just some way to keep an absolute minimum amount of data in the repository.08:11
ponch ok thanks for the clarification08:11
ikrabbe is there another way for doing so ?08:11
Ilari ponch: Extensions like copies, renames, binary patching... Those aren't compatible with ordinary patch and aren't even on by default.08:12
ikrabbe or is there a way that I don't need to reset --hard my host (I) everytime I push into its current HEAD?08:12
saurabhverma joined08:12
__iron joined08:13
Ilari ikrabbe: Set up suitable hook. See man githooks08:13
Gitbot ikrabbe: the githooks manpage can be found at http://git.or.cz/man/githooks08:13
Ilari ikrabbe: And as hint: Push is not a commit.08:13
ikrabbe I know, I first commit, then I push08:13
charon ikrabbe: said hook is also described in ,faq non-bare08:14
Gitbot ikrabbe: Pushing to non-bare repositories is discouraged. See http://git.or.cz/gitwiki/GitFaq#non-bare08:14
ponch Ilari: yes I know that, but I have this need only for trivial patches changing one or two lines per file08:14
Ilari: I think I'll use sed and grep08:15
fynn left08:16
rakoth joined08:16
Ilari ponch: But AFAIK, the stuff that's on by default IS.08:17
cedricv left08:17
Ilari ponch: Perhaps even future versions of patch could deal with full set of git extensions to that format... But some extensions are bit nasty to support fully.08:19
cedricv joined08:20
ben_h left08:20
Ilari ponch: I tested: patch does not bork on diff --git and index lines...08:22
JohnFlux joined08:23
ikrabbe ok, I understand, that pushing to non-bare repos is discouraged. But my action isn't too uncommon. Maybe I should setup a bare repo near the deployment copy. Actually those hooks don't satisfy me too. Are there other solutions for that topic ?08:23
Weaselweb joined08:23
JohnFlux when I do "git branch -a" how do I know what branches are local and which are remote?08:23
hmm I'm confused08:24
if I do "git branch -r" it shows me branches which have been deleted on remote08:24
mithro left08:24
JohnFlux I basically want to delete any local branches that I've deleted the remote branch for08:24
wereHamster JohnFlux: branches that start with remotes/ are remote tracking branches08:24
ikrabbe JohnFlux, git branch -a shows remotes/XXX/branch for remote branches08:24
bremner JohnFlux: man git-remote08:24
JohnFlux hmm I think i need a newer version of git08:24
Gitbot JohnFlux: the git-remote manpage can be found at http://git.or.cz/man/git-remote08:24
wereHamster JohnFlux: and take a look at git remote prune08:24
charon ikrabbe: sorry for being unclear. i know that the faq entry states you "shouldn't" do that, but you have the exact use-case and the faq _also_ describes the hook required for that.08:25
struberg left08:25
wereHamster JohnFlux: or you can use git branch -a --color08:26
solydzajs joined08:26
saurabhverma left08:26
ponch Ilari: yes, true. but there isn't a way to remove those lines, apart using sed and grep. I was asking only this.08:27
karmi_ joined08:27
Ilari ponch: Just removing the diff --git line might actually break patch.08:28
Teo` joined08:28
ponch Ilari: just remove the ^index line, and the "--git " token08:28
johndoigiii left08:28
ponch Ilari: I'm not saying to work this this normally, but only in rare occasion08:29
sfwc left08:31
Ilari ponch: Some stupid patch-lookalike on remote side?08:31
ponch Ilari: yes08:32
Ilari ponch: And if it is, just doing those modifications won't necressarily make it work.08:32
ponch Ilari: true, and I now understand why there isn't a way to do it08:32
Ilari Normal patches can be stream-processed. Doesn't work for some git extensions (without making backup files in some cases).08:34
saurabhverma joined08:34
saurabhverma left08:34
Ilari That's the main difficulty in supporting git extensions in patch utility...08:35
And the index lines are effectively unsupportable (good thing that they can be mostly ignored) by anything except git. But OTOH, not even git apply can always use them (they require access to repository).08:36
voker57 joined08:37
rakoth left08:40
aatanasov left08:40
fujin_ joined08:40
lut4rp_AFKlut4rp08:43
Mage_Dude left08:43
ph^ left08:46
Guest15533 left08:47
fujin left08:50
bentob0x joined08:51
karmi left08:52
JohnFlux left08:53
ikrabbe charon. yes I've read that. somehow the hook solution doesn't satisfy me, as its far to complex, though its stated to be easy (the mentioned link). I will think about a better solution, like pushing into a non active branch.08:53
ceyusa left08:53
cpg left08:54
charon ikrabbe: if you *know* you will never have uncommitted changes in that repo (i.e., never work in it directly) you can also just use 'git reset --hard' as the hook action08:54
DavidKlein joined08:54
ikrabbe charon, yes, but maybe there is a smarter solution to that topic ... git reset --hard, sounds so ... well ... hard.08:55
charon :)08:55
there's also a receive.denycurrentbranch = updateinstead patch floating on the list08:56
ikrabbe :D08:56
how about a git deploy08:56
ceyusa joined08:56
tomoj ikrabbe: I'm currently setting up capistrano on my host :)08:57
charon ikrabbe: http://article.gmane.org/gmane.comp.version-control.git/110251/match=updateinstead08:57
khmarbaise left08:57
charon ikrabbe: and http://article.gmane.org/gmane.comp.version-control.git/121334/match=updateinstead for a success story08:57
rudi_s joined08:57
kobani joined08:57
Marmouset left08:57
khmarbaise joined08:57
reaVer left08:58
ponch left08:59
ponch joined08:59
mat69 joined09:00
jds left09:01
mat69 is there a way to merge specific commits to clean up a local git branch before pushing upstream --> e.g. commit nr. 1 with nr. 12 (using nr. here to show that a lot were inbetween) as these are on the same thing?09:02
ams joined09:02
charon mat69: man git-rebase, interactive mode, "squash" action09:03
Gitbot charon: the git-rebase manpage can be found at http://git.or.cz/man/git-rebase09:03
mat69 charon: thank you! will try that :)09:03
psynaptic joined09:03
fujin_ git reset --soft HEAD~12; git commit -a is one I tend to use when I can't be arsed interactive rebasing09:03
fujin_fujin09:04
shruggar or just "git rebase -i the-upstream-branch", it's pretty intuitive.09:04
charon fujin: that would squash all 12 of them09:04
intripoon joined09:04
reaVer joined09:04
psankar left09:04
fujin ya, thus the lazyfactor09:04
charon you shouldn't act lazy when pushing upstream09:04
jds joined09:04
charon besides, -a and --soft are sort of contradictory09:05
fujin yeah, no09:05
justin-george joined09:05
charon (not that they contradict each other, but the intent of --soft is to keep the original commit but -a says to also grab anything that was unstaged)09:05
shruggar ick, so you just squash 12 random commits into one?09:05
fujin Occasionally, yeah.09:06
saurabhverma joined09:06
charon let's hope you never need to revert one of the original 1209:07
fujin well considering I just wrote and commit all 12 and then decided that I wanted to squash them into one09:07
I'd say that's unlikely09:07
shruggar I find rebase -i to be a good sanity check to make sure the changes I'm committing are actually what I wanted. Like the commit-level version of doing git add --patch instead of git add09:07
fujin seriously though, thanks for trying to tell me how to operate git09:07
charon well, if you're offended by good advice maybe you shouldn't give bad advice to someone clearly not asking for what you told him09:08
shruggar okay, I'm separating us three before a fight breaks out :)09:08
fujin dude, that wasn't good advice09:09
you told me shit I did not want to here and presumed I didn't know the intended behaviour09:09
they are a similar enough operation that it was worth mentioning09:09
go back to being asleep or clueless09:09
shruggar I think interactive rebasing is fun :)09:12
fujin yeah, me too09:13
shruggar it makes me feel a little powerful after I do it, like I could control the weather or something09:13
psankar joined09:13
fujin totally :]09:13
Octalot joined09:15
the_undefined_ joined09:15
the_undefined_ is there a command listing all "untracked" files? Ideally within a given path?09:15
fujin left09:16
the_undefined_ this is the closest I have gotten to: git clean -n scripts/09:16
just wondering if there is an alternative that does not have any human-readable text mangled with it09:16
shruggar the_undefined_, what is your goal? Do you need to pipe a clean list to a script, or see them in a.. okay, that answers that09:16
sitaram joined09:16
fujin joined09:16
charon the_undefined_: git ls-files -o -- scripts/09:17
the_undefined_ shruggar: pipe the list into a script I'm writing09:17
thx charon !!09:17
works perfectly09:17
justin-george left09:18
ponch left09:19
sadleder joined09:19
name joined09:25
dys` joined09:25
doener joined09:28
lut4rplut4rp_AFK09:30
voker57_ joined09:30
dys left09:31
mcella joined09:31
jeffrey__ left09:31
WinterWeaver joined09:32
dys`dys09:33
JohnFlux joined09:36
icwiener joined09:37
Moult left09:38
Hendu joined09:39
jony joined09:43
jony left09:43
_daniel_ joined09:45
aatanasov joined09:45
flippo left09:47
voker57 left09:48
Moult joined09:52
psoo joined09:53
Gabriel joined09:55
sitaram left09:56
elmob joined09:58
cedric_ joined10:01
Pewpewarrows joined10:01
sgrimm joined10:02
yann|work joined10:03
yann|work there is no option to git-apply to accept line offsets ?10:04
sea-gull left10:05
aatanasov left10:05
shilin joined10:07
shilin hi, 'git grep -c abc' - give me all files, even with zero abc, how to make it output only files that contain 'abc' ?10:08
mat69 left10:10
tomoj shilin: man git-grep10:10
Gitbot shilin: the git-grep manpage can be found at http://git.or.cz/man/git-grep10:10
mat69 joined10:12
HG` joined10:12
aeiou joined10:13
bentob0x left10:14
aeiou I have a dir (projectsettings/) that i want git to ignore, but i already added it via git add *10:14
do i add it to .gitignore then git-rm ?10:14
i dont want to delete it from the hdd just from being versioned10:14
charon aeiou: git rm --cached10:15
Chillance joined10:15
aeiou thanks!10:16
shilin been there before asking :), but still don't see the right option, in git community book -c is enough for what I am looking for10:17
bonhoffer joined10:17
robinr left10:18
peti joined10:19
bonhoffer rubymine is asking for "origin name" what is that?10:19
aeiou are there any git repository viewers that run on php?10:19
i just want to see the directory tree and differences10:20
w|shimmy (hint: git grep -c --all-match abc)10:20
bonhoffer i am using gitosis with a clone url of git@myserver:foo.git10:20
aeiou i dont need any fancy ticket systems10:20
Cynner joined10:20
peti Hi. Does anyone know whether Git can access a repository over (anonymous) FTP instead of HTTP?10:20
Cynner left10:21
doener shilin: doesn't happen for me10:21
Ilari peti: AFAIK, yes.10:21
peti: But fetch only, no push.10:21
w|shimmy shilin: its --all-match, in addition to -c10:22
peti Ilari: Very cool. Do you by any chance know whether I can configure an external program that's to-be-used for fetching? I.e. can I tell Git to call nc-ftp?10:22
shilin I see now, for some reason I considered that to be a synonim for -c when looked at help in my terminal, my bad, thank you!10:23
Dvyjones joined10:23
jaeckel joined10:23
Ilari peti: Nope. It uses curl to do the transfers.10:23
peti Ilari: Hmm. That's a shame. I am behind some mad firewall that requires a special FTP client to get through. I don't think libcurl can do that.10:24
parasti joined10:24
bentob0x joined10:24
Ilari peti: Probably just active/passive mode thing?10:25
peti Ilari: I don't know for sure. All that knowledge is super secret. :-|10:26
linopolus joined10:26
doener w|shimmy: hm? "git grep -c abc" and "git grep -c --all-match abc" do the same for me10:26
linopolus Hi10:26
peti Ilari: Anyway, it's simple enough to find out ... I'll just try it.10:26
linopolus left10:26
Ilari peti: The difference between active and passive is that one opens the data connection from server to client and the other opens it client to server.10:27
peti Ilari: Yes, I know the FTP protocol.10:27
w|shimmy doener: I get a full list :0 with just -c.10:28
doener w|shimmy: git version? mine's git version 1.6.3.3.385.g6064710:29
makiesmakies_bot10:29
klbate joined10:29
w|shimmy git version 1.6.3.3.467.g98a7910:30
doener w|shimmy: that's next I guess?10:30
w|shimmy doener: yeah, from some time in the last week or two10:31
bonhoffer left10:31
cipio joined10:31
JohnFlux what's the magic command to enable colors?10:32
and why isn't it on by default :-)10:33
it's so hard to find the command via google10:34
ia left10:34
ia joined10:34
cedric_ left10:34
JohnFlux ah color.ui that's the key10:34
doener w|shimmy: hm, now that's interesting... If I redirect stdout, then I see the :0 lines10:35
cipio so for some reason, rubymine can connect to my git clone and pull it down - -but command prompt gives me: "fatal: The remote end hung up unexpectedly"10:35
in windows10:35
doener w|shimmy: http://git.pastebin.com/m359b265910:36
w|shimmy doener: my git grep is paged, is that default?10:36
Yuuhi joined10:36
doener w|shimmy: if I make the terminal window small enough, I get it paged as well. less is started with -F, so big window => less quits10:39
w|shimmy: but even with the small window, I don't see the :0 lines10:40
w|shimmy doener: interesting. git log builtin-grep doesn't have anything that looks related recently either10:41
peti Ilari: I tried it, but unfortunately Curl doesn't get past the firewall. Apparently, I really need that specially patched ftp client program. :-( Anyway, thank you for your help!10:41
Ilari peti: You tried that active/passive (probably there's way to set it)?10:42
peti Ilari: Yes, I did, but it didn't make a difference.10:43
doener w|shimmy: hm, if I don't redirect stdout, I see just git, sh and less being execve'd (strace)10:45
w|shimmy: but if I redirect stdout, I see grep (non-git) being executed10:45
fujin left10:45
Ilari peti: Get connection dump (strace, tcpdump, wireshark?) somehow and figure out what ncftp is doing to get past the firewall...10:45
peti Ilari: I don't have root privileges, so I cannot tcpdump anything. Strace might work, though, I could try that.10:46
Ilari peti: Extracting the connection data from strace is not trivial.10:47
doener w|shimmy: and of course it never happens when you use --cached or a specific tree (as an external grep wouldn't find that)10:48
peti Ilari: Yes, and to make matters worse, there's no strace on that machine either.10:48
fujin joined10:49
doener w|shimmy: Ah! Found out what's going on10:50
cytrinox left10:51
Ilari peti: wget --passive-ftp doesn't work?10:51
doener w|shimmy: I have colors enabled for git-grep, which causes it not to use an external grep10:51
peti Ilari: No.10:52
w|shimmy doener: I think I do too; but I'm only seeing git being execve'd10:53
Ilari peti: Wonder what the heck that firewall is doing then...10:53
doener w|shimmy: maybe you forgot to use strace with -f?10:53
w|shimmy doener: of course I did10:53
Ilari peti: But if you could hack libcurl to make ncftp handle the connections, that could work.10:53
peti Ilari: The admins probably hardcoded some magic port number or something. It's security by obscurity.10:54
w|shimmy doener: yep, external grep called10:54
karmi_ left10:54
doener w|shimmy: yeah, and with "git grep --no-color -c abc" I see the :0, too10:55
w|shimmy: and you should not see them with "git grep --color -c abc"10:55
peti Ilari: I would like Git to call that external program (curl, wget, ncftp, whatever) without libcurl being involved at all. It baffles me that this is not possible, because it's actually quite simple to implement.10:55
w|shimmy doener: yep10:56
doener (or just --no-ext-grep)10:56
Ilari peti: Nope, it isn't simple to implement.10:57
peti Ilari: Huh? What's difficult about calling an external program to fetch a file from an URL?10:57
Ilari peti: The dumbfetcher code is quite tightly bound to libcurl.10:58
cytrinox joined11:00
peti Ilari: I don't know ... I never really looked at the code. To be honest, I don't know libcurl very much either. Maybe what I'm trying to do is really simple, but I just don't know about it. I guess, I'll be reading some documentation. Again, thanks for your help.11:00
d0k joined11:01
ntoll joined11:02
the_undefined joined11:03
peti Take care, guys.11:03
peti left11:03
moonflux joined11:05
ikrabbe curl is very capable of doing everything to HTTP11:05
mat69_ joined11:06
spaceonline joined11:08
aziz joined11:12
girishr left11:14
elmo2k3 joined11:17
sgrimm left11:19
mat69 left11:20
the_undefined_ left11:22
UUncia joined11:22
disjunctor left11:24
elmo2k3 left11:27
elmo2k3 joined11:27
voker57_ left11:28
girishr_ left11:28
voker57_ joined11:28
spaceonline left11:29
cipio left11:30
bonhoffer joined11:30
elmob left11:32
Moult left11:32
corni joined11:33
juanjoc joined11:33
savonarola joined11:34
mbroeker joined11:34
savonarola left11:34
savonarola joined11:34
upul left11:35
savonarola left11:35
priidu left11:36
hpoydar joined11:38
makies_botmakies11:42
Hendu left11:43
aatanasov joined11:43
sergeykish joined11:44
savonarola joined11:45
savonarola left11:50
Fatal joined11:51
Fatal is there a way for me to see all deleted files throughout the history of my tree?11:51
worded that wrong, I bet there is, so the question should probably be; how can I find files that I deleted a bunch of commits ago11:52
doener Fatal: git log --all --diff-filter=d --name-only --pretty=format: | sort -u11:52
Ilari Fatal: 'git log --name-status --diff-filter=D'?11:53
doener Fatal: ehrm, --diff-filter=D (upper case)11:53
Fatal doener/Ilari: thanks11:54
tomoj Fatal: did you pick that nick so that messages to you would look like errors? :D11:55
Fatal tomoj: sadly no11:55
marvil07 joined11:55
Fatal tomoj: but that's the main reason why I stopped idling in here :)11:55
Hendu joined11:56
scientes_ left11:57
disjunctor joined11:57
bonhoffer left12:02
LylePerl left12:04
ankit9 joined12:04
ankit9 left12:04
sergeyki1h joined12:05
Hendu left12:05
jrmuizel joined12:06
jrmuizel left12:06
kbingham joined12:07
mcella_ joined12:08
mcella left12:08
hummingkid left12:10
taher joined12:11
Cromulent joined12:14
lut4rp_AFKlut4rp12:16
ankit9 joined12:17
sadleder left12:22
bonhoffer joined12:22
ankit9 left12:22
rraasch left12:22
ankit9 joined12:22
DavidKlein left12:23
elmex_ joined12:23
alanhaggai joined12:23
shruggar considers changing his nick to "Warning"12:24
sitaram joined12:25
Saviq joined12:25
dys left12:25
Saviq guys how do I get diff of two latest revisions?12:25
jast you mean "git show"?12:26
sukut joined12:26
taher left12:26
Saviq or "git diff", I want to create a diff of last two commits12:26
ankit9 left12:26
giallu left12:26
shruggar git diff HEAD~2..HEAD ? does that not work?12:27
sergeykish left12:27
sukut is there a way to see a version of a file without having to checkout?12:28
Saviq shruggar: it probably does :) I'm completely new to git12:28
shruggar git show commit-sha:path/to/file/relative/to/root/of/work/tree12:28
to sukut ^12:29
teuf left12:29
Saviq hmm I cloned from git://github.com/philn/pygobject.git (http://github.com/philn/pygobject/tree/wakeupfd) but I don't see the commits made in this branch... do I need to switch somehow after cloning?12:29
teuf joined12:29
dkr21 left12:29
dkr21 joined12:29
jrmuizel joined12:30
shruggar Saviq, not sure I understand the question, but "checkout" is how you switch between local branches. You may want to look through the "gittutorial" manpage12:31
sukut shruggar: I did try that, but it says "fatal: ambiguous argument my-giant-commit-hash:path/to/my/file"12:31
Saviq shruggar: try cloning git://github.com/philn/pygobject.git12:31
according to http://github.com/philn/pygobject/commits/wakeupfd/ it should have two commits from philn12:32
Ilari sukut: Does it say the same for 'git show my-giant-commit-hash'?12:32
Saviq and I don't seem to have it here after cloning :/12:32
Bass10 joined12:32
sukut shruggar: no, it shows the commit log and patch12:33
shruggar Saviq, they seem to be in the "wakeupfd" branch12:33
Saviq yeah, how do I switch... sorry, but I'm really not yet familiar with git12:34
shruggar Saviq, seriously check out the git tutorial :) git co --track -b wakeupfd remotes/origin/wakeupfd if I recall correctly12:35
Saviq shruggar: yeah got it :) thanks12:36
sukut shruggar: sorry, it did work, my mistake, the path was wrong, thanks12:36
shruggar sukut: try "git log --name-only my-giant-commit-hash" to verify the- yay, I was right! :)12:36
Saviq shruggar: though git doesn't undertand 'co'12:36
shruggar Saviq, woops.. me and my aliases12:36
Saviq :)12:36
elmex left12:37
elmex_elmex12:37
sitaram shruggar: you have an alias that expands to "yay, I was right! :)" ? cool!12:37
shruggar sitaram, no, no.. I don't type that /nearly/ enough to need an alias12:37
sitaram :)12:38
sukut ha ha ha12:38
hydrogen joined12:39
sgrimm joined12:39
_daniel_ left12:40
Saviq left12:45
sea-gull joined12:46
lorandi joined12:49
jrmuizel left12:50
Bennid joined12:51
ericindc joined12:52
Bennid left12:52
Pewpewarrows left12:53
Bennid joined12:53
giallu joined12:53
mcella_ left12:54
Will|workHarrison13:00
shruggar in my git manpages, there are a lot of blocks which look like: .ft C\nsome example commands\n.ft I assume the ".ft" parts are some formatting thing which isn't being translated correctly when I "make doc"... anyone know what might be causing it?13:01
charon shruggar: mess with the ASCIIDOC* Makefile variables and pray13:01
HarrisonWill|work13:03
hpoydar left13:05
struberg1 JGit question: how to checkout without using the GitIndex?13:05
hydrogen left13:05
corni left13:06
sitaram shruggar: for what it is worth, asciidoc drives me nuts sometimes. I have one machine on which it all works fine, so I build only on that machine now :)13:08
mw joined13:08
shruggar sitaram, I don't use asciidoc, I use git, so all I really care about is how to fix it, however it's generated :/13:09
doener shruggar: just use "make quick-install-doc" in a git.git clone13:11
sitaram shruggar: me too; which is why when I found one place that worked I'm sticking to it; sorry for not being helpful13:12
alienbrain joined13:12
doener shruggar: it's not worth messing with asciidoc to build the docs yourself. Well, unless you're working on the docs13:12
voker57__ joined13:12
aspotashev|eeepc joined13:12
rhett joined13:15
stringo0 joined13:15
sitaram shruggar: you know what, I've got those too now... dang!13:17
charon i can't find a working combination of ASCIIDOC8 and DOCBOOK_XSL_172 either... doener's advice is probably best13:17
shruggar it's some sort of information virus, we should stop talking about it before we're all infected!13:18
whaley_whaley13:18
sergiodj left13:18
Lemao joined13:19
shilin left13:19
Lemao left13:19
hpoydar joined13:21
laj joined13:22
patrikf joined13:22
charon aha! ASCIIDOC8=1 ASCIIDOC_NO_ROFF=1 works here, with asciidoc 8.4.4 and docbook-xsl 1.74.013:22
of course _NO_ROFF is only mentioned in Documentation/Makefile13:23
but that one also has a nice table mapping docbook-xsl versions to configuration variables13:23
of course it still formats the "Rule" blocks in gitworkflows as "Example". duh.13:24
shruggar make quick-install-doc works for me. I wasn't previously aware of it13:25
jaeckel left13:28
jksz_ left13:28
sitaram doener: last time I did what you said, I got manpages that were _ahead_ of the actual (stable) version, because that only picks up the latest "origin/man". May not be a big deal though...13:29
ceyusa left13:29
hummingkid joined13:30
dodo_the_last joined13:30
priidu joined13:31
sitaram (although it is possible to get precisely what you want but just checking out a specific commit and copying the files!)13:31
krawek joined13:31
voker57_ left13:34
doener sitaram: or by using "make quick-install-doc DOC_REF=$what-you-want"13:34
sitaram doener: wow -- that works? I took a look at the makefile and thought origin/man was hardcoded -- I guess I don't know makefiles that well!13:34
doener: thanks!13:34
kukks joined13:35
doener sitaram: just be careful with it, if you use "DOC_REF=master", I guess it'll just copy the source code to the man dir13:35
sitaram doener: I know... it's just doing some plumbing to directly take the tree from a ref and pump it out to some place :-)13:38
schambers left13:39
Chillance left13:40
leehambley joined13:40
leehambley how do I reset a single file to a revision that is head~2 ?13:40
reset says "dan't use reset with paths"13:40
I have the sha1 of the version i wanna go back to13:40
sitaram you can use checkout13:41
ben_h joined13:41
shd leehambley: git checkout revision -- file13:41
leehambley: it's not a "reset" however.. you may want to consider using git revert also13:42
sitaram shd: if it's a single file he wants to do this to, a checkout is the only thing that makes sense (to my mind)13:42
leehambley ohh, thanks - I don't mind about `breaking` the history13:42
thanks13:42
sitaram (assuming other files were also affected by commits in between)13:43
marvil07 left13:43
shd sitaram: assuming HEAD~2 changes more than one file13:43
leehambley sitaram: shd that checkout was perfect, thanks13:43
sitaram shd: right, thats what I wanted to say13:43
struberg1 left13:44
marc_kdab left13:46
MisterN joined13:49
jrmuizel joined13:50
schambers joined13:51
psankar left13:52
schambers1 joined13:53
harinath left13:55
Chillance joined13:56
sitaram left13:56
aeiou left13:57
offby1 left13:57
solydzajs left14:00
harinath joined14:00
hugoxrosa joined14:02
w|shimmy left14:02
solydzajs joined14:03
boto joined14:04
solydzajs_ joined14:07
wshimmy joined14:07
mefesto joined14:08
__bert__ left14:08
__bert__ joined14:08
schambers left14:09
bentob0x left14:10
bentob0x joined14:10
disjunctor left14:12
knittl left14:13
mithro joined14:14
dodo_the_last left14:14
aziz left14:16
harinath left14:18
dodo_the_last joined14:19
solydzajs_ left14:19
solydzajs left14:22
ikrabbe left14:24
tim_jenssen left14:24
MetaCosm joined14:27
spaceonline joined14:28
jackdempsey joined14:29
ericindc left14:33
ericindc joined14:35
DaveIngram joined14:40
tbf left14:41
disjunctor joined14:43
aatanasov left14:43
rogg joined14:46
Strogg left14:47
roggStrogg14:47
roop left14:48
offby1 joined14:50
c0dem4gnetic joined14:50
lut4rplut4rp_AFK14:50
knittl joined14:51
schambers1schambers14:51
moonflux left14:51
lamalex joined14:52
lamalex Can anyone give me a hand wrapping my head around rebase?14:52
offby1 ha14:52
DavidKlein joined14:52
offby1 sure14:52
WinterWeaver left14:52
offby1 hand, head, heart!14:52
yann|work left14:52
lamalex :)14:53
offby1 struggled with that14:53
offby1 got a specific question?14:53
johan-s left14:54
reprore joined14:54
lamalex I'm trying to get a branch ready for merging, but dont really want all of my mini commits appended to master's log14:54
i tried doing git rebase -i master14:54
but it failed :(14:54
offby1 how?14:55
what'd it do?14:55
that was the right thing to do, by the way14:55
given the problem you just stated.14:55
lamalex Cannot 'squash' without a previous commit14:55
offby1 ah, that's easy14:55
I bet you replaced _all_ the "pick"s with "squashes", including the first, right?14:55
wshimmy lamalex: rebase -i <whatever-you-just-tried-to-rebase-onto>^14:55
lamalex offby1: i squashed all but the last one14:56
offby1 ok, that's backwards14:56
try squashing all the the _first_14:56
lamalex last meaning most recent14:56
can I squash them all and then give a new commit message?14:56
offby1 more or less, yes.14:57
the caveat is that you have to have at least one "pick" _before_ the first "squash"14:57
otherwise there will be no commit to "apply" to master.14:57
shruggar "git diff HEAD cron-verify" produces no output, but "git br -d cron-verify" says "error: The branch 'cron-verify' is not an ancestor of your current HEAD."14:57
offby1 shruggar: probably the two branches have the same tree "by coincidence"14:58
shruggar: I always run "gitk --all" when confused14:58
teuf wouldn't git merge --squash do the same when you want to squash all commits from a branch ?14:58
offby1 teuf: could be; I never use that feature, but perhaps I should14:58
shruggar also: if I "git merge cron-verify", "git-log -p" shows a huge patch14:58
wshimmy shruggar: git cherry cron-verify will tell you if there are different histories14:58
lamalex teuf: hm maybe14:58
offby1 shruggar: ugh14:58
teuf (which I'm not sure is a great thing to do for non-trivial merges)14:58
steveire joined14:58
Cromulent left14:59
lamalex I'm not sure rebasing is exactly what I wnat to do, I'm used to bzr which does this for me more or less14:59
sergeyki1h left15:00
offby1 lamalex: from what you said -- "[I] dont really want all of my mini commits appended to master's log" -- rebasing is _exactly_ what you want15:00
lamalex ok good15:00
at least I know what I want to do15:00
offby1 that's the canonical use case15:00
I suggest you make a toy repository and play with rebase, to get a feel for what it does15:00
lamalex probably a good idea, but I need to merge this branch :)15:01
no time for toys15:01
so I can squash them all then put my new commit message at the top? or do I edit the first's commit message and keep it as pick?15:02
bcardarella left15:02
jast you can simply edit the message after squashing them all. that will probably be easiest15:02
(using git commit --amend)15:02
lamalex so i just mark them all as squash, save, git commit --amend?15:03
wshimmy lamalex: or mark the first as edit15:03
charon actually it'll concatenate the entire series of commit messages from all squashed commits, and offer that for editing anyway15:03
teuf lamalex: but the history is so uninteresting that you want to get rid of it for merging ?15:03
jast I've got a faster solution for this particular situation, by the way15:03
MetaCosm left15:03
lamalex teuf: it gets rid of the history?15:04
that sucks15:04
Tommy[D] joined15:04
jast well, history as in, it replaces the series of small commits by a big one, thus altering your local history accordingly15:04
steveire Anyone know about gitorious? Someone cloned my repo, and I got a message that *I* had made another clone of it at this link: http://gitorious.org/~steveire/grantlee/tracking_repository_for_5431. I visited, and I get a message saying the repo is being created. Any idea what's going on?15:04
lamalex i mean the history in this case isn't very interesting15:05
so thats not a big deal15:05
jast yeah, well, that's the reason why you wanted to get rid of it in the first place, isn't it15:05
we wouldn't be doing all this stuff otherwise15:05
Korren joined15:05
lamalex so are any of you familiar with bzr?15:05
teuf history has to be *really* uninteresting to be dropped imo15:06
Korren left15:06
jast and the fastest way to do it is this: 1) git reset --hard to kill all uncommitted changes, 2) git reset --soft <parent commit of what you want to consolidate into one>, 3) git commit15:06
another similarly fast way involves using git merge --squash15:07
lamalex http://paste2.org/p/30085715:07
priidu left15:08
lamalex so that's a bzr log, when a branch gets merged, the branches commits go inline so you can see what happened in the branch15:08
jast ...15:08
that's just a question of visualization15:08
gitk displays it a bit like that if you simply use git merge15:08
or git log --graph15:09
sunoano left15:10
lamalex jast: ah15:10
is there a way to view only first level commits?15:11
jast sure15:11
kumbayo joined15:11
jast for example, git log --first-parent15:11
offby1 lamalex: all I know about bzr is: it's so slow it makes me want to kill myself15:12
jast oh, hey, are we starting a flamewar?15:12
lamalex ha15:12
offby1 and: the Emacs project will probably switch to it :-(15:12
lamalex thats funny because git makes me feel the same way15:12
teuf yay SVN FTW!!!15:12
offby1 huh15:12
sunoano joined15:12
offby1 now, if you'd said "so _confusing_ that I want to kill myself", I'd have understood that :)15:12
jast all you losers are using total crap systems. sccs is the only way to go!15:13
scarabx joined15:13
charon lamalex: 'rebase -i' isn't exactly the best benchmark ;)15:13
kuadrosx joined15:13
offby1 jast: real men don't use revision control.15:13
shruggar charon: for either average speed or average confusion level of git.15:14
I want everything to be like rebase -i <315:14
crankharder left15:15
DaveIngram left15:16
dmlloyd left15:16
dmlloyd joined15:16
DaveIngram joined15:19
crankharder joined15:19
DaveIngram left15:20
leehambley left15:21
reprore left15:21
reprore_ joined15:22
kobani left15:22
DaveIngram joined15:22
ams left15:22
nickjohnson joined15:24
nickjohnson How can I see the raw tree objects Git stores?15:24
Eg, without any pretty printing or formatting at all15:24
jast git cat-file tree <tree sha1 name>15:24
nickjohnson Thanks!15:25
corni joined15:25
DaveIngram left15:25
nickjohnson How does it format trees?15:25
It looks like size, name, hash tuples?15:25
DaveIngram joined15:25
makiesmakies_bot15:25
elmo2k3 left15:26
nickjohnson Though I don't see obvious terminators15:26
Oops, nm15:26
adeodatus joined15:26
patrikf left15:28
alienbrain left15:29
DaveIngram left15:29
alexyk joined15:29
DaveIngram joined15:30
dreiss joined15:30
alexyk left15:31
crankharder left15:32
crankharder joined15:33
whaley left15:37
whaley joined15:39
reprore_ left15:39
glommer left15:39
reprore_ joined15:39
mtvee joined15:40
voker57 joined15:41
SlipperyChicken joined15:42
joshthecoder_afkjoshthecoder15:45
almagro joined15:49
alexyk joined15:49
voker57_ joined15:49
bradly joined15:50
dwmw2_gonedwmw215:50
bgamari joined15:50
robwilkerson joined15:55
voker57__ left15:55
robwilkerson left15:55
reprore_ left15:56
reprore_ joined15:56
Fazer2 joined15:57
nickjohnson left15:57
Fazer2 hi, I've reinstalled Windows and installed Git again15:58
lamalex left15:58
samjam left15:58
Fazer2 I tried to open an existing (old) repository, but its .git/config file was filled with "NULL"15:58
so I found a backed up version of it and managed to load the repository15:59
offby1 ugh15:59
Fazer2 but git now doesn't see any changed in unstaged area15:59
any changes15:59
bonhoffer left16:00
Fazer2 is it a problem that now the repository is on a different partition (with E label, earlier was C)16:01
?16:01
offby1 shouldn16:01
t be16:01
sitaram joined16:01
Fazer2 hm, I just did "verify database" in git gui and got "error: bad signature, fatal: index file corrupt"16:03
fluxusps left16:03
bugfux joined16:04
Alinermedia joined16:04
naeu left16:05
Derander joined16:05
sitaram ouch...16:07
tango_ left16:07
voker57 left16:07
patmaddox joined16:07
sitaram of course, unless you "git add"ed something and then subsuquently lost of changed the file, this isn't a big deal -- there are ways to get back a sane index16:08
like git checkout16:08
altrux joined16:08
sitaram and reset16:09
stuffcorpse left16:09
sitaram the real question would be why it got corrupt in the first place...16:09
offby1 blames society16:09
stuffcorpse joined16:10
Fazer2 because of a messy move from one partition to another? and a news windows installation16:10
new16:10
I foung git reset --HARD could do the trick16:10
ouch, sorry for all the typos ;-)16:11
heh, .git/index file is filled with "NULLNULLNULL..."16:12
sitaram agrees with offby1; it is society. A society using too much Windows that is :-)16:12
sitaram .oO(or maybe it got power; I heard power corrupts...!)16:13
jast if the index file (.git/index) is corrupted you can simply delete it... git will create a new one as soon as it needs to16:14
Fazer2 ok16:14
almagro left16:14
jast as you noticed, git reset does about the same thing, so it doesn't matter now anyway16:15
warthog9 left16:15
bx2 joined16:15
galderz left16:16
Fazer2 but I didn't do git reset, just read about it16:16
jast oh.16:17
jmesnil left16:17
Fazer2 ok, I've deleted the index file and now I have all files in unstaged area, as if I have changed every line16:18
c0dem4gnetic left16:18
stringo0 noob question - what's an intro to the site called? (For example a flash widget with just buttons?)16:18
mat69_ left16:18
Ilari Fazer2: 'git reset' (no arguments).16:18
stringo0 (that was not a git question ;p)16:18
quinter joined16:18
ciskje left16:19
charon stringo0: annoying ;)16:19
psoo left16:19
stringo0 fine - but what's it called? I want to use the right terminology :P16:19
doener left16:19
sitaram init16:19
stringo0 something like this - http://nuclearfallout.net/16:19
doener joined16:19
sitaram next page is called add16:19
then commit and push :-)16:20
Lemao joined16:20
char00les joined16:20
Lemao left16:20
MetaCosm joined16:21
juanjoc left16:21
stringo0 -_-16:22
Fazer2 ok, git reset helped :-)16:22
stringo0 funny ;p16:22
bugfux left16:23
offby1 stringo0: it's called "a pain in the ass"16:24
Ilari Aarggh... Got 2 years of vendor development as single drop (version control? what version control?). Maginitude of my changes being +13k, -38k... Thats going to take a while to merge... :-(16:24
sukut left16:25
karmi joined16:25
Fazer2 a merge request from hell16:25
offby1 heh16:25
ppawel left16:25
hpoydar left16:25
hpoydar joined16:26
Fazer2 http://torvalds-family.blogspot.com/2009/06/happiness-is-warm-scm.html very related16:26
"so far it's been such a nice thing that I thought I'd better post while in a good mood. Before somebody sends me the merge request from hell."16:27
Derander left16:27
Ilari What I'm doing: Rebase my development (its linear) on top of new version and then commit that as merge of tips. But I'm at patch #6, while my changes span ~130 patches.16:28
Also darn. I need new backup strategy for it. It no longer fits on standard 9cm floppy disk... :-/16:31
stringo0 offby1: I'm trying to figure out what it's called - widget doesn't sound right16:32
trying to figure out the name of a module rather, I think I'll just call it a module16:32
(not actually thinking of implementing an intro flash annoyance)16:32
Fazer2 spash?16:32
splash16:32
stringo0 there!16:32
splash! Thanks :P16:32
Fazer2 5 dollars :-P16:33
reprore_ left16:33
reprore_ joined16:34
tono left16:34
btanaka joined16:35
tono joined16:35
offby1 stringo0: I'm very glad to hear that you're not actually thinking of implementing it; and annoyed that I didn't think of "splash" myself, first.16:36
shruggar left16:36
Ilari Yay. Looks like XHTML2 is pretty much dead.16:37
Moult joined16:37
afief does the number of branches in a local repository affect the speed of git operations?16:38
steveire left16:38
wereHamster .. and long live html5 without the <video> tag16:39
tomoj what, did something just happen? (re html?)16:40
Ilari Announcement that XHTML2 group expires at end of the year and won't be continued.16:40
cpg joined16:41
hpoydar left16:41
hpoydar joined16:41
voker57__ joined16:42
Ilari AFAIK, <video> didn't get axed.16:42
offby1 afief: I wouldn't think so16:42
afief offby1: thanks16:42
offby1 I'm just guessing16:43
tomoj found this: http://news.zdnet.co.uk/internet/0,1000000097,39670329,00.htm16:43
afief offby1: I didn't see anything that would suggest so either, but thought I'd ask here before making any wrong assumptions16:43
Ilari Some operations need to look branches up (filesystem dependent slowdown). Some iterate all branches.16:43
bobesponja joined16:44
hash joined16:44
afief Ilari: you mean for example the git-branch command where stuff is listed?16:44
Ilari afief: That's one example. git for-each-branch is another.16:45
afief Ilari: I don't know the for-each-branch yet :)16:45
Ilari Oops for-each-ref16:45
hashhash_g16:45
Ilari Actually, there might be some linear slowdowns. But still, its probably not very noticeable even with huge numbers of branches.16:46
charon i guess the most noticeable slowdown is in the phase of fetching where the remote side advertises its branch heads16:47
so you probably don't want to fetch from a repo that has thousands of refs16:47
Ilari afief: How many k of branches are you talking about?16:47
scarabx left16:47
afief Ilari: I was thinking about 2k16:48
charon (then again even then it's only a few KBs, so meh)16:48
Ilari afief: That's not probably very bad...16:48
giallu left16:48
hash_g hi all.16:48
how to take some changes from one commit from one branch to other branch?16:48
not whole commit just some part16:48
afief hash_g: git-cherry-pick I think16:49
offby1 yup16:49
rhett left16:49
afief Ilari, charon: thanks guys, I learn something new everytime I come here16:49
jast cherry-pick will give you the whole patch. you can use cherry-pick -n and then use something like git add -i to unstage some of those changes, perhaps.16:50
sitaram left16:51
tono left16:52
johndoigiii joined16:52
psynaptic left16:54
hash_g thanks:) will try that16:54
psynaptic joined16:59
reprore_ left16:59
reprore joined16:59
candybar left17:00
bobesponja left17:00
warthog9 joined17:02
patrikf joined17:03
Fazer2 "They told me - "Son, you're special. You were born to do great things". You know what? They were right." - 1989, Linus Torvalds17:04
voker57_ left17:04
alexyk left17:05
ben_h left17:05
icwiener_ joined17:06
bobesponja joined17:06
sergiodj joined17:08
Ryback_ joined17:09
Derander joined17:12
icwiener_ left17:13
johndoigiii left17:13
reprore left17:13
the_undefined left17:13
reprore_ joined17:13
offby1 wait, that's what they told _me_17:17
aziz joined17:17
sgrimm left17:18
alexyk joined17:20
icwiener left17:21
bugfux joined17:25
wereHamster offby1: so, have you done any great things yet?17:25
HG` left17:25
drizzd joined17:27
Fazer2 wereHamster: he has spoken to us17:27
eno__ joined17:27
SterlingH joined17:28
hash_g add -i is great !!! <317:28
Moult left17:28
candybar joined17:30
bugfux left17:31
marvil07 joined17:32
metalfan_ joined17:32
metalfan_ hi17:32
ive set GIT_EDITOR=vim, but commit -a still starts nano17:32
?17:32
wereHamster metalfan_: did you export GIT_EDITOR?17:33
spearce joined17:34
metalfan_ nope17:34
what does that do again?17:34
wereHamster it sets that env.variable to all processes17:34
metalfan_ thx, that worked17:35
eno left17:38
hash_g left17:38
tongueroo joined17:38
alexyk left17:39
alexyk joined17:39
sergiodj left17:39
giallu joined17:40
ericindc how can i do a diff off the same file but on different branches?17:40
wereHamster ericindc: diff branch1 branch2 -- file17:41
git diff ...17:41
ericindc wereHamster: ok, i'll try that. thanks.17:41
bcardarella joined17:47
flippo joined17:49
ph^ joined17:56
reprore_ left17:58
saurabhverma left18:00
quinter left18:01
broonie_ joined18:03
broonie left18:03
kuadrosx left18:03
alanhaggai left18:04
alexyk left18:04
struberg joined18:04
kuadrosx joined18:05
bcardarella left18:07
marvil07 left18:07
hpa joined18:08
Chillance left18:08
hpa Odd placement of <<<<'s during merge: http://pastebin.ca/148322818:08
Chillance joined18:08
spearce what is odd about that hpa?18:09
wereHamster hpa: the first, second or third one?18:09
spearce looks normal to me18:09
hpa Third one18:09
spearce its an empty region in head, but inserted region in the other side18:09
hpa The first <<<'s should have been at line 11418:09
wereHamster your side has added nothing, the other side has added some text18:09
spearce possibly head deleted from there18:10
while other side modified there18:10
hpa I don't think that's what happened, though18:10
spearce oooh, i see, you're right, it probably should have been up at 11418:10
wereHamster ah, I see. maybe git didn't recognize the context correctly because of the changed whitespace?18:11
spearce yuck. post to list, someone who knows the diff code well like gitte should look at that case18:11
Chillance left18:11
Chillance joined18:11
chrizz left18:12
corni_ joined18:13
daed weird18:13
broonie_ left18:13
broonie joined18:13
jchris joined18:14
MattRich joined18:16
krawek left18:16
krawek joined18:16
alexyk joined18:17
dodo_the_last1 joined18:17
jackdempsey hey all, quick process/workflow question........currently if i have a clone of someone's git repo, and i want them to pull in an update from me, i usually create a branch in my repo for the feature, let them pull in things when they can, and then i'll update later and get that change into my master from pulling from them18:19
is this extra work? should i just create the change on my master branch, let them pull it in, and be done with it?18:19
broonie left18:19
broonie joined18:19
spearce no, its usually easier to make a branch for them, so its a stable point that won't move around18:20
besides, creating a branch is just `git branch for-soandso`18:20
jackdempsey just thinking, what happens if they have a bunch of updates i don't, then they apply my commit on top of that....it should still have the same sha (unless they rebase)......so, me creating a branch for it is a but superfluous, no?18:20
ok good, so then i'm doing it right :-)18:20
spearce not like its hard18:20
jackdempsey yeah def18:20
ok cool, thx spearce18:20
Derander left18:20
spearce and when you update back, and merge into your main work branch, `git branch -d for-soandso` should work, because it was merged in. if they amended a patch or rebase or something, it'll fail, and you can figure it out from there18:21
jackdempsey ah yeah, good way to catch that, cool18:21
ericindc left18:21
stefanb85 joined18:25
stefanb85 hi all18:25
Pewpewarrows joined18:25
stefanb85 I'm a little disturbed about a particular behavior of git merge18:25
I ran into a situation when a file under conflict has *missing* content from the two sources18:25
so the resulting merge would contain invalid code18:26
you can take a look here:18:26
http://syslinux.zytor.com/wiki/index.php/GSoC200918:26
sorry18:26
http://pastebin.ca/148322818:26
this one :)18:26
and see at the end, the last difference18:26
is wrong18:26
defectiv joined18:27
defectiv what's the git version of svn revert?18:27
wereHamster stefanb85: hpa just posted the very same code :)18:27
defectiv i have "changes to be commited" and "changed but not update", and i just want to revert those files.18:27
stefanb85 wereHamster, ah, ooops :)18:27
wereHamster defectiv: take a look in the 'git status' output18:27
stefanb85 wereHamster, I told him eariler about this issue18:28
hpa wereHamster: Sorry, it's stefanb85's code, not mine :)18:28
stefanb85 hpa, actually the merge is from your code + my code18:28
corni left18:28
defectiv wereHamster: i just quoted from the git status output, hence my problem.18:29
so now i want to revert what was shown in git status.18:30
sergiodj joined18:30
defectiv brb...18:30
metalfan_ left18:30
wereHamster defectiv: git checkout -- <file> to unstage changes18:31
er, wrong. that will revert changes in the working directory18:31
dmlloyd_ joined18:31
defectiv git reset --hard ?18:31
yup that worked18:32
dmlloyd left18:32
dmlloyd_dmlloyd18:32
wereHamster defectiv: that will undo all changes in your working tree and also reset the index. A highly destructive command btw18:32
dodo_the_last left18:32
stefanb85 wereHamster: for comparison, here is the git diff (which behaves correctly) http://pastebin.ca/148325218:33
naeu joined18:33
char00les left18:33
wereHamster stefanb85: is that only whitespace or also code changes?18:33
stefanb85 whitespace (indentation) + small portions of code18:34
I converted some statements to macro calls18:34
defectiv reset index? huh?18:34
Linkadmin left18:34
Linkadmin joined18:35
jackdempsey defectiv: the index is where you put changes to be commited18:35
in svn you just commit something and it goes up to your server18:35
wereHamster stefanb85: spearce suggested hpa to send a mail to the mailing list. I don't know if he's done that yet. Next time though, try to do whitespace changes in a separate commit, this way code changes won't get lost in between houndreds of lines of diffs18:35
jackdempsey in git there's this index or staging area18:35
when you run git commit, changes in the index are committed to your repo18:35
if the index is new to you, its definitely something you'll want to read up on18:36
defectiv the index is where things are staged, right?18:36
wereHamster yes18:36
dodo_the_last1 left18:36
defectiv what is "destructive" about this command then? it seems analogous to svn revert.18:36
stefanb85 wereHamster, in this case the whitespace changes came from a branch (hpa's), and the code changes from the other (my branch, which was based on older code, which was not yet affected by whitespace changes at that time)18:37
leehambley joined18:37
jackdempsey defectiv: --soft --mixed and --hard all do a varying level of reverting of work/changes18:37
git help reset to look at the examples18:37
--hard does the most severe changes (basically anything changed is gone, working directory, index, etc)18:38
others will leave your working directory alone and just undo the index18:38
play around with it in a sample repo just to get comfortable18:38
AkumaStreak joined18:38
apeiros_ joined18:39
wereHamster defectiv: git tries very hard not to lose work. It refuses to overwrite unknown files etc. Using reset --hard will revert everything in your working directory, even if if means that git overwrites something which it can't recover later18:39
bonhoffer joined18:39
wereHamster some other commands (checkout, push) have a --force flag which means a similar thing, it irretrievably destroys files or history18:40
drizzd left18:42
ph^ left18:42
mtveemtvee|away18:43
Urgleflogue joined18:43
Airwulf joined18:43
ph^ joined18:43
Airwulf hey18:43
how can I remove a file added with 'git add ...' from the staging area?18:44
juanjoc joined18:44
wereHamster Airwulf: git reset <file>18:44
mtvee|awaymtvee18:44
ericindc joined18:44
mtvee left18:45
Fazer2 left18:45
Airwulf ah I think I have to ask my question in a different way18:46
I changed something in a file. After finish I do 'git status' and see. Oh sh*t I forgot to commit the older changes18:46
how can I add all the older changes without the file I just have changed18:47
jackdempsey so the file has old and new changes in it?18:48
or the old changes are in other files18:48
Airwulf yes the old changes are in other files18:48
jackdempsey and you want to add those, and commit those, and remove the changes from a new file from the index?18:49
wereHamster Airwulf: git add <otherfile> for each file you want to commit; git commit; git add <thisfile>; git commit18:49
Airwulf my solution is: copy the one file to temp, reset the file, add/commit older changes, copy the new file back and make another add/commit18:49
jayzer joined18:49
jackdempsey ah18:49
yeah sounds like you want git stash18:50
also, git add -p is useful18:50
Airwulf wereHamster, thats my problem. the otherfiles are more than 2018:50
jackdempsey and you don't want to specify them by hand right?18:50
wereHamster Airwulf: git add -u; git reset <thisfile>; git commit will commit all files but <thisfile>. Is that what you want?18:50
lut4rp_AFKlut4rp18:51
broonie left18:51
jackdempsey nice wereHamster didn't know about -u thx18:51
AkumaStreak left18:52
Urgleflogue left18:52
Airwulf jackdempsey, that's it I don't want to specify them by hand18:53
jackdempsey right, so what wereHamster said is probably great for you18:53
add everything, remove the one you don't want added18:53
commit those in the index and then you're golden18:53
if you don't know git stash i'd recommend looking into it as well as it can be useful at times18:53
Airwulf add everything and remove the one I don't want from staging area was my idea. But how can I remove one file from staging area?18:54
wereHamster Airwulf: git reset <file>18:54
wereHamster is repeating himself18:54
bizhat joined18:56
broonie joined18:56
bizhat left18:56
icwiener joined18:56
leehambley left18:59
cpg left18:59
cipio joined18:59
cpg joined19:01
alexyk left19:03
schambers left19:05
broonie left19:07
bcardarella joined19:07
DaveIngram left19:08
bx2 left19:10
thhp_ left19:10
wagle left19:11
broonie joined19:11
alexyk joined19:12
neoeinstein joined19:12
bonhoffer left19:12
marvil07 joined19:13
alexyk left19:13
schambers joined19:14
Airwulf left19:16
radarek joined19:19
bizhat joined19:21
cipio left19:22
\ask joined19:22
bonhoffer joined19:23
struberg spearce, ilari hi! Is there an example how to do a checkout without using GitIndex?19:23
johan-s joined19:24
drizzd joined19:24
marvil07 left19:24
hugoxrosa left19:24
spearce no, i thought i wrote one for you though that used dircache?19:25
struberg hoops, have to check my mails, wait txs :)19:26
bizhat left19:26
johan-s left19:26
CIA-7 left19:28
ph^ left19:29
Chouser cherry-pick can require a (usually interactive) conflict resolution, right?19:30
hugoxrosa joined19:31
CIA-7 joined19:32
struberg spearce I'm afraid I think we only talked about the use of DirCache.writeTree which I now already use for all the Index handling19:32
spearce what I mean: the WorkDirCheckout still needs the GitIndex. Any other way to do this?19:33
spearce no, we have to write that code over using DirCache and TreeWalk :-(19:33
struberg btw, today I did the first full maven release cycle with the maven-scm-provider-jgit :)19:33
ah oki, I just did like to make sure I'm not coding bullshit ;)19:34
voker57__ left19:35
voker57__ joined19:35
offby1 Chouser: I would assume so -- it's applying a patch, and there's always the risk that it won't apply19:35
voker57__ left19:35
radarek Chouser: yes19:35
Chouser ok, thanks. I was hoping to make this multi-step thing a single command, but there's a cherry-pick in the middle19:36
radarek Chouser: what you are trying to do?19:37
saurabhverma joined19:37
Chouser automate as much as possible the steps needed to create and update tickets and patchs for a release-bugfix branch based on tickets and patches for the development branch19:38
tango_ joined19:38
radarek Chouser: uh, it always is hard thing:)19:39
Chouser so I want to point at a dev ticket and have my tool extract the commit from a comment, create a new ticket based on the old one, rebase (cherry-pick) the old patch onto the release branch, format as a patch and attach to the new ticket for review and approval.19:40
simple, right? :-)19:40
radarek Chouser: yeah :)19:41
Chouser my plan had been to do this on a single local working copy, but I think if I require two working copies (one for each branch) I won't need to move either off of their respective branches.19:41
BuZZ-dEE joined19:42
Chouser that way if the cherry-pick needs some conflict resolution, I can save off the ticket numbers, comments, and whatever other bits I need to pick up after the user (me!) has resolved the conflict.19:42
it may all be a tall order, but I have irrational optimism and long holiday weekend. Who's going to stop me? :-)19:43
rhett joined19:45
adeodatus left19:47
hpoydar left19:52
hpoydar joined19:52
\ask left19:53
d0k_ joined19:56
broonie left19:56
cpgcpg|biab19:58
khmarbaise_ joined20:02
DavidKlein left20:02
d0k left20:03
eno joined20:03
vasandgvd joined20:04
khmarbaise left20:04
Gabriel left20:05
tbf joined20:05
SlipperyChicken left20:07
saurabhverma left20:09
mbroeker left20:10
eno__ left20:14
drewr joined20:14
aziz left20:16
aziz joined20:16
vlt left20:18
bonhoffer left20:19
vasandgvd left20:20
bentob0x left20:21
nekrad1 joined20:21
nekrad1 hi folks, is there any way to efficiently use existing pack files from other repos (w/o ever touching them) ?20:22
Sho_ joined20:25
memiux joined20:26
drizzd left20:30
memiux left20:31
steveire joined20:32
steveire left20:32
abw_ joined20:32
abw_ left20:32
bx2 joined20:33
lut4rplut4rp_AFK20:37
Weaselweb left20:38
__iron left20:38
__iron joined20:39
jrmuizel left20:39
dfr|work left20:40
Krynnotaur left20:41
dfr|work joined20:43
tvw joined20:44
majd joined20:47
ericindc left20:48
drizzd joined20:49
dereine is it better to user git merge repo or git pull . repo20:52
patrikf dereine: pull = fetch + merge20:53
BuZZ-dEE hello, i want to submit my project to my sourceforge git account, but don't know how can i do that. i have read this https://sourceforge.net/apps/trac/sourceforge/wiki/Git20:53
and this https://sourceforge.net/apps/trac/sourceforge/wiki/Shell%20service20:54
can anyone help me20:54
?20:54
patrikf dereine: and pull is usually used for remote repositories, so anything that isnt "."20:54
dodo_the_last joined20:54
alip joined20:54
Krynnotaur joined20:55
dereine patrikf: thx nice20:55
i think local you don't need fetch :)20:55
corni_ left20:55
corni joined20:56
hpoydar left20:56
patrikf dereine: also, what you referred to as "repo" really is a branch20:56
hpoydar joined20:56
patrikf just to brush up your terminology :)20:56
cpg|biabcpg20:56
ryanakca_ryanakca20:56
offby1 BuZZ-dEE: exactly what are you doing, exactly what do you see, and exactly how does that differ from what you expected to see?20:57
I've never used git on SourceForge but I'm guessing it's not terribly different from github20:57
spaceonline left20:57
Fullmoon left20:58
BuZZ-dEE offby1: i have used the Interactive Shell Service and then i have done this http://pastie.org/53365321:00
fundamental joined21:00
offby1 Is that _exactly_ what you typed? I.e., you really typed "USERNAME"?21:00
BuZZ-dEE offby1: no21:01
;)21:01
offby1 oh.21:01
lbt left21:01
BuZZ-dEE my resl username and project21:01
offby1 it'd probably be more useful to see _exactly_ what you typed, excluding passwords21:01
if you're going to edit history before showing it to me, that makes it less useful21:01
dereine patrikf: ups yes, i'm not too familiar with git yet :(21:01
offby1 also, it appears you transcribed that information into pastie; it'd be better to show me an actual transcript of your shell session21:02
BuZZ-dEE offby1: okay ;)21:02
patrikf dereine: I guess you read one of the tutorials? never hurts to read another one. ;-)21:02
mnick left21:03
Mage_Dude__ Anyone have advice for creating public keys for Win machines so Eclipse can use git on a remote Linux server?21:03
BuZZ-dEE offby1: http://pastie.org/53365621:03
djgera joined21:03
corni left21:04
offby1 BuZZ-dEE: well, that's a slight improvement. But I still cannot see a) your shell prompt -- that is sometimes useful; b) the responses to those commands.21:04
corni joined21:04
offby1 I really think it'd be a lot easier for you to simply copy and paste from your terminal, rather than transcribing.21:04
BuZZ-dEE offby1: okay21:04
dereine patrikf: i' currently reading gitready, quite cool stuff i didn't userd yet21:04
offby1 Mage_Dude__: get the PuTTY suite, run PuTTYgen21:05
BuZZ-dEE offby1: http://pastie.org/private/nkqmdzxu5lzby1fppwvg21:07
offby1: http://pastie.org/private/f7cpcj7pljwnpkihflnkzq21:07
fundamental left21:07
s0ber left21:08
hugoxrosa left21:08
offby1 BuZZ-dEE: ok, now we're getting somewhere.21:08
hold on21:08
s0ber joined21:09
offby1 hmm21:09
you seem to be doing everything they told you to do :)21:09
BuZZ-dEE what can i do?21:10
offby1 It's possible that you simply need to make a dummy commit ... I'm not sure.21:11
let me try, since I too have a SF account21:11
BuZZ-dEE okay :)21:12
offby1 OK, I'm trying this out just using local directories, and I'm seeing the same thing as you!21:12
That means the sf instructions are wrong.21:13
I suspect you simply need to make a single commit.21:13
Let's see if that's right ...21:13
BuZZ-dEE how?21:13
offby1 yep21:13
touch it ; git add . ; git commit -m "first commit"21:13
you don't actually _have_ to do this21:13
you can wait until you have some real files.21:13
But this will get you going.21:13
struberg left21:14
Mage_Dude__ Gitosis question: When I add a key to the cloned version of the admin and then push to the master, it doesn't seem to show the keys on the system I pushed to?21:14
offby1 BuZZ-dEE: you might see a big scary warning, too21:14
BuZZ-dEE offby1: where i have to do that? in my local shell?21:14
offby1 Mage_Dude__: what do you mean by "show"?21:14
BuZZ-dEE: yes, the same shell whose transcript you showed me21:14
BuZZ-dEE okay21:15
Mage_Dude__ offby1: I added 'key.pub' to the keydir and put the entry to .conf file. Committed and pushed changes to remote gitosis-admin but the keys are not present on the remote system?21:15
Mage_Dude__Mage_Dude21:15
offby1 Mage_Dude: how do you know they're not present?21:18
Mage_Dude offby1: The directory doesn't contain them on the remote system.21:18
BuZZ-dEE offby1: is that a good message to me?21:21
http://pastie.org/private/wta8xawmzasrcnqr2a5g21:21
that was all i have to do?21:22
Mage_Dude I don't understand how using 'git push' doesn't update origin repo? It doesn't seem that I should have to manually add the keys to both the admin system and the remote system just add to admin repo, push, updated?21:22
offby1 Mage_Dude: my hunch is: you're either looking in the wrong directory, or even the wrong computer :-) If "git push" didn't die, then it worked.21:23
Chillance left21:23
offby1 BuZZ-dEE: your latest paste appears to be the tail end of the output from a "git commit" command.21:24
BuZZ-dEE offby1: yes its only the end21:24
offby1 BuZZ-dEE: I don't understand what you want to know about it, though.21:24
warthog9 left21:25
Mage_Dude offby1: Shouldn't be wrong system. Using 'git remote show origin' asks for passphrase (the key for this system hasn't taken either) returns correct IP for correct machine and correct repo.21:25
BuZZ-dEE offby1: i want to submit my project to my sf-git and then i want import that in eclipse using the gitplugin for eclipse21:25
hpoydar left21:26
hpoydar joined21:26
offby1 BuZZ-dEE: you'll probably want to do "git push"21:27
to get your code onto sourceforge21:27
or, rather, to get it into the sourceforge repository that you're sharing, as opposed to the "private" one that you've been manipulating via the shell21:28
Mage_Dude Can you 'sudo cd' into a locked directory?21:28
BuZZ-dEE yes, if my code then is on sourceforge21:28
offby1 Mage_Dude: I doubt I can help21:28
BuZZ-dEE offby1: into the sourceforge repository21:28
offby1 Mage_Dude: what is a "locked directory"?21:28
BuZZ-dEE offby1: i want to use git instead of svn21:29
hpoydar left21:29
BuZZ-dEE with eclipse21:29
but my SF Account is new, so i have to submitt my project too21:29
Mage_Dude Under the 'git' user which contains the gitosis main repo the directory structure has a 'repositories' directory. Trying to 'cd' into the directory gives 'permission denied'21:29
hpoydar joined21:29
offby1 Mage_Dude: who are you logged in as?21:32
(anyway I don't think the public keys live under 'repositories')21:32
Mage_Dude offby1: As a matter of fact, the gitosis main repo is bare, and has no working directory. So there is no /keydir/ directory, but gitosis.conf does show that the change (adding another user) was made to the gitosis.conf file.21:33
lorandi left21:33
Mage_Dude offby1: So changes are being made, I just must have my keys in the wrong place. I do have to manually add keys to the server system for them to be used?21:34
offby1 nope21:35
take a look at ~git/.ssh/authorized_keys21:35
sea-gull left21:35
offby1 that's where I'd expect the public keys to wind up21:35
ajonat joined21:35
eldragon joined21:37
hpoydar left21:37
hpoydar joined21:37
warthog9 joined21:38
Mage_Dude offby1: Hmmmm now we're getting somewhere. The authorized_keys file looks like a mess. Multiple entries for a single user, some span lines (not good)21:38
offby1 that's perfectly normal21:39
that file is meant for SSH to read, not you.21:39
Mage_Dude offby1: Even though it says autogenerated by gitosis, do not edit, can I still edit it or do I need to learn certain gitosis commands to remove users?21:39
offby1: I've got 7 lines for one key and it starts with ---- BEGIN SSH2 PUBL..... then has the key.21:40
radarek left21:41
spearce didn't know OpenSSH accepted --- BEGIN SSH2 --- style keys in authorized_keys21:41
spearce i thought you needed to convert those first21:41
name left21:41
offby1 Mage_Dude: I'm 98% sure there's a way to remove users without having to edit that file21:41
kumbayo left21:41
Mage_Dude spearce: I bet you do (or just need to generate correct keys)21:42
offby1 Everything should be doable by just editing your local copy of the admin repository, committing, and pushing21:42
Mage_Dude offby1: I think I can just replace the .pub with the correct key and it should update it on git push21:42
offby1 I would think so.21:42
spearce ssh-keygen -i can do the convert in format, its fairly trivial21:43
Mage_Dude Are the first 28 characters supposed to be the same for all keys?21:43
offby1 wouldn't surprise me21:44
spearce largely, iirc those first few characters contain the key type, "ssh-dss" or "ssh-rsa"21:44
offby1 yeah, mine all look the same for the first buncha characters21:44
spearce despite it being at the start of an OpenSSH key line anyway, its embedded in the binary packet21:45
tvw left21:45
bcardarella left21:45
smotchkkiss joined21:45
intripoon left21:46
Mage_Dude It doesn't matter if the keys are in different formats right? As long as they are all valid ssh keys...should be fine?21:47
mat69_ joined21:47
offby1 should be21:47
hpoydar left21:49
Mage_Dude Ok, looks better now. But git push still asks for passphrase from remote machine21:49
hpoydar joined21:50
offby1 well, that's the usual ssh trouble21:51
it suggests that your private key isn't loaded into ssh-agent21:52
Mage_Dude Restart of sshd?21:52
cpgcpg|brb21:53
rhett left21:53
leehambley joined21:56
offby1 doubt that'd help21:57
I can't remember the last time I needed to start ssh21:57
btanaka left21:58
tongueroo left21:59
Mage_Dude I'm sure this would be easier if everyone was on Linux. But, of course, people 'want' what they think they need which leaves me to support and maintain the main linux based webserver, repos and backup in addition to those who want to work with XP/Vista/Win7 and OSX....client overkill?21:59
hpoydar left22:00
Alinermedia left22:00
ntoll left22:03
WebDragon left22:03
smotchkkiss left22:05
the_undefined joined22:06
candybar left22:06
MattRich left22:06
Mage_Dude left22:07
the_undefined left22:08
icwiener left22:11
offby1 actually, git-over-ssh isn't that bad on windows; msysgit does a decent job. Has its own ssh client and everything22:11
the most recent download, though, is missing some DLLs22:12
so get an older one22:12
gerberb left22:14
patmaddox left22:14
stefanb85 left22:15
bugfux joined22:17
camwest joined22:17
jackdempseyjack-away22:18
Chillance joined22:19
bx2 left22:22
BuZZ-dEE left22:23
cpg|brbcpg22:24
boto left22:24
bugfux left22:26
wahjava joined22:27
bradly left22:30
wagle joined22:31
mnick joined22:34
Bennid left22:35
Tuomas left22:35
candybar joined22:36
Ryback_ left22:37
tongueroo joined22:40
candybar left22:41
cloudhead joined22:44
bgerber joined22:46
ericindc joined22:46
Mage_Dude joined22:47
mat69_ left22:47
candybar joined22:48
zimbres joined22:53
kennethlove joined22:53
zimbres hi, I would like to know a web-based free software hosting system with git support22:54
.22:54
karmi left22:55
bugfux joined22:56
jchris left22:56
jchris joined22:56
offby1 github.com22:56
gitorious22:57
repository.or.cz22:57
oops22:57
repo.or.cz , rather22:57
bugfux left22:58
edt joined22:58
apeiros_ left22:58
edt something has gone wrong with my git tree. There are now hundreds of unreconzied files in the tree (which _ARE_ garbage). How do I tell git to remove them from the tree? (I tried git reset --hard v2.6.30)23:00
Arrowmaster git clean?23:01
patrikf edt: git clean23:01
patrikf left23:01
jlanghorst joined23:02
offby1 I do "git clean -dxf", which is a bit more dangerous, but works better :-)23:03
jchris left23:03
jchris joined23:03
jchris left23:05
jchris joined23:07
scarabx joined23:08
sunoano left23:09
\ask joined23:10
edt how do I endup with untracked files doing:23:11
git clean -f23:11
fr left23:11
MarcWeber left23:11
edt git branch 30.1 v2.6.3023:11
git pull git pull git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.30.y.git23:11
git merge edac23:11
git merge btrfs23:11
at this point I have about 30 untracked files23:12
sunoano joined23:12
edt why?23:12
bremner edt: use a pastebin for that many lines please23:12
edt: did you check after git clean -f?23:12
edt I' try again23:12
bremner edt: check man git-clean, particularly the -x flag23:13
Gitbot edt: the git-clean manpage can be found at http://git.or.cz/man/git-clean23:13
fr joined23:13
edt bremner -x is interesting but the files are not build files...23:14
MarcWeber joined23:14
Tommy[D]Tommy[D]_23:14
wahjava left23:15
edt bremner need clean -fdx23:15
thanks23:15
khmarbaise_ left23:16
djgera left23:17
b14ck Can anyone recommend a good document for git beginners who want to get started managing their project with git?23:17
dodo_the_last left23:19
corni left23:19
offby1 there's lots23:20
look on git-scm.org23:20
Chillance left23:20
slyphon joined23:20
Chillance joined23:20
dodo_the_last joined23:21
b14ck thanks23:24
juanjoc left23:25
reprore joined23:25
b14ck edt, http://github.com/comradeb14ck/wildpbx/blob/6487f0ca841f3549d3fa9de279c237794eaac853/libraries/agi/c/wpbx-cagi-internals.c line 42623:26
Mage_Dude Anyone use Eclipse on Windows and can successfully pull from a non-github repository?23:26
b14ck offby1, thanks23:26
rettub_ left23:27
rettub_ joined23:28
d0k_ left23:28
Tommy[D] joined23:29
Tommy[D]Guest931823:29
offby1 Mage_Dude: I'm 99% certain that github versus not-github is irrelevant23:29
Yuuhi left23:29
offby1 if it works from the command line, it ought to work in eclipse23:29
Guest9318 left23:30
Mage_Dude On a *nix based (non-mac) system, using 'git clone [email@hidden.address] still asks for passphrase even though user is in gitosis.conf and key.pub is in keydir/ On Windows, rather than ask for the user passphrase, Eclipse asks for the gitbot passphrase (which doesn't exist) rather than using the key provided by the user executing the command.23:31
scarabx left23:31
ajonat left23:31
offby1 I suspect that both gitosis.conf and keydir are irrelevant.23:31
get a simple "ssh 192.168.2.28" "working" (i.e., failing with a complaint that GIT_ORIGINAL_COMMAND wasn't set in the environment, or something) first23:32
Tommy[D] joined23:32
Tommy[D]Guest5594523:33
edt left23:33
Mage_Dude I can ssh into the system just fine from win/nix/mac, but git isn't accepting win/nix/mac non-CLI clone commands. By ssh 192.168.2.28 'working' what do you mean other than just being able to ssh in?23:34
offby1 mostly that.23:34
I'd be surprised, though, if you were able to get a shell by doing "ssh [email@hidden.address]23:35
Mage_Dude Yes, it fails with "ERROR:gitosis.serve.main:Need SSH_ORIGINAL_COMMAND in environment." because gitbot has no shell access.23:36
AkumaStreak joined23:36
offby1 OK, that says to me that it is indeed working23:36
Artissimo joined23:36
offby1 and you can get that behavior on Windows?23:36
(you might need to spell "ssh" as "plink.exe" or something :-)23:37
Guest55945Tommy[D]23:37
Tommy[D]_ left23:37
Mage_Dude offby1: Eclipse provides no option for that kind of command23:38
Artissimo http://code.google.com/p/git-osx-installer/23:38
Is that the package needed for setting up a git server?23:38
Mage_Dude Artissimo: I've installed it earlier (thanks) but still having configuration issues and pulling from the main server repos23:39
offby1 Mage_Dude: I don't even know what that means. I'm not suggesting you try Eclipse just yet; I'm suggesting you try running a command-line ssh client on Windows (in case you haven't already)23:39
nekrad1 left23:39
Artissimo Mage_Dude: On leopard?23:39
tomoj Artissimo: you can compile git yourself if you like23:40
Mage_Dude Artissimo: 10.5.something? Yes? (Sorry I don't know my Mac 'codenames') for the OS's...23:40
offby1 can never remember the Debian/Ubuntu code names either, so once he learns 'em he sticks 'em into /etc/issue23:42
Mage_Dude offby1: Trying putty (using [email@hidden.address] still asks for passphrase23:43
tomoj Mage_Dude: it's supposed to ask for the passphrase, isn't it?23:43
Mage_Dude offby1: I don't even care that much about branding names. It's all Windows, Mac, Linux...much past that...boring details (for the most part) :)23:43
tomoj: No. By giving it a copy of the public key it should accept the connection without challenge.23:44
tomoj your key is passphrase-less?23:44
offby1 tomoj: ideally, no: ideally one types one's passphrase into an ssh agent _once_, when you log in, and then don't need to type it again (until you log out)23:44
bremner MadCoder: err really gitbot? out of the box shouldn't that be gitosis@ or git@23:44
offby1 bremner: I _think_ it's up to you23:44
bremner Mage_Dude: ^^23:44
tomoj Mage_Dude: so you really mean the password?23:44
bremner sorry M a d C o d e r23:45
Mage_Dude brpmner: Out of the box? No I followed a gitosis tut (scientist one I think...) and it allows you to create any user you want.23:45
bremner okey23:45
majd left23:45
mw left23:47
tomoj Mage_Dude: I mean, is it saying "Enter passphrase for ..." or "Password:"23:47
Mage_Dude tomoj: Right23:48
kwatz joined23:48
tomoj which one? :)23:48
Mage_Dude tomoj: Actually, on Nix it asks for passphrase, Win it asks for password23:48
mw joined23:48
tomoj so nix is working, win is offering the wrong key or you don't have the key in there23:48
Mage_Dude: maybe try giving your windows ssh client a -v flag?23:49
offby1 laughs cruelly23:49
offby1 have fun figuring out a) how to do that in the first place; b) where the output goes when it's invoked by eclipse23:50
bgerber left23:50
tomoj well I meant plink23:50
Derander joined23:51
bgerber joined23:52
camwest left23:52
marcot joined23:54
gerberb joined23:54
gerberb left23:55
marcot Hello. Does git push ssh://example.com/ uses the configuration in .ssh/config? It doesn't seem to be reading here.23:55
bremner marcot: yes, it should23:55
marcot bremner: Sorry, I'm missing something here.23:56
offby1 marcot: it's possible that GIT_SSH is set to something other than "ssh"23:57
marcot: this is a good job for "strace" (or "ktrace" if you're on OS X or FreeBSD)23:57
marcot offby1: no, it's working.. I just noticed I was using another host this time, which wasn't set in .ssh/config.23:57

Logs Search ←Prev date Next date→ Channels Documentation