IRCloggy #git 2008-11-12

Logs Search ←Prev date Next date→ Channels Documentation

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

2008-11-12

softdrink left00:01
cannonball left00:01
whee left00:02
coderdad left00:11
EmilMedve joined00:11
loiseau left00:12
towski_ left00:13
gebi left00:13
rtomayko left00:14
brettgoulder joined00:16
ebynum joined00:16
codeshot left00:17
EmilMedve left00:19
therrg joined00:22
kennethlove_ joined00:22
olly_ left00:22
gebi joined00:25
Zimm left00:25
EmilMedve joined00:28
p4tux left00:29
eventualbuddha gmcinnes: permissions issue?00:29
gmcinnes I dunno. I gave up. Found a nicer way through git+ssh00:29
eventualbuddha gmcinnes: dunno what you're doing, but if it's custom git hosting I've found gitosis to be quite nice00:30
gebi left00:30
gmcinnes eventualbuddha: nah. just looking to set it up at reamhost00:31
eventualbuddha gmcinnes: oh. well, that's what I mean, I think00:31
manages repos for you etc00:32
gmcinnes dunno why I torture myself :)00:32
eventualbuddha it's not exactly _hard_ to do it yourself00:32
but it's nice to have a tool that already did it00:32
gmcinnes yeah. life is short. if someone else can do it, go for it.00:33
which kinda tells me I'm an idiot for trying to set this up :)00:33
gebi joined00:34
willb joined00:34
eventualbuddha gmcinnes: heh. don't worry. I already did all the work to set it up and use it without for like a month before I actually took the time to learn wtf gitosis was00:35
dancor left00:35
eventualbuddha just trying to pass on the lesson ;)00:35
SjB left00:35
supercali left00:37
supercali joined00:38
kennethlove left00:38
jackdempsey joined00:39
bobmcw joined00:41
CodeOfficer left00:43
eventualbuddha left00:46
towski joined00:46
spearce joined00:47
loincloth joined00:51
SjB_ left00:51
threeve joined00:59
jm left01:00
loincloth left01:00
loincloth joined01:01
parasti left01:01
patmaddox left01:04
aspotashev joined01:05
pcapriotti left01:06
ebynum left01:06
kanru joined01:07
hachi left01:07
CodeOfficer joined01:09
x_or_ left01:09
withanx left01:10
CodeOfficer left01:10
coderdad joined01:10
madewokherd joined01:11
bartman`` joined01:11
kennethlove_ left01:13
bartman` left01:17
Rivelli joined01:21
david_koontz left01:21
chris2 left01:24
CodeOfficer joined01:24
coderdad left01:24
WOP left01:25
gretch_ joined01:27
gretch_gretch01:27
bgerber left01:27
unfo left01:32
Godsize joined01:33
coderdad joined01:35
therrgtherrg|brb01:35
warthog9 left01:36
bgerber joined01:37
coderdad left01:38
Slimer Where might I file a bug on git?01:45
vmiklos send a mail to the list01:51
p4tux joined01:52
coderdad joined01:53
Slimer left01:58
bbs joined02:01
bbs can someone really help me with git format patch02:01
bremner bbs: what is the difficulty?02:02
coderdad left02:02
bbs bremner: i have a file fix which is a patch02:02
git diff 2008-11-10-14-54 origin/fixes > fix02:03
i did this to get it02:03
how could i use that to make it a git format patch02:03
lirit left02:03
SjB_ joined02:03
litage left02:03
bremner bbs: the easiest way is to checkout one branch and git format-patch otherbranch02:04
digitalhobbit left02:04
bremner bbs: is 2008-11-10-14-54 a branch or a tag?02:04
bbs bremner: tag02:04
mmotm02:04
coderdad joined02:05
markelikalderon left02:05
popol joined02:05
bremner bbs: so you want to end up at origin/fixes?02:06
(after applying the patches)02:06
bbs yea02:06
i want all patches in there02:07
they fix reiser402:07
bremner git checkout -b local origin/fixes && git format-patch 2008-11-10-14-5402:07
bbs bremner: ok i'll try02:08
thx02:08
CodeOfficer left02:09
mwmw|out02:11
warthog9 joined02:11
bogus joined02:13
bogusGuest7812902:14
Guest78129ridiculousRay02:14
bbs bremner: perfect02:15
thx02:15
bbs left02:15
therrg|brbtherrg02:15
coderdad left02:16
piclez_ left02:19
supercali left02:21
coderdad joined02:23
Godsize why are grafts entirely local notion?02:23
why not a reserve refs/replace/namespace record a new commit object to replace one that already that whose object name is @sha1 as refs/replace/$sha102:24
ArdRigh joined02:25
Godsize make all the command xcept mosly anything that involves rev-lists objects02:25
honor this placement so that anytime you ask for commit $sh1, the object kayer gives you the replacement commit object back02:25
so you can cloe or fetch from this repository along with refs anf fsck/prune wont lose its priginal parents because there arent any replacements02:26
...02:26
?02:26
just planting seeds02:26
maybe someday they'll take on root02:26
you never know02:26
priidu left02:27
Ademan left02:29
haris joined02:31
up_the_irons 7pong02:32
oops02:32
kanru left02:35
hobodave left02:38
coderdad left02:39
coderdad joined02:40
joshbuddy left02:42
moccuo joined02:43
bobmcw left02:44
notbenh left02:46
moccuo im new to version control, and im trying to distinguish the benefits of using distributed over central repository. with distributed, lets say we have 10 people working on the same project. where do they all pull from? do they need to find someone with a certain branch and pull from them? or would there be at least some sort of "main" repo everyone goes to?02:47
and sorry for being such a noob02:47
Godsize you got couple of people they pull the current head, which is hopefully good and tested and they start working on it and they start commitint on it02:49
ivazquez Most DVCSes, git included, allow a partially-centralized model. People go off and do their changes locally, then push to the main repo.02:49
Godsize and you dont need to dont need to wait for a week till your commits are stable, cause your commits are always local02:50
to do*02:50
yeah02:50
thats what distributed is..theres no central location, everybody is the same and you can merge between yourselves02:50
you can commit every line, you can then communite by pulling and merging each others work and one person finds a bug and commits it and tell the other 9 people02:51
kanru joined02:52
Godsize then when they're all done they can tell the main group to pull and they its already tested and works...and you can actually time it before you have to ask anybody else to look at it02:52
anyways thats hugely better model for doing development02:53
turns out people usually dont need that much power, so people dont pull within a single group, even with huge projects02:53
coderdad left02:57
spearce left02:57
coderdad joined02:57
hobodave_ joined02:58
SoreGums joined03:00
SoreGums left03:00
Godsize has anyone here looked at the whole cpu alloc stage 2 patchset?03:00
grahal left03:03
grahal joined03:04
coderdad left03:05
whee_ left03:05
Godsize left03:05
imyousuf joined03:08
hobodav__ joined03:09
mw|out left03:09
jerbear left03:09
Cacheaway left03:10
Cacheaway joined03:10
sdboyer|classsdboyer03:10
stuffcorpse joined03:10
GNUix joined03:11
redinger left03:11
flaguy left03:13
wallerdev joined03:18
wallerdev hey, how would i reset changes to HEAD for one file?03:19
p4tux left03:22
wallerdev hm interesting03:23
git checkout HEAD file03:24
aanyway thanks03:24
wallerdev left03:24
GNUix left03:24
brettgoulder left03:24
hobodave_ left03:25
GNUix joined03:25
ArdRigh left03:27
qrush joined03:28
foca left03:31
dreiss left03:32
hobodave joined03:33
gmcinnes hmm. gitweb shows none of my projects. any thoughts?03:34
foca joined03:36
coderdad joined03:37
werdna gmcinnes: ls -la /var/cache/git03:40
gmcinnes nothing there.03:40
well, just . and ..03:41
stephenos left03:43
werdna there's your problem03:44
ln -s /path/to/repository /var/cache/git03:44
ArdRigh joined03:45
tenpaiyomi joined03:46
tenpaiyomi Quick question; What's the command to make a remote repo reflect your local repo exactly?03:46
abbe joined03:47
ToxicFrog rsync -avvPhz --delete local remote?03:48
ebynum joined03:48
ToxicFrog The real answer, of course, is "it depends on what you mean by exactly"03:48
ebynum left03:49
ToxicFrog If you want them to match in every respect, including config contents, bareness or lack thereof, etc, that rsync will in fact do it.03:49
loinclot_ joined03:50
hobodav__ left03:50
tenpaiyomi hmmm, well, I guess right now I need to know how to undo a git reset, to bring back some changes, and from there I will want to make a remote branch reflect my local branch03:52
WOP joined03:54
ToxicFrog A hard reset?03:54
tenpaiyomi Yea03:54
I was able to pull from the reflog03:54
So, I got that now03:55
ToxicFrog That I really don't know, apart from the fact that it can be done and the reflog is where you start03:55
As for syncing local and remote branches - do you have the other repo added as a remote?03:55
If so, just: git push <remote> <branch>, eg "git push origin master"03:55
tenpaiyomi I finally got it; needed to issue a git push origin master -f, however managed to forget to backup the changes I had made before I did a git reset --hard HEAD^, so had to pull them back with the reflog, then recommit03:57
Wanting to keep the commits down to a minimum, and I managed to make a stupid mistake of, of all things, overwriting a readme file in the incorrect place03:58
damog left03:58
Rivelli left03:58
gmcinnes left03:58
foca_ joined04:01
dreiss joined04:01
elmex_ joined04:02
LiamH left04:04
loincloth left04:05
ashleyw left04:08
dermoth tenpaiyomi, git push --mirror04:08
tenpaiyomi, it will push everything with the sole exception of your stashed changes04:08
moccuo left04:09
dermoth tenpaiyomi, It looks like there is also a config option, but I think it's only on very recent versions of Git04:09
Ademan joined04:09
csris joined04:10
csris left04:10
litage joined04:14
elmex left04:16
elmex_elmex04:16
tenpaiyomi left04:16
kukks left04:16
ArdRigh Does anyone here use git on Windows?04:18
Tv left04:19
ToxicFrog <--04:19
via cygwin, though, not msysgit04:19
CodeOfficer joined04:21
ezyang ArdRigh: I do04:22
both ways, but I find cygwin to be more reliable04:22
ArdRigh ezyang, how do you generally make your git repository available to other people from your Windows machine?04:22
foca left04:22
ArdRigh do they do a pull from you, or do you push04:22
ezyang ArdRigh: through a public repos hosting site like repo.or.cz04:22
ArdRigh ahh ok04:22
ezyang if I need to send one commit04:23
format-patch04:23
ArdRigh Is it possible to have a git repo on a Windows box that people can pull from ?04:23
ezyang I've never needed to give someone ssh access/get ssh access to do a push or pull directly to the other person04:23
yep04:23
ArdRigh run sshd on windows would be the easiest method?04:23
ToxicFrog It should be; if nothing else, cygwin comes with a working ssh server, and gitd would probably build under it too04:24
ezyang gitd would be the trick04:24
in a worst case scenario, you could even just http publish the repos04:24
(if you don't care about performance or pushes)04:24
perezd88 joined04:24
rmh3093 left04:24
careo left04:24
rmh3093 joined04:25
perezd88 left04:25
ArdRigh gitd ... you mean git-daemon ?04:28
git --daemon04:28
?04:28
mugwump ArdRigh: see man git-daemon04:29
ArdRigh yeah I tested that on a linux server04:30
thanks for the help :)04:30
ArdRigh left04:30
drewr left04:35
careo joined04:38
muthu_ joined04:49
madewokherd left04:55
ahupp|fb left04:56
Tv joined04:57
mczepiel joined05:00
ahupp|fb joined05:09
bieneff left05:14
NemesisD joined05:24
tjafk1 left05:27
tjafk1 joined05:27
k776 left05:28
pjz_ left05:32
pjz joined05:32
threeve left05:34
jackdempsey left05:36
xaikixaik105:41
EiNZTEiN joined05:47
niki left05:47
coderdad left05:49
EiNZTEiN left05:53
cedricv joined05:59
litage left06:05
loinclot_loincloth06:09
haris left06:12
qrush left06:13
reithi joined06:17
aspotashev left06:18
loincloth left06:19
iulian joined06:21
ahupp|fb left06:24
ahupp|fb joined06:25
mosno_ left06:25
digitalhobbit joined06:28
gambler joined06:31
agenteo joined06:31
agenteo can I undo a git branch -D ?06:31
madduck agenteo: yes, in most cases.06:32
you need to find the ID of the commit the branch was at06:32
git reflog might help06:32
then let's say you know the commit was 83df921, then you just do: git branch branchname Trusted relays that accept mail directly from dial-up connections should not be listed in "internal_networks". List them only in "trusted_networks".06:33
oops06:33
then let's say you know the commit was 83df921, then you just do: git branch branchname 83df92106:33
agenteo preferences is the branch that I've deleted, 7814884... HEAD@{13}: checkout: moving from master to preferences06:35
madduck git show 781488406:35
agenteo does that text represent the branch creation?06:35
madduck maybe06:35
anyway, you don't want branch creation06:35
you want branch deletion06:35
find the last point where you moved away from preferences06:35
or maybe the deletion has its own entry?06:35
if all that fails, you can use git fsck to recover the dangling commits and then check them one by one06:36
agenteo doesn't look like there is an entry for the deletion06:36
last move out is 7814884... HEAD@{12}: checkout: moving from preferences to variants06:36
madduck does 7814884 represent the last commit on preferences?06:37
git show 781488406:37
agenteo madduck: I suppose, it's following the text that I've posted before06:39
madduck I don't understand.06:39
therrg left06:39
agenteo http://pastie.org/31285806:39
this is the git reflog06:39
madduck you've never made a commit to the preferences branch06:40
thus, git branch preferences 781488406:41
is what you want.06:41
agenteo that's the weird bit... :) I'm pretty sure I did, but I might be wrong it was some test code nothing too important...06:41
madduck reflog dnies it.06:42
agenteo yeah... it's prob right06:42
madduck: r'u Myles?06:42
meyering left06:43
madduck who's Myles06:43
meyering joined06:43
agenteo nevermind, he's somebody with a nickname similar to yours06:43
madduck there are many copies but only one original. I am the latter. :)06:44
agenteo eheh06:44
madduck had this nick since 199206:44
Coontact joined06:44
madduck i don't know of anyone who had it longer.06:44
reithi moin06:44
Coontact According to the best selling book on race and intelligence, TheBell Curve, as a group, African Americans have a average mean IQ ofonly 85 points as compared to Europeans who have an average mean IQ of 100-103points.06:44
However, in some African countries, the Average Mean IQ Level is even lower--infact, lower than 60 points on average. This occurs in many out of the wayvillages along the Zaire River Basin. Fifty percent of these Africans areeither in the retarded or moron group.06:44
agenteo thanks for your help madduck06:44
Coontact Back in America, only 16% of African Americans have IQ's above 100 points,which is approximately what is required to achieve a mere D-/F+ in college.Graduation rates of a mere 32% at all-black Howard University bear thisout, and Howard University is definitely not a difficult school to attend.06:44
madduck Coontact: that's mighty off-topic here, isn't it?06:45
Coontact I am looking to upgrade my african american employees06:45
how do I do this?06:45
madduck Coontact: please take that elsewhere.06:45
reithi how do i push all off my local branches to the remote repo ?06:47
madduck read the manpage and discover 'git push --all' ? :)06:47
Coontact Hate niggers? Join us at http://www.niggermania.com and http://www.chimpout.org This is an alliance of Whites, Hispanics, and Asians against niggers. Paid for by Chimpout.org.06:48
reithi madduck: ups that was to easy thx06:48
madduck do not feed the troll guys06:48
agenteo left06:52
ErrantEgo joined06:52
SjB_ left06:53
Pupeno-M_ left06:54
GNUix left06:55
Coontact According to the best selling book on race and intelligence, TheBell Curve, as a group, African Americans have a average mean IQ ofonly 85 points as compared to Europeans who have an average mean IQ of 100-103points.06:55
However, in some African countries, the Average Mean IQ Level is even lower--infact, lower than 60 points on average. This occurs in many out of the wayvillages along the Zaire River Basin. Fifty percent of these Africans areeither in the retarded or moron group.06:55
Back in America, only 16% of African Americans have IQ's above 100 points,which is approximately what is required to achieve a mere D-/F+ in college.Graduation rates of a mere 32% at all-black Howard University bear thisout, and Howard University is definitely not a difficult school to attend.06:55
listdata it's obvious that this is a bot...06:55
madduck just ignore, i've alerted freenode stuff and they are on it.06:56
Coontact Only 2.3% of all African Americans have an IQ above 115 points, about D+/C-in college. Only 667,000 out of 29,000,000 African Americans measure above115 points as can be seen in the above illustration. This is hardly enoughIQ level in the distribution pattern to justify Affirmative Action Programs.There just aren't enough African Americans to fill the jobs available. Thatis why white women were elevated to "minority status" by affirmativea06:56
ction executives, even though white women are far more plentiful than whitemen who are themselves a minority by comparison.*06:56
If these facts are true, there is little hope that it can be helped by anymeans known to society.06:56
warthog9 left06:58
moccuo joined06:59
daaku joined07:00
gilimanjaro joined07:01
Coontact Lick A Cow's Menstrual Waste to Grow Bigger Balls07:02
You've got to hand to those innovative niggers in Africa, huh? Where would the rest of the world be without their mind-boggling advances and discoveries? Who would have thought that licking and eating a cow's menstrual waste could grow bigger he-man sized balls?07:02
Now we have it! Video of nigglets in Africa sucking a cow's pussy and showering in cow pee ! Yes folks, this is how niggers live when left on their own away from the 'racism' of whitey.07:03
timulate Cows with Oral Sex to Get Them Ready for Mating and Have Sex with Donkeys to Grow Bigger Penises07:04
If this nigger innovation ever got out, sales of penis pumps would plummet and cattle herds would double..07:04
In a few societies, copulation with animals is reported for African boys, among the Tswana, Riffian, and Masai (Ford and Beach, 1951:p147, 148). Particularly herding boys may be more intimate with cattle than with the opposite sex. Nomad and Nuer herdboys are seen to drink milk straight from camel's udders (e.g., Pavitt, 1997:p147, ill.; Akalu, 1985:p46, ill.)[159]. Young boys are seen performing cunnilingus on cattle to stimulate the moti07:04
vation to mate (e.g., Nomachi, 1989 [1990:p45, ill.])[160]. "The shepherd-boys of the Tswana frequently have intercourse with their flocks, but are punished if caught in the act" (De Rachewiltz (1963 [1964:p283]). "Riffian youths who have not yet attained the age of puberty have intercourse with she-asses in order to get sexual capacity and to make the penis grow (Ford, 1945 [1964:p20]).07:04
http://www.niggermania.com/tom/lickingcows/niggerslicking.htm07:05
moccuo Godsize: hmm, so you only really get a benefit of distributed version control if you have a lot of developers?07:05
ezyang moccuo: Nope!07:06
DVCS is still helpful in a one developer team07:06
carllerche left07:06
Coontact left07:06
ezyang it means that you can go into laptop mode and still commit07:06
whereas if you are running SVN off a central server somewhere else, you're outta luck07:06
s/laptop/airplane/07:06
moccuo aah, gotcha07:07
ezyang in fact, that was one of the things that singularly bothered me before I moved to git :-)07:07
ari-_-e left07:08
moccuo having a central location where everyone commits to and can access every revision seems like a good way to me though..07:08
Ratler_Ratler07:08
ezyang and generally speaking that's what happens07:09
repo.or.cz is a case-in-point07:09
moccuo aah, kk. so like github07:10
ErrantEgo left07:10
Weaselweb joined07:10
ezyang yep07:11
moccuo so pretty much, if i want to start a working copy of a git repo. i would pull it from there (branch?). and then make commits as i go through (all locally) and then i merge when it's stable?07:11
im new to version control in general, and dont have any experience with cvs, svn, or git..07:11
so excuse my misunderstanding of things :)07:12
ezyang if you're talking about *starting* things off07:13
you'd just find the directory of stuff you want to version07:13
and git init07:13
that's it07:13
moccuo hmm07:13
ezyang that doesn't set up the remote stuff, of course07:13
but you should read some docs first before asking more questions :-)07:14
moccuo yea. but for a completely local repo (which is what im going to be doing now). that's pretty much it?07:14
ezyang yep07:14
EiNZTEiN joined07:15
moccuo cool, i watched the talk with torvalds. he just compares to the way cvs and svn did it, which is apparently so awful that everyone who uses it is "stupid" and "ugly"...07:15
ezyang :-)07:16
That's linus for you07:16
moccuo lol07:17
shd that talk is very funny and enjoyable07:20
Ingvae joined07:32
bjeanes left07:33
ceej joined07:36
bobesponja left07:39
warthog9 joined07:43
bentob0x joined07:45
jackdempsey joined07:48
idletask joined07:49
idletask Hello07:50
ahupp|fb left07:50
listdata i just built git 1.6.0.4 from source and installed it with make install, but git-gui is missing... where do i get the source for git gui?07:50
NemesisD left07:50
idletask It is in07:50
Did you try "git gui"?07:50
ezyang it should be in your git checkout07:51
listdata idletask: haha, thx, that works fine07:51
i guess hyphenated commands are deprecated now?07:51
idletask listdata: the git-* series is deprecated07:51
listdata indeed07:51
ezyang ya07:51
(although you still have to man git-cmd)07:51
listdata i see, thx07:52
idletask ezyang: yep... It'd be nice if you had, say, gitcommit, gitadd and al07:52
Would allow for easy completion :p07:52
thiago_home completion is easy07:53
ezyang idletask: well, I think someone was working on a completion ext for git07:53
I don't know if it's landed in next yet07:53
thiago_home completion works just fine on zsh07:53
idletask Well, yes, but then why require bash_completion to have it?07:53
Or zsh completion system for that matter07:53
If you can have it with plain bash...07:53
thiago_home git[space]co[tab] <-- shows several possibilities07:54
drizzd_ idletask: because plain bash is stupid07:54
thiago_home including "co -- alias for checkout"07:54
drizzd_ git expansion also does argument and option expansion07:54
ezyang ya; works for me07:54
idletask drizzd_: maybe, but it's in use by 99+% of Linux users07:54
thiago_home that's because it's the default07:55
idletask And nowadays, by more than 90% of Unix-like users in general, I'd say07:55
thiago_home most people I know who learnt about zsh and used it, like it and don't look back07:55
idletask thiago_home: I'm not one of these "most", then :p07:55
thiago_home but let's not discuss it... I guess it's a flame war subject07:55
bjeanes joined07:57
digitalhobbit left08:01
idletask I was just saying that it would be easy enough to make it easier for the common case... And as of yet, the common case is plain bash08:01
"Stupid" as though it may be08:01
charon joined08:02
thiago_home it's not difficult to write bash completion code08:03
jackdempsey left08:03
markelikalderon joined08:04
madduck fwiw, I like this: http://xana.scru.org/xana2/quanks/topgitincompletion/08:07
it's how I will work with zsh people to implement topgit completion, and I hope that bash will also use the same route, if it can08:07
and yes, zsh is better. feed the troll! :)08:07
madduck <-- bad08:08
ezyang it seems to me08:09
that autocompletion info should be data and not code08:09
so zsh approach in this case seems to be the correct one08:09
Ingvae left08:09
idletask ezyang: what do you mean? Back when I used zsh, I remembered that ./configure --<TAB> invoked ./configure --help, is that code or data for you?08:10
jas4711 left08:10
jas4711 joined08:11
ezyang so, bash_complete looks like a bash script that sets up appropriate functions for autocompletion to work08:12
listdata left08:12
ezyang whereas zsh looks at some machine-parseable output of the command to figure out what's going on08:13
I probably am misunderstanding?08:13
idletask Can't tell, I haven't used zsh for a long time and don't use bash_completion (yet?)08:16
madduck idletask: how can you possibly use linux without completion?08:18
idletask madduck: I use "classical" bash completion08:18
madduck i mean, i am jealous. you are going to experience a revelation. an enigma. it'll be awesome.08:18
ah. :)08:19
still...08:19
idletask I mean, most people don't even know about C-x $, C-x ! and C-x ~08:19
ezyang eh, I thought TAB was completion?08:19
madduck are those !$, !! and !~?08:19
idletask madduck: no08:19
Most people also don't know about Esc, C-e as well08:20
pygi left08:20
madduck oh, i see. type-specific completion.08:20
ezyang left08:20
madduck Esc, C-e does nothing here08:21
idletask madduck: it expands subcommands, env vars08:22
With zsh, that's only a tab away, sure08:22
normalperson left08:23
idletask Anyway08:23
madduck ic08:24
ciaran left08:26
stephenos joined08:27
Tv left08:28
tango_ left08:29
towski left08:30
Tv joined08:36
girishr joined08:36
careo left08:39
aFlag joined08:40
aFlag hi. I started changing a few things on my working tree, but then I regreted. I want to save my changes to a new branch so I can get back to it later on, but now I want to do something else. How should I proceed?08:41
girishr_ joined08:47
odi joined08:48
abbe left08:49
cilly joined08:51
aFlag if I could somehow commit to a different branch08:54
girishr left08:54
tvw joined08:54
jayne git checkout <good sha1>08:54
that will put you on a detached head, from which point you can create a new branch08:55
with git branch08:55
CodeOfficer left08:55
jayne or git checkout -b08:55
merge the changes from master or wherever you didn't want them into this branch08:55
then checkout master or wherever you didn't want the changes and git reset --hard08:56
girishr joined08:56
aFlag hm, I just found out about git stash, I think it will work well here :-)08:56
jayne oh, you haven't committed?08:56
girishr_ left08:57
aFlag no08:57
jayne then you can just branch from where you are and commit... but stash works too08:57
thiago aFlag: just checkout another branch, commit there, then checkout back08:57
oops6_4 joined09:02
boud joined09:02
oops6_4 Hi I am using git from a log time for my projects but this time I face a problem. when I commit to git it takes long time then the normal is there any way to make it proper09:04
girishr_ joined09:05
boud left09:05
lucsky joined09:06
towski joined09:06
lucsky 'morning09:06
botanicus joined09:08
cedricv oops6_4: you need a "git gc" maybe09:08
ciaran joined09:11
daaku left09:11
aggieben left09:11
girishr_ left09:13
girishr left09:14
girishr_ joined09:15
cradek_ joined09:16
cradek left09:16
ceej left09:17
parasti joined09:18
ceej joined09:18
naeu joined09:21
mczepiel left09:21
bschindler joined09:21
dreiss left09:21
bschindler hi - in subversion there are those $ Revision ... $ tags, is there something similar in git?09:21
bjeanes left09:23
ridiculousRay left09:24
idletask No09:26
Lyfe left09:26
idletask Git doesn't track individual files09:26
It tracks the repository as a whole09:26
bjeanes joined09:27
bschindler I know git tracks content. That's why I asked here09:28
but thanks09:28
Tv left09:30
cilly left09:30
idletask There is an ongoing discussion on the git ml about these09:30
charon bschindler: you can use export-subst during git-archive, see man gitattributes09:31
http://www.kernel.org/pub/software/scm/git/docs/gitattributes.html (where'd the bot go?)09:31
girishr_ left09:32
quoin left09:32
pcapriotti joined09:35
ceej left09:36
Tv joined09:36
mosno joined09:38
pavelgolubev joined09:40
stephenos left09:42
cradek_ left09:43
pavelgolubev left09:48
priidu joined09:49
naeu_ joined09:50
naeu_ left09:50
bartman`` left09:56
naeu left09:57
shodges joined09:57
shodges left09:58
koke joined10:03
dwmw2_gonedwmw210:07
pygi joined10:11
cykl left10:17
cilly joined10:21
doener left10:22
gour joined10:27
gour vmiklos: hi, i'm testing darcs-fast-export with bzr, but errors are all i get10:28
vmiklos: see e.g. http://rafb.net/p/x8IJQX57.html10:28
kupsch charon: the gitattribute 'ident' is really nice. isn't there something for the HEAD hash as well?10:30
charon only at git-archive time, where TFM says it's $Format:%H$10:31
(i don't use any of those features)10:31
ciaran left10:32
kupsch cheers10:32
gour vmiklos: similar with git - http://rafb.net/p/G8X3L141.html10:33
cehteh morning gour10:33
gour cehteh: morning10:33
ciaran joined10:36
nud joined10:37
hobodave left10:39
odi left10:39
hobodave joined10:39
Numbers joined10:40
iulian left10:40
hobodave_ joined10:41
Numbers has 'Already up-to-date. Yeeah!' always been there, or did 'Yeeah' just magically appear? :/10:41
kupsch you could try to bisect the git sources and find out yourself10:43
Numbers heh, I could.. but I probably wouldnt understand the code and b) I don't have time at the minute :P10:44
Arjen It was introduced in 1c7b76be7d620bbaf2e6b8417f04012326bbb9df10:44
Numbers lol10:45
parasti no, it was in the shell script before that10:45
metric joined10:45
mosno left10:46
cilly left10:47
imyousuf left10:47
charon oldest i can find is 839a7a06f3 from april 2005... i guess it's always been there10:47
Arjen Yup10:48
Numbers Must be my bad eyesight then10:48
namenlos joined10:48
Numbers it miraculously sparked an hour long debate this morning in the office :D heh10:49
namenlos left10:49
pygi left10:49
kupsch your bad eyesight or the 'Yeaah!'?10:49
odi joined10:49
Numbers the 'Yeaah!'10:49
seems nobody saw it10:50
charon not all code paths have that apparently, several just say 'Already up-to-date.'10:50
girishr joined10:51
bschindler left10:52
girishr left10:54
girishr joined10:56
hobodave left10:58
charon Numbers: TFS says that it uses the Yeeah! only if you requested an octopus merge10:59
cute :)10:59
FunkeeMonk joined11:04
vmiklos gour: what does darcs check say?11:05
IOError: CRC check failed 0x327ba8f != 0xd257b5eL11:05
stuffcorpse left11:05
stuffcorpse joined11:06
vmiklos sounds like a corrupted patch11:06
Garoth left11:06
dmiles_afk my remote ssh repo is Writing objects: 3% (2524/76037), 14.30 MiB | 37 KiB/s .. rsync gets 168k.. should i rsync it?11:06
cehteh dmiles_afk: git gc11:07
Numbers charon, cheers11:07
dmiles_afk cehteh, oh right, i think that will shave off 200mb11:07
cehteh :)11:08
girishr_ joined11:08
ph^ joined11:08
dmiles_afk ok i see it getting 157-173kbs now11:08
not-xjjk joined11:09
cehteh what filesystem btw?11:09
dmiles_afk ext211:09
nomrally i use ext3 but i dont trust this hd11:09
Kbyte joined11:09
scientes joined11:10
dmiles_afk funny, i find more often i lose ext3 journals then have unrecoverable ext2s11:10
quoin joined11:11
girishr left11:11
dmiles_afk 1.7G 2008-11-12 02:59 gitzip.zip11:13
hrrm right now i am git push --all dmiles@denton_tx:/usr/shared/repos/javaCycGit .. i wonder which would be quicker11:14
also was it right to make it like: git init --bare --shared ?11:16
on denton_tx11:17
scientes_ joined11:17
dmiles_afk also i am going to 'git gc' in a fs copy of it just to see really how much it shrinks11:18
scientes left11:18
gour vmiklos: all repos are consistent...11:20
mosno joined11:22
cilly joined11:22
gour vmiklos: with one very small repo it works, but i've problem with --export-marks=file option, anything wrong in invocation ' darcs-fast-export.py --export-marks=./marks ~/repos/darcs/sweh |(cd sweh.bzr; bzr fast-import -)' ?11:22
xjjk left11:23
girishr_ left11:24
moccuo left11:24
dmiles_afk are packs temporary or are they the actual content?11:26
awarde joined11:27
lorandi joined11:27
cilly left11:28
moccuo joined11:28
muthu_ left11:28
dmiles_afk for updating or remote syncing it makes .pack to upload.. then it removes them?11:28
xenoterracide left11:29
xenoterracide joined11:30
aspotashev joined11:32
ciaran left11:33
Sho_ joined11:34
towski left11:36
xenoterracide left11:39
parasti dmiles_afk: there's some info about packs in man git-pack-objects11:40
xenoterracide joined11:40
parasti dmiles_afk: and maybe even in the manual, but I haven't looked11:40
zewerson left11:40
popol left11:41
zewerson joined11:42
dmiles_afk parasti, thanks, i decided to instread of just pushing to a remote system takes a few hours.. i'd create a LAN site to push to .. i am doing this from a differnt .git dirrecory as to not confuse the process...11:42
selckin1 left11:42
dmiles_afk fatal: pack has bad object at offset 1596795887: inflate returned -3 \n error: pack-objects died with strange error \n error: failed to push some refs to 'root@localhost:/javaCycGit/'11:43
now i am trying to find reading material to learn how to repair this11:44
gitte joined11:46
cilly joined11:46
dmiles_afk i think in the past someone was pushing stuff to me with a network error, or this was from a bad fsck11:46
so maybe a git checkout each version and commit each version to a new .git would eventaully fix this?11:48
corecode does somebody have a pointer on how I could split one root/branch into two, using filter-branch, i guess11:48
gitte corecode: depending on how specific you want to be, it might be a better idea to use fast-export && edit && fast-import11:49
corecode mhm11:49
that means i should hack it into the repo conversion instead of post-processing it11:49
i can do that as well11:50
gitte No, if you want automated, it is better to use filter-branch.11:50
corecode it is a one time thing11:51
how would I do that with filter-branch?11:51
gitte You'd need some sort of "parent filter" and a function mapping original parents to desired parents.11:51
corecode that isn't clear to me11:51
okay11:51
gitte parent filter should be pretty intuitive, no?11:52
Just look for --parent-filter in the man page for filter-branch; that explains it better than I ever could.11:52
corecode yah, i just got confused by the description that the children would then get the parents assigned automatically11:52
how is the run time of filter-branch vs fast-import?11:52
gitte I do not see the word children there. But maybe I am too dumb.11:53
corecode same? faster/slower?11:53
gitte Depends. On a lot of factors.11:53
Use of RAM disk.11:53
Which filters you use.11:53
cilly left11:53
corecode yah, ram disk...11:53
gitte Whether fast-export is appropriate at all (if you have to fear that your automated edits bork the syntax, it is not for you!)11:53
Then it comes down to the filters you use.11:54
corecode nono, i would hack it into fromcvs/togit11:54
gitte tree-filter being the most expensive one, of course.11:54
corecode: I kinda assumed that.11:54
johnflux joined11:54
johnflux Hey all11:54
I have a file, and I want to know who added/changed a particular line11:55
boto joined11:55
johnflux how can I do this please?11:55
corecode blame11:55
xenoterracide left11:55
johnflux neat - thanks11:55
Kbyte left11:55
Kbyte joined11:56
pygi joined11:57
selckin1 joined11:58
ciaran joined11:59
xenoterracide joined12:03
fisons joined12:04
gitte corecode: did you manage to write that parent-filter?12:04
corecode still waking up12:05
mainly idling12:05
so might take a bit :)12:05
now thinking of it it shouldn't be too hard12:05
i just need to find a way to find out how to split the branch automatically12:05
i.e. look at the changed filenames or so12:05
or do that before12:06
aspotashev left12:07
wanders Is there some command to get git repo root?12:07
gilimanjaro left12:08
Ryback_ joined12:08
moccuo if all commits in git are local then how are we able to access them in github for example?12:09
"commit history"12:10
are there different kind of commits that go to a central server?12:10
bjeanes left12:10
madduck no, github is also a local repository12:11
(albeit a bare one)12:11
github then simply has a web interface allowing you to view this local repository12:11
so you just push your commits to the other repository12:11
from your perspective, it's remote12:11
but if you took the .git directories on both sides, they would have the same contents12:12
(almost)12:12
hrajchert joined12:12
kermit_ joined12:13
Flathead left12:15
LuboC left12:15
wanders To answer my own question. "git rev-parse --git-dir"12:17
komplex joined12:17
koke left12:18
corecode gitte: i have the feeling that filter-branch is definitely slower12:18
i get 2 commits/sec12:18
xenoterracide left12:18
hrajchert Hi, i have a doubt about normal use of git. I have a project that has 2 branches, master (or stable) and myTestingBranch (that rather than new shiny code has things to help portability), i found myself with a bug (havent quite found the solution) in both branches but its easier for me to work from myTestingBranch... continues...12:19
corecode hrajchert: best is to fix the bug where it appeared and merge that into both branch heads12:20
xenoterracide joined12:20
hrajchert Because i dont want to mess up the myTestingBranch i would like to create a branch from there, try all this wacky things to find and solve the bug, then clean up that branch and merge it with myTestingBranch... but the bug fix is sure to be put in master, how can i do that? i dont want to merge myTestingBranch and master, just the bug fix part12:21
corecode: the bug is in both branches12:21
corecode yah12:21
but did it appear separately12:21
or did it appear before testing branched from master12:22
johnflux hrajchert: you can merge just a single commit12:22
hrajchert it appear when in the myTestingBranch after ive updated some external dependencies...12:23
kupsch hrajchert: I would do a git rebase --interactive and only pick the commits that actually fix the bug12:23
hrajchert johnflux you are saying the same as kupsch right? ill look how to do that12:24
johnflux hrajchert: yes. you don't need to look how to do that, he just told you how to do that ..12:25
corecode gitte: i'm thinking of doing a fast-import of only the commits, instead of running a filter-branch, and use the old pack for tree/blobs12:25
hrajchert johnflux: i mean that im going to test that out on a sandbox project :P12:26
johnflux oh right :)12:27
not-xjjkxjjk12:27
bjeanes joined12:28
gerontosepp joined12:28
cbrake_awaycbrake12:29
mosno left12:30
gerontosepp left12:31
EmilMedve left12:32
jnl_ helo, im a bit confused about some output from git ls-tree12:34
mkdir -p x/d x/e; echo foo > x/f1 ; echo bar > x/d/f2 echo abr > x/e/f312:34
git init -q ; git add . ; git ci -q -m . ; git ls-tree -d HEAD x x/d12:34
the result im getting is that i lists x/d and x/e12:34
i was sort of expecting it to list x and x/d, and to nt list x/e... or have i misunderstood the -d option?12:34
LuboC joined12:34
jnl_ s/nt/not12:35
juanjoc joined12:36
harinath left12:41
selckin1 left12:43
tvw left12:44
grahal left12:44
Pupeno-M joined12:44
grahal joined12:44
gretch left12:45
tvw joined12:46
namenlos joined12:46
Pupeno-M_ joined12:48
selckin joined12:49
Arafangion joined12:50
Arafangion Hey, what's wrong with my commit input to git-fast-import?12:50
http://rafb.net/p/YrsY5U57.html12:50
madduck jnl_: very weird.12:51
sorry, no idea12:51
idletask gitte?12:51
tvw left12:51
tvw joined12:52
Arafangion Oh stupid.12:53
<censored> python inserting newlines when I didn't want it.12:53
jnl_ madduck: it happens when one of the direcotries are a subdir of the other. if i do them one by one, or for example x/d and x/e, it works a i expected..12:53
oops6_4 left12:53
moccuo can you merge a branch if it has a file that has also since been modified on the master branch?12:55
or is that why im getting a merge conflict? :)12:55
Arjen Fix the conflict and commit12:57
Arafangion What's wrong with this input to fast-import? http://rafb.net/p/GpK4H155.html12:57
I am currently stumped.: (12:58
moccuo Arjen: yes i know. but does it always conflict?12:58
madduck Arafangion: patience. if noone answers, noone knows.12:58
Arafangion Apparently I haven't provided a 'committer', but it's right there on line two!12:58
Arjen 2committer ?12:58
Arafangion madduck: Alternatively, they didn't respond because I didn't provide enough info.12:58
Arjen: '2' is my mark.12:58
Arjen What's the error message?12:59
Arafangion fatal: Expected committer but didn't get one12:59
Ok, seems that marks are described below, it's not just a number, but has it's own format, thanks Arjen.13:00
Arjen Yeah, mark:$num13:00
moccuo: Has the file been changed on both branches?13:00
moccuo Arjen: yes13:01
Arjen moccuo: If the changes are in the same area on both branches, then it will conflict (obviously :-)13:01
What do you mean by 'always'?13:01
moccuo Arjen: i thought it would only conflict if it was the same line or something.. lets say for example in one brance i changed something in the <head> of an html document. and in the other branch i changed something in the middle somewhere.. it will still conflict?13:02
jnl_ i think i have "fix" for it, just not sure if the original code is doing what was intended to or not13:03
Arjen moccuo: Probably not13:03
Pupeno-M left13:03
moccuo Arjen: heh, well that's what i did.13:03
i'll try it again. might have done something wrong. after all its my first time playing with a VCS13:04
Arjen Heheh :-)13:04
Modius left13:05
gitte idletask: yes?13:07
mw|out joined13:07
idletask gitte: saw my last mail? The question that buggers me for now is "why twice the number of lines in the source file" (for the hashmap size). I can't get my head around this one... I mean, this has to have some sort of mathematical background or something, and I don't know enough about mathematics to understand your argument13:09
Second: what do you think about my "building a (dest ordered) list of lines using a list_head" stuff?13:10
Arafangion What's the difference between .git/branches and .git/refs?13:14
What /is/ .git/branches, rather?13:15
girishr joined13:15
mw|outmw13:17
icwiener joined13:18
Arafangion I'm trying to work out how I should store a "remote" branch.13:19
aspotashev joined13:19
charon 6687f8fea2213:19
gitte idletask: a hashmap is typically twice the size of expected entries so that the runtime has a chance to get optimal.13:19
whee joined13:19
gitte idletask: remember, expected runtime for insertion and lookup is _constant_.13:20
EmilMedve joined13:20
gitte idletask: you can't have that in a next to full hashmap, though, for obvious reasons.13:20
charon Arafangion: meh, the bot is offline. but the message of 6687f8fea22 explains a bit of that13:20
gitte idletask: as to the second point: wasn't there some explanation as to how you could get at the longest common sequence on Alfredo's blog?13:21
Arafangion charon: You just memorized the hash?13:21
charon Arafangion: no, i used 'git log --grep=".git/branches"'13:21
Arafangion charon: Thank goodness. :)13:21
idletask gitte: not really... But I understand now about the first point13:22
vasandgvd joined13:23
Lemurnomicon left13:24
vasandgvd how can i see the diff of a file after a commit?13:25
Lemurnomicon joined13:25
Arjen git show $commit13:25
idletask gitte: there is some talk about this, but it is blurry at best13:25
pygi left13:25
Arjen vasandgvd: git log -p13:25
icwiener left13:26
gitte idletask: lemmesee13:26
schlort left13:27
SjB_ joined13:27
vasandgvd idletask: thank you!13:27
girishr_ joined13:27
gitte vasandgvd: you meant Arjen.13:27
idletask What I was about to say13:28
vasandgvd yeap... sorry! thank you Arjen!13:29
Arjen vasandgvd: :-) np13:29
dlowe joined13:29
idletask gitte: it gives me enough information to add comments :p This is my pet peeve... I want to know why it was designed/coded this way, and this applies to what I code as well13:30
Even if it's thrown away at the end - at least I know I have understood what I coded13:31
Arjen You really appreciate the code archeology capabilities of git when you have to use other systems and search for things in the history13:31
Zimm joined13:32
gitte idletask: sure, but for example this comment: "@newrec: a pointer to a xrecord_t" does not add any information to what is present in the function signature anyway.13:32
idletask: that's what I meant with "adding too much documentation". If it only clutters otherwise readable code, it should not be there.13:32
idletask gitte: bah, you can't get it perfect the first time, let me some time :p13:33
The day when I fully master what I code, the comment will be different, promise13:34
gitte idletask: course I do! Why do you think I try to answer your questions? :-)13:34
girishr left13:34
gitte idletask: http://alfedenzia.com/images/patience.gif13:34
idletask: "The algorithm builds a set of piles, with each card being placed on the left-most pile whose top card is greater than it. When a card is placed on a pile, a backreference is made to the top-most card on the previous pile, if any. At the end of the algorithm, we work backwards from the top-most card on the right-most stack, thus building a longest increasing subsequence."13:34
gitte is sorry for the long lines13:34
idletask gitte: I'm not even there, I'm at the diagrams right above where it says that a preamble input is the sequence of lines ordered by what is seen in the destination13:35
Once I get that right, I'll see about the piles13:35
moccuo Arjen: hmm, it worked this time. strange.13:35
idletask (and probably change my inner loops once more)13:35
And, BTW, I'm still interested by a testing environment13:36
SjB_ left13:36
binjured left13:36
gitte idletask: where do you read the word "preamble" on that page?13:36
idletask I haven't even had the time to build one :/13:36
gitte: I understood "preamble" as "necessary step before going further"13:36
gitte idletask: ah, that's what you mean.13:37
girishr__ joined13:37
deskin joined13:37
idletask Yes, "sorry"13:37
gitte idletask: np13:37
idletask: but the sorting is pretty easy: you just keep a "next" pointer in the hashmap entries.13:37
idletask Which means, I want to get up to point n before going n+1, even if going n+1 means what I understood as "going to n" is wrong in the first place :p13:37
gitte idletask: you'll need a prev pointer, too.13:38
idletask gitte: and that's where I say that using list.h is WAY easier13:38
gitte idletask: but it is not necessary, and like you said, it only works on Linux.13:38
idletask For the reasons I outlined already13:38
No, it only works on _gcc_13:38
gitte idletask: besides, double-linked lists are sooooo easy.13:38
koke joined13:39
gitte Does not matter. gcc, Linux, does not matter.13:39
binjured joined13:39
idletask gitte: and what I say is, turning from gcc only to "not only gcc" is doable13:39
I've done it in the past13:39
The only thing that needs changing is container_og13:39
container_of13:39
gitte static void remove_entry(struct entry *entry) { entry->prev->next = entry->next; entry->next->prev = entry->prev; }13:39
Zimm left13:40
idletask gitte: and you lose the generality13:40
And you don't know what the head is13:40
gitte idletask: why do I need any generality? I don't!13:40
idletask list.h doesn't have this problem13:40
gitte: today, probably no13:40
Tomorrow?13:40
gitte idletask: sure, go ahead, use list.h. I do not care, I'll just hack it to my likings on this end.13:40
idletask I mean, this is a state of the art linked list implementation, which only requires a little hacking to make it work on non gcc based compiled environments13:41
Why not use it?13:41
Arafangion My goodness, it's insanely easy to write a fast-import importer.13:42
Zimm joined13:42
girishr_ left13:43
idletask gitte: see, you have to define a function to remove an entry from a list - with list.h, _you don't even have to_13:45
It's builtin13:45
gitte Arafangion: isn't it?13:45
idletask: besides, I have no idea why we discuss technicalities instead of the algorithm.13:46
Arafangion gitte: It is, still figuring things out, but I'm impressed.13:46
girishr_ joined13:46
coderdad joined13:46
idletask gitte: because this might help in the long run, that's why - and also, the fact that list.h has a head allows me to build a dest-ordered list from which to extract subsequences13:47
gitte Arafangion: say thanks to spearce, he invented the format.13:47
ankit9 joined13:47
idletask Because I only have to define the head _once_13:47
ankit9 left13:48
coderdad_ joined13:48
coderdad left13:48
LiamH joined13:48
ankit9 joined13:48
idletask gitte: see my mail again about building an ordered list13:48
From this list, building the rest is easier13:48
But I understand now the argument for twice the number of source lines for the hasmpa - key distribution13:49
The thing is, at the end, since you have all relevant entries linked as a list, AND the list is ready-ordered for the rest, the next steps will be even easier13:50
gour left13:53
gitte idletask: and here I disagree. The next steps will be easier once we have an understanding how to get the longest common sequence.13:53
idletask: and then we can ask ourselves what data structure to use.13:53
idletask: and whether to have next/prev pointers that we can override in meaning at will.13:53
Arafangion Hmm, I'm getting _many_ git commits that don't have associated files. (Each file is empty)13:54
girishr__ left13:54
Arafangion That is, I'm committing empty dummy files, but not all commits have such files, when they should.13:54
gitte Arafangion: guess: they are identical, both in content and name?13:54
Arafangion gitte: Yikes, git's that smart?13:55
roolio joined13:55
Arafangion gitte: They are identical, yes, both in content and name, however the first commit should have two files (which are empty and subsequently rewritten in a later checkin).13:56
But the first commit doesn't.13:56
In essence I have: http://rafb.net/p/Em9guJ96.html13:57
idletask gitte: OK, I think I need to read a little more about that LCS problem... But can you do me a favour and provide the way to do a test case? I want at least to see whether I can obtain the output from step 2 (dest ordered output)13:57
Arafangion (That's a portion, showing the first and part of the second commit)13:57
idletask gitte: once I'm there, I may have a better understanding of the rest, and why it's needed13:58
Pupeno-M__ joined13:59
gitte Arafangion: heh, I bet you verified with "git log --stat"13:59
Arafangion gitte: gitk, actually.13:59
gitte Arafangion: try "git log -p"13:59
jm joined14:00
idletask And, well, I just think I have figured out how to give up finding an LCS :p14:00
Arafangion That's more like it. Why don't they show up in gitk, though?14:00
nice_burger joined14:01
stampp joined14:01
quoin left14:02
stampp Hey guys -- how do I unstage a 'git rm' ?14:02
loincloth joined14:02
girishr_ left14:02
johnflux left14:03
idletask gitte: guess what? I have the solution for the longest subsequence problem, I think.. And it involves list.h14:04
loincloth left14:04
idletask thinks he'll have a go as the test case by himself :/14:05
gitte idletask: I am writing the test case for you right now!14:07
bjeanes left14:07
Arafangion In gitk, why doesn't it show the files that were modified by the first commit, if one is looking at the first commit?14:08
gitte idletask: just have a look at http://repo.or.cz/w/git/dscho.git?a=shortlog;h=refs/heads/patience14:08
idletask: if you want to work on it, I have enough other stuff to do.14:09
Arjen stampp: git add ?14:10
jas4711 left14:10
gitte idletask: okay, until you answer the question whether you want me to continue to work on it, I will work on something else.14:10
stampp left14:10
harinath joined14:10
jas4711 joined14:11
bjeanes joined14:11
aspotashev left14:11
harinath left14:11
farrukh_najmi joined14:12
bschindler joined14:12
harinath joined14:12
thebolt joined14:12
schlort joined14:14
Pupeno-M_ left14:15
idletask gitte: as I've said earlier, I have yet to understand the full algorithm, and I've only understood 1..n and not n..n+1, so maybe I'm completely misguided, maybe not14:15
scientes_ left14:15
idletask But dismissing list.h is... Well... Shortsighted imho14:15
gitte idletask: I do not care about list.h at the moment. For me, this is not an issue right now. The issue right now is to get a hashmap going. Then to verify that we find all unique lines in text1. After that, we can go further.14:16
bartman`` joined14:16
gitte idletask: so do you want to make the test case yourself? I'm fine with that.14:16
idletask gitte: no14:17
You understand libxdiff much better than I do, and in particular its interface14:17
I don't know right now how to "transform" two files into two xdfile_t and then an xdenv_t :(14:18
cliffstah left14:18
idletask If you can spare the time, or have done this already, this is what I'd like :(14:18
gitte idletask: have you looked at the link I posted 10 minutes ago?14:18
idletask Not yet, not the time yet :(14:18
gitte: if it's there already, tell me - I won't bother you anymore and will have a look14:19
gitte idletask: http://repo.or.cz/w/git/dscho.git?a=shortlog;h=refs/heads/patience14:20
idletask: just have a look at the newest commitdiff.14:20
madduck yay, patiencediff14:22
go gitte go!14:22
quickdev joined14:22
quickdev Hey14:22
kermit_ left14:23
Arafangion has figured out his issues.14:23
gitte madduck: hey, haven't seen you in a long, long time!14:23
softdrink joined14:23
gitte Arafangion: what were they?14:23
jm left14:24
Arafangion gitte: For now, using an incrementing integer for file data, so that it's easy to see how git stores the file, etc - real data will be used later - as for gitk, it seems that the 'Tree' lists the files in question - but not patch. Presumeably, if there is no previous commit, it won't bother generating a patch. (Which, imho, is inconsistent with other tools, but anyway)14:25
gitte: I'm also tagging each and every commit for good measure, so that it's easy to determine which commits correspond to which p4 commits.14:25
scientes_ joined14:25
willb left14:26
EiNZTEiN left14:26
gitte Arafangion: I think that might be an issue in the --stat code that does not detect +-0 patches (i.e. it ignores the creation of an empty file)14:26
madduck gitte: phd.martin-krafft.net keeping me busy.14:26
gitte: you ought to enjoy the time while I am not here and charge up for my return! :)14:26
madduck is the general troublemaker, HARHARHAR14:26
gitte madduck: where's the git repository with the .tex files?14:28
madduck gitte: ssh://git.madduck.net/srv/git.madduck.net/phd/thesis.git14:28
gasbag joined14:28
Arafangion gitte: I note that git-fast-import is using alot of memory, though, should i be concerned about that?14:28
madduck sorry, gitte: ssh://git.madduck.net/srv/*git*/git.madduck.net/phd/thesis.git14:29
without the *'s14:29
Arafangion 16881 arafangi 23 0 457m 427m 18m R 89.9 67.7 7:47.61 git-fast-import14:29
That's the line from top for the memory usage.14:29
gitte madduck: bah, no git:// URL? ;-)14:29
Arafangion git-fast-import is definetly the bottleneck. :(14:29
madduck gitte: if you really wanted it, i could consider it. but then I would expect feedback! :)14:30
gitte Arafangion: AFAIR you can limit the memory, but the more you give it, the faster it runs.14:30
ankit9 left14:30
gitte madduck: ouch.14:30
ankit9 joined14:30
madduck gitte: or just wait, it won't be long until it's done and then it'll be all public and Free, including the data.14:30
there's a lot of /git/i matches in the data. :)14:30
EmilMedve1 joined14:31
rmh3093 left14:31
gitte madduck: well, I'd be most interested in a short version, so I'll probably have to wait for the papers...14:31
EmilMedve left14:32
madduck first round data:14:32
lapse:~|master|% n=0; grep -hic git ~/mail/phd/cur/*:2,F* | while read i; do n=$(($n + $i)); done; echo $n14:32
9314:32
SjB joined14:32
madduck gitte: the thesis will be first. if there are going to be papers, then later. i doubt i will write real papers though, i hate academia too much.14:33
but the website will have the most important information in a concise format14:33
gitte The common sequence: thesis > papers. However, there are niceties in academia.14:33
madduck really? :)14:33
gitte For example, you do not get to bore yourself to death, as in private industry.14:33
idletask gitte: I'll have a look tonight, am @work right now - thanks for the link?14:34
s,\?$,!,14:34
gitte For example, if you feel like it, you typically can come in for lunch instead of just after breakfast.14:34
madduck true; anyway, my only condition to my supervisor when I started (yeah, i know, it's usually the other way around) is that it'd be a monograph and I would not have to write a single paper.14:34
gitte madduck: as long as you get your stuff done... which is quite challenging if you're involved in Git.14:34
madduck gitte: i work in private industry too14:34
... from home. :)14:34
idletask (and sorry for sounding like an ass)14:34
gitte idletask: an ass goes eee-haaah.14:35
Arafangion gitte: Seems that checkpointing each commit is *very* expensive.14:35
gasbag left14:35
Arafangion gitte: :)14:35
gitte Arafangion: yep, its only use is for debugging.14:35
Arafangion gitte: Only? Don't even need to do it at the end?14:36
gitte Not that I know of. Should be mentioned somewhere in the manpage IIRC.14:36
jm joined14:37
Yuuhi joined14:37
Arafangion I should re-read it when I'm clearer headed, should get some sleep.14:37
Thanks heaps gitte :)14:37
gitte Arafangion: what's your tz?14:38
deskin left14:39
Arafangion gitte: GMT +1014:39
gitte: I think it's daylight savings atm, though.14:39
gitte Oh, that explains it.14:39
Ah, I remember seeing your name with an .au email14:39
Arafangion :)14:39
name joined14:40
Arafangion Those were my first patches to an OSS project, btw. :)14:40
Garoth joined14:41
simmerz joined14:43
madduck congrats!14:43
and not just any, but the best of them! :)14:43
scientes__ joined14:43
simmerz is it possible to remove a commit that has been made previously?14:43
thebolt left14:44
Arafangion madduck: Thanks. :) Is it odd that I'm committing patches while I'm doing a rewrite?14:44
madduck simmerz: did you push it anywhere?14:44
Arafangion: nothing is odd in OSS14:44
simmerz madduck: yes. so I think what I want to do is merge back to before that change was done14:45
I'm used to svn, so learning git14:45
madduck simmerz: no, then just use git-revert14:45
moccuo is it possible to revert back to an older revision, but only on certain file(s)?14:45
madduck moccuo: not really14:45
git checkout rev -- file14:45
but then you have to commit the changes14:45
simmerz madduck: a bit confused how i use git-revert14:46
what is a <commit-ish> ?14:46
Arafangion simmerz: A mark, tag, branch, sha1...14:46
madduck a commit id or branch name14:47
simmerz the one I want to revert to?14:47
madduck not revert to14:47
simmerz: okay, let's take a second here...14:47
assume you have commits A,B,C,D,E in that order, and you wanted to revert C14:47
do you want A,B as result, or A,B,D,E?14:48
scientes_ left14:48
simmerz I would "like" ABDE14:48
madduck then you do14:48
git-revert C14:48
git revert C even14:48
this will create ABCDEF14:48
where F is !C14:48
F reverts C14:48
it's the proper way of doing it14:48
simmerz is a merge but no -m option was given, apparently14:48
madduck aha.14:49
well, read about the -m option and then figure out what it wants. :)14:49
probably -m0 but you need to see14:49
Arafangion left14:49
madduck anyway, if you screw up, you can always rescue it14:49
do14:49
git tag safety-net14:49
now14:49
so that you can always restore to the current state later14:49
(git checkout master; git reset --hard safety-net)14:50
do *not* use git reset unless you know what it's doing otherwise14:50
simmerz ok14:50
madduck especially not with --hard14:50
and make that s/;/\&\&/ in the above :)14:50
Sho_ left14:51
madduck -m1, not -m014:52
sorry14:52
who designed this? :)14:52
simmerz ok. I've now got a conflict in a swf (binary) file. what to do? it suggests git add <path> and git rm <path> but there is only one file there14:53
ankit9 left14:54
majoh left14:55
majoh joined14:55
Daenyth joined14:59
simmerz next question. how do i take a patch that I've created and merge it in? I got giggle to create the patch for me14:59
Daenyth I accidently uploaded a branch with the wrong name to my github repo, how can I remove it?14:59
simmerz ah. git-apply15:00
Daenyth is there a simple way to do that?15:00
madduck Daenyth: git push origin :branchname15:01
Daenyth simple :)15:02
thanks man15:02
EiNZTEiN joined15:02
Daenyth left15:02
EiNZTEiN_ joined15:02
cilly joined15:02
madduck i'm not a man15:04
kmap joined15:04
bjeanes left15:04
foca_foca15:04
imarcusthis a duck?15:05
loincloth joined15:05
madduck very good!15:05
hobodave_ left15:05
imarcusthis your ircname says martin. strange name for a duck.15:06
madduck prejudice. why can't ducks have nice names too?15:06
imarcusthis I mostly know them as "dinner"15:06
madduck gasps15:06
hobodave_ joined15:07
aspotashev joined15:07
d0k joined15:07
Arjen Heheh15:08
rmh3093 joined15:10
simmerz final question I can't work out: how do push a branch to remote? I've done a git commit -a and a push then whilst in master, but it hasn't pushed the branch I created15:11
broonie simmerz: git push <remote> <branch>15:12
willb joined15:13
broonie By default it will only push branches that already exist, you need to explicitly tell it to push a new one.15:13
krh joined15:13
simmerz ok15:15
withanx_ joined15:16
Niamor left15:17
NiaGhost joined15:17
NiaGhostNiamor15:17
samjam What does DAG mean?15:17
Arjen Directed Acyclic Graph15:18
clairvy joined15:19
jackdempsey joined15:19
spearce joined15:19
samjam thanks.15:19
Anyone know the spell to make stgit just shut up and start again?15:20
I daren't do "stg commit" in case it does something15:20
kanru left15:20
samjam for some strange reason; "git fetch" did a sort of merge and broke stgit15:20
moccuo left15:23
ivaxer joined15:23
grithe joined15:24
vasandgvd left15:24
kanru joined15:25
spearce left15:25
careo joined15:26
hobodave_ left15:26
madduck topgit. :)15:27
harinath1 joined15:29
samjam maybe I should15:29
withanx_ you have to do adds at the end in git? If you do a git add file, then modify the file, it won't commit the modifications until you re-add it, right?15:31
lorandi left15:31
madduck right15:31
lorandi joined15:31
madduck one of the best features of git15:31
alongside git add -p :)15:31
harinath left15:32
withanx_ git add -p does what?15:32
koke_ joined15:32
akahn joined15:32
madduck check it out15:33
make some changes all over and then call it.15:33
FunkeeMonk left15:33
akahn How do I merge when what I'm pulling in will overwrite a binary file I have? I'm okay with that, so I want the merge to go ahead and do it.15:33
madduck use a merge driver like 'theirs'?15:34
akahn what is a merge driver?15:34
madduck man gitattributes and git-merge15:35
the one you want is probably 'binary'15:35
akahn ok. i read git help merge and it didn't seem to mention a way to use 'theirs'15:35
madduck theirs doesn't exist15:35
sorry15:35
'binary'15:35
iulian joined15:36
madduck strategy btw15:36
git merge -s binary ...15:36
akahn madduck: i don't see that strategy in git help merge15:36
madduck man gitattributes15:36
wait15:37
i think i am confusing things15:37
cilly left15:37
koke left15:37
SgtPepperKSU joined15:37
madduck what is the relation between merge drivers and strategies?15:37
simmerz ok. confused now again. sorry! If I do git-branch -r -d origin/somebranch, why does it not disappear off the github branch list?15:39
EmilMedve1EmilMedve15:39
madduck because it's a separate repo15:40
akahn so i see where the man page is talking about the binary driver. how do I set git to use that driver for certain files/directories?15:40
madduck man gitattributes15:40
i need to stop this now15:40
i never get any work done otherwise15:40
what an addictive thing, this Git.15:41
gitte: you should have warned me! :)15:41
EmilMedve left15:41
Modius joined15:41
kukks joined15:43
joshdavey left15:45
jpieper left15:46
jpieper joined15:46
cannonball joined15:49
softdrink left15:50
pygi joined15:52
gitte madduck: why should you have any advantage over me? I had to unsubscribe from the mailing list, back then.15:52
madduck gitte: you are older than me? it is your duty to protect me from the evil!15:52
i get to learn from your mistakes.15:53
softdrink joined15:53
madduck or rather: you get to make them and i get to avoid making them. :)15:53
sergiodj left15:55
EmilMedve joined15:55
foca_ joined16:00
dotsintacks left16:01
threeve joined16:01
parasti left16:02
bobesponja joined16:04
LuboC left16:05
evansparkman joined16:05
evansparkman hey guys16:05
could someone help me on this error? http://pastie.org/31308316:05
bobmcw joined16:05
madduck ask in #ruby?16:06
evansparkman no16:06
this happens when i do a cap deploy16:06
madduck i know git, but not what a cap deploy is.16:07
LuboC joined16:07
broonie Automated deployment of an app.16:07
madduck in ruby?16:08
broonie It's a ruby thing, yes.16:09
well, rails anyway.16:09
madduck see above. :)16:09
foca left16:09
foca_foca16:09
rmh3093 left16:10
stephenos joined16:11
CodeOfficer joined16:12
ia left16:13
ia joined16:14
aroben joined16:17
bremner is there a #capistrano or #rails?16:18
danderson try it?16:18
jackdempsey left16:18
pygi left16:19
bremner is not personally interested, just as a suggestion for places to ask capistrano and rails questions16:19
simmerz left16:19
racerx joined16:19
bremner #rubyonrails ftw16:20
muthu_ joined16:20
Voker57 joined16:20
racerx can someone help me with y a command to set up a repository is not working?16:21
blithe joined16:21
racerx here is the command: sudo -u git git-daemon --base-path=/home/git/repositories/ --export-all16:22
i'm running it on ubuntu distro16:22
sergiodj joined16:22
hobodave joined16:22
blithe Can anyone point me to a method to pull a directory (and it's history) out of a current repository and add it into a new seperate repository?16:23
evansparkman left16:23
blithe I started a project in another repository that now needs it's own repo.16:23
madduck git-filter-branch maybe?16:24
tokkee blithe: git filter-branch --subdirectory-filter16:24
roolio left16:25
madduck blithe: but be careful of the consequences16:25
blithe madduck: Oh?16:25
madduck this rewrites history and requires you to make sure that everyone who is following the repo reclones basically16:25
blithe I'm the only one working the repo at the moment.16:25
Mikachu you want to clone it first, and then filter-branch16:25
madduck otherwise you will diverge with other team members.16:25
Mikachu don't filter in the original repo16:26
madduck Mikachu: not even if you tag the current commit before?16:26
racerx can someone show or point me to a tutorial on how to set up a git protocol on my repository?16:26
madduck racerx: http://git.or.cz16:26
Mikachu madduck: well, maybe, but it's still a pretty good idea to make a new repo16:26
madduck you just don't want bug reports from angry users. :)16:27
i say this as with my mdadm maintainer hat on. i would love if people did their mdadm commands on clones instead of live systems. :)16:27
racerx I have a repo setup. I need to make it so that you say git clone git://... the emphasis being on git protocol16:27
blithe Thanks guys, it worked great. Thanks Mikachu for the advice on cloning first.16:27
madduck racerx: i am sure the wiki or homepage explain this.16:27
man git-daemon16:28
racerx I tried to follow a tutorial using this commanline on ubuntu and it did not work. sudo -u git git-daemon --base-path=/home/git/repositories/ --export-all16:28
madduck on ubuntu, just installing and configuring in /etc should work16:29
koke_ left16:30
madduck this is how to use it with xinetd:16:30
http://1t2.us/15290416:30
in /etc/xinetd.d/local-git-daemon16:30
arguably, that should be a different user though16:31
fynn joined16:32
fynn yay git update16:32
so git would be even bettah16:32
rmh3093 joined16:32
ivaxer left16:33
koke joined16:35
ciaran left16:36
ciaran joined16:36
koke left16:37
tango_ joined16:37
koke joined16:38
reithi left16:39
bieneff joined16:42
qrush joined16:42
spearce joined16:42
sdboyersdboyer|soup16:42
digitalhobbit joined16:44
namenlos left16:44
j_engelh joined16:46
pygi joined16:49
rubydiamond joined16:49
jmatthews_ joined16:52
idletask left16:53
ahupp|fb joined16:53
radarek joined16:54
jackdempsey joined16:55
DrFrasierCrane joined16:55
kergoth joined16:56
kergoth if i have a list of random commits, taken from the history of a single ref, is there an easy way to order them by accessibility? the order they occurred in the history?16:57
muthu_ left16:57
j_engelh --date-order16:57
or...16:58
you could do this:16:58
vmiklos --date-order is the default iirc16:58
j_engelh no, topo-order is default16:58
git rev-list TheSingleRef | grep -Ff textfile-of-your-random-commits16:59
kergoth that only works with log or rev-list, no? i have a number of commits here, they didn't occur one after another, or in this order, and i don't want to see any commits other than these.16:59
vmiklos ah, yes16:59
kergoth ah, thats a good idea16:59
koke_ joined17:00
paltman joined17:03
theefer joined17:03
paltman what's the difference between HEAD and master?17:03
mediogre joined17:04
kergoth paltman: HEAD is what you currently have checked out. that isnt necessarily master17:04
rmh3093 left17:06
cilly joined17:06
j_engelhHatler17:07
Hatlerj_engelh17:07
rmh3093 joined17:07
koke left17:07
DrNick left17:08
DrNick joined17:08
rmh3093 left17:09
nud left17:09
rmh3093 joined17:09
tewk_ joined17:11
SgtPepperKSU left17:14
ceej joined17:15
odi left17:16
patmaddox joined17:17
jackdempsey left17:17
akahn left17:17
bschindler left17:19
ceej_ joined17:20
tewk left17:23
gitte left17:23
racerx I'm getting an error when trying to clone a git repository. the error is "errno=No route to host". Is it something on my end or the server because I can do git clone username@//ip_adress:rep. But no git clone git://ip../repo.17:24
idletask joined17:24
harinath1harinath17:25
Modius_ joined17:26
ceej left17:27
joshbuddy joined17:29
Pistos joined17:30
Pistos The docs are not really clear: in git config files, is a tab character required, or can spaces be used to indent?17:30
binjured left17:31
netoman joined17:32
binjured joined17:32
Modius left17:32
emss joined17:38
Modius joined17:40
p4tux joined17:42
hrajchert left17:42
deskin joined17:43
racerx left17:45
madduck space is fine17:45
aFlag left17:46
ceej joined17:46
madduck i don't think you even need any space at the start of the line17:46
PerlJam left17:47
PerlJam joined17:47
cilly left17:48
digitalhobbit_ joined17:49
Modius__ joined17:49
cilly joined17:50
Numbers left17:51
ceej_ left17:52
Modius_ left17:52
Modius_ joined17:53
Kbyte left17:54
Pistos madduck: Nice. Thanks.17:54
niki joined17:55
kraymer joined17:55
ahupp|fb left17:56
adamb90 joined17:56
Modius_ left17:57
Modius_ joined17:58
redinger joined18:00
nud joined18:00
zewerson left18:00
lorandi left18:01
ged left18:01
lorandi joined18:01
Nies joined18:02
digitalhobbit left18:02
zewerson joined18:02
coderdad_ left18:02
jackdempsey joined18:02
markelikalderon left18:03
Pistos left18:03
harinath left18:03
Modius_ left18:05
clairvy left18:06
Modius left18:06
gilimanjaro joined18:06
Modius__ left18:10
quickdev left18:13
ashleyw joined18:14
iiijjjiii joined18:16
ben_h left18:17
cilly left18:18
litage joined18:19
DrFrasierCrane left18:21
jm left18:22
drizzd joined18:23
spearce left18:25
farrukh_najm1 joined18:26
farrukh_najmi left18:27
deskin left18:28
Voker57 left18:29
mediogre left18:30
Voker57 joined18:31
spearce joined18:34
charon left18:39
pygi hi hi spearce :)18:40
qrush left18:40
ashleyw left18:42
drizzd_ left18:44
arobenaroben|meeting18:44
idletask left18:46
iiijjjiii left18:48
nixbox joined18:50
nixbox hi18:50
dreiss joined18:50
Tv left18:50
nixbox i am doing a git pull , it does something and then terminates saying that a file xyz.c needs update18:50
||seb|| joined18:50
nixbox what do i need to do to fix this error?18:50
||seb|| Is there any reason git is better for kernel development while mercurial is better for userland apps? (I'd prever to use git for everything)18:51
prefer*18:51
marcan I use git for everything...18:51
even slideshows :P18:51
bmalee Well, git is better for the Linux kernel 'cause it's what Linux uses...18:52
||seb|| marcan: hmm...then why is mercurial being used by a lot of projects...i wonder if the perception is that "git is for kernel dev" in open sourceworld18:52
PerlJam ||seb||: Not around here.18:52
bmalee Beyond that, I don't know any reason why one would be better than others in some situations but not others.18:52
PerlJam ||seb||: mercurial is used because people like it.18:52
qrush joined18:53
||seb|| PerlJam: i'll likely have to learn both to cover all my bases18:53
koke_ left18:53
marcan I haven't dealt with hg, but I'm sure we'll all agree that git beats the pants off of cvs and svn. Too bad sourceforge doesn't offer git hosting though; some cling to that fact to avoid being assimilated by git18:54
jm joined18:54
j_engelh sf will eventually get there, just scream louder18:54
||seb|| marcan: i'm amazed how fast linus blew the pants off BitKeeper and moved on18:54
j_engelh also, I am kinda thankful I don't host git at sf... sf would probably prohibit push -f18:54
marcan yeah18:54
schacon joined18:55
PerlJam marcan: why would sf offer git hosting? github already exists :-)18:55
david_koontz joined18:55
spearce left18:55
marcan PerlJam: legacy users afraid of change and stuck with SF :-)18:56
j_engelh you'd be surprised...18:56
like one or two years ago, I ran a sample on SF... and it turned out 95% of projects ran on CVS rather than svn...18:56
nice_burger i want to find a function in a file. the function was deleted several commits ago - how do i find out which commit still has this function? some sort of grep file_name from some git output, but what exactly?18:56
||seb|| how soon before we see hghub? :)18:57
schacon is there an easy way I'm not thinking of where you can list all the commits over several branches only if they have a certain sha in their history?18:57
j_engelh ||seb||: probably never.18:57
PerlJam nice_burger: git help grep18:57
||seb|| j_engelh: all it takes a one PC with a new connection...doesn't seem that hard18:57
marcan the guys I get to deal with every now and then still use SF CVS18:57
||seb|| s/new/net18:57
marcan they don't like me because I improve their stuff and throw it on a public git repo18:57
||seb|| marcan: bah..CVS18:57
schacon seb: bitbucket is basically github for hg18:57
marcan of course the git repo kind of supersedes their CVS repo18:58
you can just checkout origin and get their CVS master, updated hourly18:58
spearce joined18:58
PerlJam I was at a meeting last year where the presenter was telling everyone about this process he'd built up around CVS. About mid-way through the presentation, he finally asked how many people used CVS. Not a single person raised their hand.18:58
marcan hahahah18:58
nice_burger PerlJam: thanks, that's a bingo. i see the line i'm interested in, but how do i know what commit that is?18:59
PerlJam nice_burger: um ... good question.19:00
nice_burger: maybe use "git bisect" in conjunction with "git grep" /19:01
?19:01
amystrat joined19:01
nice_burger PerlJam: how bout this as a solution- you know a way to tell git grep to give me N lines and N lines after the matching line? then i could just see the function and copy it, and nevermind what commit it was19:03
amystrat Having strange problem with a few users, git pull once..... have conflict in random file no merge.... do git pull again, it merges fine19:03
ahupp|fb joined19:03
amystrat when the users had no local changes19:03
PerlJam nice_burger: sure, you use the same options you would for unix grep -A, -B, or -C (lines after, lines before, or both)19:04
nice_burger thanks, just found that, was gonna tell you19:05
(i'm new to grep in ANY context hehe)19:05
ashleyw joined19:13
fynn is adapting to Git by finding cute nicknames for huge SHA hashes19:17
fynn for example, f909356 is like "f, gogo, and the number of days in the year"!19:17
but gog instead of gogo :|19:18
but now you guys all know what I'm committing :/19:18
bremner fynn: tags are nicknames for hashes, the cute part is up to you :-)19:18
fynn bremner: yeah, but it's not like it's a good idea to create a huge bunch of them...?19:19
bremner fynn: well, you can delete them19:19
fynn hm, probably a good idea19:20
I'm still going to refer to that one as fgog. he's sort of a personal friend.19:20
though admittedly of a somewhat imaginary nature.19:21
||seb|| left19:21
sdboyer|soupsdboyer19:21
bremner on IRC, no one knows your a tag19:22
ciaran_ joined19:22
sdboyer-laptop joined19:23
mwmw|food19:23
rubydiamond left19:23
coderdad joined19:24
vuf_ fynn: does your leap year have 356 days?19:25
j_engelh No.19:25
even my normal years don't have 356 ;)19:25
fynn vuf_: I always confuse them, so it wfm19:26
scrooloose_ joined19:26
gilimanjaro all my years have 35619:27
most have more even19:27
bremner gilimanjaro: so far anyway19:27
gilimanjaro true19:28
j_engelh like 9-10 extra days19:28
gilimanjaro there aprox 97% probability that I will experience one year of less then 356 days19:28
j_engelh there is a 0% chance you'll ever get a year with less than 364.19:29
Ademan left19:29
gilimanjaro nope19:29
in fact19:29
bremner j_engelh: whoosh19:29
gilimanjaro i've already experienced one year with much less19:29
vuf_ and if you go to Venus, you will get many more19:29
j_engelh well yeah if you travel all day you can have a year with a little more than 130 days19:29
gilimanjaro aprox 160 days that year19:29
no19:30
my first year had less19:30
and my last will probably have less also19:30
j_engelh -.-19:30
bremner j_engelh: is that the displeased pug dog smiley?19:30
Cacher joined19:31
stickstick[T15]19:31
stick[T15]stick19:32
cilly joined19:32
coderdad left19:32
ciaran left19:33
ciaran_ciaran19:33
odi joined19:36
jesselucas joined19:36
kumbayo joined19:36
ivazquez1 joined19:38
coderdad joined19:38
Daenyth joined19:38
Daenyth I'm trying to use git diff to see all changes done to a portion of my tree since a specified date, but I can't figure out the syntax19:39
how would I do that19:39
something like git diff --from="Oct 10"19:39
for example19:39
gilimanjaro git diff {2008-10-10}..HEAD19:40
might work19:40
man git-rev-parse19:40
dwmw2dwmw2_gone19:40
Daenyth thanks19:41
sgrimm left19:41
Daenyth hrm19:42
gilimanjaro isn't working eh19:42
i'm trying what will work19:42
Daenyth says bad revision19:42
ivazquez left19:42
gilimanjaro ah19:42
--since19:42
Daenyth ahh19:42
gilimanjaro erh19:43
jese19:43
no sorry19:43
Daenyth it's not in the manpage 0.o19:43
ah19:43
gilimanjaro that's an argument to git-rev-parse19:43
Daenyth is that for git log?19:43
ivazquez1ivazquez19:44
vuf_ just find a commit from 10-10 and diff to that19:44
gilimanjaro ah19:45
I almost had it19:45
git diff @{2008-10-10}19:45
Daenyth ahh19:45
gilimanjaro i forgot the @19:45
shoudl work with git log too19:45
Daenyth win19:45
many thanks, will save me a lot of work19:46
gilimanjaro no19:46
problem19:46
:)19:46
daniel-w_ joined19:46
Daenyth :D19:46
Daenyth left19:46
charon joined19:47
ceej left19:47
thedoctor joined19:48
scrooloose left19:48
thedoctor Hi, can anyone explain git's mmaping behavior? I can't find anything on google.19:48
vuf_ what do you mean by behaviour?19:49
thedoctor what does git mmap in particular and what operations is it particularly trying to speed up19:49
things relative to the index?19:49
vuf_ I don't know19:50
amystrat left19:51
thedoctor hrm... well, what got me started on this was the initial email thread when Linus was first starting git19:51
and he mentioned something about keeping his whole kernel tree in memory and git leveraged that, so I got looking.19:51
the particular email is here: http://lkml.org/lkml/2005/4/8/20519:53
and that got me interested both in what exactly Linus is doing and what git does19:54
cilly left19:54
rtomayko joined19:55
daniel-w left19:57
komplex left19:58
k776 joined19:58
ceej joined19:59
broonie h20:02
tvw left20:03
broonie thedoctor: git is optimised to work well when the filesystem cache can cache the entire .git20:03
thedoctor: so all memor20:03
fynn left20:03
broonie thedoctor: so reading data becomes extremely cheap once the cache is warm.20:03
_graham_ joined20:03
fynn joined20:04
fynn Can I ref (tag) a specific file at a specific revision?20:04
i.e. "the file foo.py at its state after changeset 23"20:04
thedoctor broonie: ok, so git tries to mmap the entire repo?20:04
charon fynn: you can tag the blob of the file _contents_ at that commit. that tag won't "know" the commit it took the file from, however.20:05
broonie or just read it, the important thing is that it doesn't have to hit disk20:05
lorandi left20:06
thedoctor broonie: what do you mean by read it?20:06
broonie using normal I/O functions rather than mmap20:06
thedoctor so are you saying git will read the repo and cache information in a separate way in RAM?20:07
broonie No.20:07
thedoctor I'm sorry I don't see what you're saying...20:07
broonie git relies on the filesystem caching that the OS does.20:07
fynn charon: so basically, I can get a tag called "foo.py at revision 23" but it won't have any internal reference to revision 23...20:07
thedoctor oh, ok20:07
I guess I'm understanding Linus's email more now...20:08
do you know what he meant by keeping kernel trees in memory?20:08
charon fynn: yes. git doesn't version files separately, only trees of files. so you can tag blobs (contents), trees, and commits.20:08
thedoctor does he mean tmpfs or disk buffers?20:08
vuf_ thedoctor: buffers20:08
charon er, s/yes/exactly/. i suck at english semantics.20:08
broonie buffers.20:09
thedoctor so is there some way to tweak the buffering behavior?20:10
jas4711 left20:10
thedoctor or is he just assuming that once he accesses the kernel directory the kernel will do the right thing?20:10
fynn charon: what does it mean that I can tag a tree?20:10
vuf_ for Linus, that is not an assumption20:10
ashleyw left20:11
broonie thedoctor: Details of the OS disk cache will depend on the OS.20:11
DrNick non-Linux operating systems do tend to have terrible caches, though20:11
thedoctor I guess what I'm getting at is how exactly can you be sure the OS will cache a given directory?20:12
assuming OS==linux20:12
kergoth left20:12
broonie You can't; move it to tmpfs or something else memory backed if you're concerned.20:12
charon fynn: a tree is git's way of storing the filenames. it's just a list saying "file 'foo.py' had contents $sha1". i haven't seen anyone tag trees in practice though. you should stick to commits :)20:13
broonie but not doing that kills performance for lots of apps so there's a very good chance the OS will DTRT as much as it can.20:13
thedoctor broonie: yeah, that's what I'm trying to deduce.. does Linus just have a ton of RAM and knows that it will get cached right, or is he using tmpfs20:13
because if anything will speed up compilation and ease my disk's duties, I'm interested :P20:14
broonie you only need a few hundred megabytes even for the kernel tree.20:14
thedoctor broonie: an entire 2.6 git tree is about 1.2G, though20:14
is caching smart enough to keep from hammering the disk with linux? I'm assuming it is because I don't hear it grinding when I compile, but I've never gotten real numbers.20:15
pygi left20:15
Mario_ joined20:15
fynn charon: right, because probably the tree is the entire tree.20:15
broonie yes20:15
schacon left20:15
broonie note that .git plus the actual code you build is the only interesting bit here.20:15
fynn charon: so if I have a repo with more than one file, tagging the tree is always going to refer to more than one file.20:15
thedoctor true, and what I'm having a hard time understanding is if .git is over a gigabyte, how is caching affected?20:16
charon yes. why do you want to tag a (commit,file) pair anyway? doesn't the entire context matter? and if it doesn't, why aren't the contents of the file enough?20:16
kraymer left20:16
aroben|meetingaroben|lunch20:16
thedoctor assuming we might not have enough space to cache all of .git20:16
which, I guess, brings me back to the question of "what does git mmap?"... I saw things saying it make 2 250MB mmap files, what for?20:17
scrooloose_scrooloose20:18
ashleyw joined20:18
charon it mmaps whenever it can... for example, to compute sha1s of a file, it just mmaps the entire file instead of reading it20:18
thedoctor ok.20:18
I think I've got the picture now20:18
thanks!20:18
Mario_ left20:19
vuf_ thedoctor: do realize that it is mostly stat information that is cached, git only looks at files if they actually were modified20:20
thedoctor vuf_ : yeah, that was something I noticed mentioned in the thread.20:21
charon you don't usually need to have all of .git cached anyway, for example, writing a new commit should just need .git/index, the loose objects and the pack indexes (i haven't looked, but it doesn't have any use for the rest of the data)20:21
nice_burger left20:22
thedoctor that would make sense as mostly you'll be needing to look at the index relative to what you're doing.20:22
damog joined20:22
fynn charon: isn't tagging the commit focused on the changeset, rather than the resulting state?20:23
vuf_ fynn: not really, you tag for example v1.020:24
charon fynn: changesets are an illusion given by git-diff (and supported by other tools such as 'am' and 'rebase'). git always tracks the entire contents at that commit20:24
mw|foodmw20:24
thedoctor left20:25
parasti joined20:25
bentob0x left20:25
Russel-Athletic joined20:27
Russel-Athletic hiho20:27
adamb90 left20:27
adamb90 joined20:27
fynn charon: so it's like the Matrix?!20:28
Russel-Athletic perhaps this is a stupid question but i have now git on my laptop and on my pc. both repositories differ now in such a way, that a merge doesn't work. how can i just say something like: forget what i did on my laptop, just use the stuff on my pc20:28
fynn charon: j/k, so that's what is meant by the notion that "git tracks snapshots"?20:28
charon exactly20:28
gour joined20:28
jas4711 joined20:28
gour vmiklos: hi, here is the public url of that repo - darcs get http://code.haskell.org/xmobar/20:29
hiffy left20:29
Voker57 left20:29
gilimanjaro Russel; you can discard your laptop repo and clone it from your pc20:30
Russel-Athletic well that would be a possibility but isn't there a nicer way?20:30
gilimanjaro define nicer :)20:31
jptix hmm, if want to basically do `git log -p | grep foo`, but also see what commit the match comes from..any good ways to do that?20:31
Russel-Athletic well something without loading the whole repository20:31
ciskje joined20:31
vuf_ Russel-Athletic: look up "merge ours"20:31
jptix besides `grep "^commit|foo"20:31
gilimanjaro if you know when the two started to diverge, you can first reset your laptop to that commit20:31
and then pull in the changes from your pc20:31
Russel-Athletic but it would also help if somebody could name me a tool or a way to see the differences in the file better then just the <<<<< and >>>> signs in a file20:32
jast jptix, you mean git log --grep?20:32
gilimanjaro russel: gitk may be of help?20:32
vuf_ Russel-Athletic: git mergetool perhaps? (I never learned to like it, though)20:32
jast (or -S and the --pickaxe-* options)20:33
jptix jast: sounds promising20:33
Russel-Athletic thanks vuf_20:33
gilimanjaro sometimes rebasing on batch of commits on top op the other clears things up a bit also20:33
s/on/one/20:34
Russel-Athletic and git merge --s ours just gave me a message: "you are in the middle of a conflict merge"20:34
sgrimm joined20:36
gilimanjaro russel; well, you may want to back out of the merge before deciding on a course of action20:36
but git-mergetool was very good advice from vuf i think20:37
never used it myself, but it sounds like what you need20:37
Russel-Athletic yes it is a start and i am trying to merge it at the moment with this20:37
unfortunatly the tool confuses me now20:38
but thanks for the help :)20:38
gilimanjaro read it's manpage; you can use it with any diff viewer you want20:38
Russel-Athletic i know20:39
but this is just the time to learn this new cool fancy emacs merge thingy :)20:39
jptix jast: thanks, -S is what i'm looking for.20:40
sneaky thing doesn't accept a space before the search string…20:40
took me a while to see that20:40
lucsky left20:43
pjhyett joined20:43
adamb90 left20:44
ashleyw left20:45
lfaraone joined20:46
lfaraone Hey, I apologize for my cluelessness, but how do I "git update" from our master tree when I have local changes that havn't been merged?20:47
kansan joined20:48
shd lfaraone: do you mean local changes that have not been committed?20:48
ashleyw joined20:48
lfaraone shd: yeah.20:49
shd lfaraone: git stash -> you get a clean working directory. then "git pull" to merge the master.. handle the merge. then "git stash apply"20:49
or, maybe this:20:49
throwaway branch for temp changes: git checkout -b newtmpbranch ; git commit ; git checkout master ; git pull frommaster ; then get the stuff from newtmpbranch20:50
Tv joined20:50
shd lfaraone: "git stash apply" will restore your dirty files with 3-way patch20:50
ciskje_ joined20:50
shd lfaraone: stash is a kind of temporary working area that can later be "merged" on top of any branch20:51
PerlJam I think of a stash as a kind of nameless branch.20:52
ciaran left20:53
shd PerlJam: the difference to a branch is, it does not have new commits20:54
ciaran joined20:54
shd i often use stash, but sometimes i use named temporary branches to do the same thing..20:54
vuf_ I think of stash as confusing20:55
gilimanjaro i often use my stash, but get the munchies after20:55
lfaraone shd: ah...20:55
fynn charon: OK, so a "changeset" is really a snapshot + the diff that created that snapshot...?20:55
charon the diff is generated on the fly20:55
a commit just knows the snapshot and its parent(s)20:56
fynn OK, what are the "parents"?20:56
gilimanjaro previous commits20:56
lfaraone shd: crap, there's a conflict...20:56
gilimanjaro previous snapshops i should say20:56
lfaraone shd: (I tried the "stash")20:57
fynn gilimanjaro: so basically, the repo has a linked list of all previous snapshots?20:57
shd lfaraone: it's not a silver bullet.. you have to handle those things anyway20:57
lfaraone: what git stash saves you is a series of cp and mv commands ;)20:57
gilimanjaro fynn: sort of, but it's not a proper linked list, as a commit can have multiple parent commits if it's a merge commit20:57
fynn gilimanjaro: ah, so it's more like a tree.20:58
gilimanjaro fynn: and multiple children if it's being branched from20:58
fynn right.20:58
CS speaking, it could still be a linked list with several parents :)20:58
gilimanjaro fynn: a bit, but also not really, because two branches can merge back together20:58
fynn (but not with several children)20:58
oh snap20:58
parasti everyone calls it a DAG -- directed acyclic graph20:58
fynn now I'm going to find another analogy and you'll just say "a bit but also not really because it can shoot unicorns"20:59
gilimanjaro fynn: running gitk on a proper project with branches visualizes it best usually20:59
fynn: it can, if you want it too20:59
fynn parasti, gilimanjaro: thanks, I'll look up those newfangled DAGs20:59
in my day, everything could be either a list or a tree and we were pretty happy about it.21:00
netoman left21:00
gilimanjaro fynn: the storage system behind git is quite interesting, though hard to wrap your head around if you're used to other systems21:00
felipec joined21:00
gilimanjaro fynn: yeah, i know. took me a whole lot of reading before i got into the spirit of this. it's sorta cool though21:01
fynn gilimanjaro: yeah, I was really surprised. git sort of has the reputation of something being quickly hacked together for the primary objective of organizing the kernel source.21:01
parasti http://eagain.net/articles/git-for-computer-scientists/ (for whoever hasn't seen this yet)21:01
gilimanjaro fynn: well, that's how the kernel itself started right :)21:01
fynn yeah, now that I dived into it, it now seems like possibly the best engineered DVCS around.21:02
vmiklos gour: ok, i'll try to reproduce :)21:02
gilimanjaro fynn: whatever linux hacks together is usually a lot better than what other people spend years on21:02
s/linux/linus/21:02
vmiklos: i've been trying for years21:02
fynn gilimanjaro: was about to say that possibly Linus just has a knack for doing top-notch design work really fast.21:03
:)21:03
vmiklos gilimanjaro: are you a spambot?21:03
Russel-Athletic left21:03
gour vmiklos: thanks21:04
gilimanjaro vmiklos: no way. but me and the misses have been trying to reproduce for a while... :)21:04
elmex left21:05
ciskje left21:05
lfaraone gilimanjaro: what's the square root of 8?21:05
Ryback_ left21:06
markelikalderon joined21:06
gilimanjaro lfaraone: 2.82842712474619 according to Calculator.app21:06
lfaraone: why? :)21:06
lfaraone gilimanjaro: just wondering what responce I'd get.21:07
cardioid I'm a lot better with the cube root21:07
lfaraone cardioid: bah!21:07
gilimanjaro lfaraone: ok... well, if you need another square root, just let me know21:08
iulian left21:08
gilimanjaro i'm gonna pass an inverse turing test21:08
convincing humans i'm a bot21:08
ciaran left21:09
ciaran joined21:10
nud apps whose name end with .app are sort of evil21:10
gilimanjaro not if you're on OS/X21:11
in which case the rest of the world is evil21:11
nud os whose name end with X are sort of evil21:11
gilimanjaro hehe21:11
or beginning with X21:11
lfaraone gilimanjaro: binaries should have no extention.21:11
gilimanjaro true21:11
nud so evil I forgot an 's' in both sentences21:12
gilimanjaro but who ever said an application always is a binary?21:12
lfaraone gilimanjaro: although I _do_ like OSX's portability...21:12
gilimanjaro: binaries == applications for our purposes. :P21:12
gilimanjaro: where does a python script that you want to run go? /usr/bin.21:12
gilimanjaro In OS/X an application is a 'bundle' (directory actually) which contains binaries along with other resources.21:12
lfaraone (if you want the world to be able to run it)21:12
ashleyw left21:13
gilimanjaro yes, but those are (mainly) command line binaries21:13
that's just not how OS/X graphical applications work21:13
nud OS/X sounds so much like OS/221:14
gilimanjaro hmm... the name yes, but the mechanics, not so much21:15
i worked on OS/2 a lot when i worked at IBM21:15
lresende left21:15
gilimanjaro OS/2 was more windowzy21:16
but that may have been LANMAN mostly21:16
name left21:18
name joined21:20
name left21:20
name joined21:21
gour enjoyed os2 for many years21:24
ciaran left21:27
rtomayko left21:27
jesselucas left21:27
scrooloose left21:27
ahupp|fb left21:27
p4tux left21:27
patmaddox left21:27
damog left21:27
ia left21:27
LuboC left21:27
foca left21:27
careo left21:27
schlort left21:27
LiamH left21:27
grahal left21:27
priidu left21:27
mika left21:27
Ratler left21:27
morphir left21:27
hurikhan|Work left21:27
dwave left21:27
Weiss left21:27
tcoppi left21:27
tchan left21:27
Tekerson left21:27
qiyong left21:27
hidek_ left21:27
chrizz left21:27
fynn left21:27
jdavis__ left21:27
mugwump left21:27
blithe left21:27
dirker left21:27
iabervon left21:27
jptix left21:27
mutex left21:27
jones- left21:27
malahal__ left21:27
UukGoblin left21:27
marcan left21:27
dermoth left21:27
jarod left21:27
thommey left21:27
Ned_ left21:27
cehteh left21:27
esden`away left21:27
Whtiger left21:27
IRSeekBot left21:27
jql left21:27
BeerSerc left21:27
halfline left21:27
ddollar left21:27
pasky left21:27
felipec left21:27
k776 left21:27
daniel-w_ left21:27
coderdad left21:27
odi left21:27
david_koontz left21:27
kansan left21:27
digitalhobbit_ left21:27
PerlJam left21:27
bieneff left21:27
juanjoc left21:27
nick_fn left21:27
zumbrunn left21:27
petteri left21:27
wagle left21:27
lll left21:27
IronHeart left21:27
a-atwood left21:27
Leonidas left21:27
da5id left21:27
incidence left21:27
doiuf left21:27
com4 left21:27
worch left21:27
pilpi_ left21:27
elliottcable left21:27
Tv left21:27
cannonball left21:27
blithe joined21:28
olly joined21:28
hobodave left21:29
Tekerson joined21:29
gilimanjaro left21:29
wagle joined21:31
ddollar joined21:31
dermoth joined21:32
patmaddox joined21:33
SjB left21:34
jesselucas joined21:34
adsworth joined21:34
dlowe left21:36
aroben|luncharoben21:36
davidfetter joined21:38
dmlloyd left21:40
Toad left21:40
Whtiger joined21:40
thommey joined21:42
jdavis__ joined21:43
priidu joined21:44
schlort joined21:46
damog joined21:46
rtomayko joined21:46
scrooloose joined21:46
ahupp|fb joined21:46
p4tux joined21:46
ia joined21:46
LuboC joined21:46
foca joined21:46
careo joined21:46
LiamH joined21:46
grahal joined21:46
mika joined21:46
Ratler joined21:46
morphir joined21:46
hurikhan|Work joined21:46
dwave joined21:46
Weiss joined21:46
tcoppi joined21:46
qiyong joined21:46
Ned_ joined21:46
hidek_ joined21:46
chrizz joined21:46
dirker joined21:46
iabervon joined21:46
jptix joined21:46
jones- joined21:46
malahal__ joined21:46
jarod joined21:46
BeerSerc joined21:46
UukGoblin joined21:46
esden`away joined21:46
halfline joined21:46
cehteh joined21:46
pasky joined21:46
Toad joined21:46
Tv joined21:46
cannonball joined21:46
dmlloyd joined21:46
mutex joined21:46
ashleyw joined21:47
mugwump joined21:47
olly left21:47
marcan joined21:47
tchan joined21:47
felipec joined21:47
kansan joined21:47
k776 joined21:47
daniel-w_ joined21:47
coderdad joined21:47
odi joined21:47
david_koontz joined21:47
digitalhobbit_ joined21:47
PerlJam joined21:47
bieneff joined21:47
juanjoc joined21:47
nick_fn joined21:47
zumbrunn joined21:47
petteri joined21:47
lll joined21:47
IronHeart joined21:47
pilpi_ joined21:47
a-atwood joined21:47
Leonidas joined21:47
incidence joined21:47
da5id joined21:47
elliottcable joined21:47
worch joined21:47
doiuf joined21:47
com4 joined21:47
Weasel[DK] joined21:48
bieneff left21:48
Weaselweb left21:49
bieneff joined21:49
adamb90 joined21:51
WOP left21:52
ahupp|fb left21:52
olly_ joined21:53
d0k left21:55
Pupeno-M__ left21:56
farrukh_najm1 left21:56
farrukh_najmi joined21:57
mosno joined21:58
camwest joined21:59
joshbuddy left22:01
joshbuddy joined22:01
sdboyersdboyer|class22:01
clairvy joined22:01
pjhyett left22:02
Cacher left22:02
olly_ left22:03
pygi joined22:07
LiamH left22:07
entie joined22:08
padski joined22:11
mosno_ joined22:12
gour left22:12
joshbuddy_ joined22:13
joshbuddy left22:13
HopsNBarley i ran git repack on a repo, but it looks like an http fetch of the repo isn't using the pack.22:15
ideas?22:15
mosno left22:15
mosno_mosno22:15
voodootikigod joined22:17
joshbuddy_ left22:17
joshbuddy joined22:18
charon did you git update-server-info?22:19
HopsNBarley yeah.22:20
shd HopsNBarley: you may want to setup a hook to automatically git update-server-info on commit/push22:20
voodootikigod left22:20
camwest left22:20
pjhyett joined22:20
HopsNBarley ah well, it works, it's just slow.22:20
sdboyer-laptop left22:20
flaguy joined22:21
lfaraone left22:21
chris2_ joined22:22
boto left22:22
paltman have a coworker trying to make a fresh clone on his laptop of our private repo, and it getting index-pack fatal errors (http://gist.github.com/24286) any ideas? he is running 1.6.0.422:22
joydivider joined22:22
joshbuddy left22:23
joshbuddy joined22:23
juanjoc left22:24
Bombe Hmm, damn. "git filter-branch HEAD" (with a .git/info/grafts file) outputs the parameter list of rev-list, including the error "could not get the commits". What did I do wrong?22:24
cbreak do you want to filter the branch from HEAD to HEAD?22:25
there are no commits in between22:25
Bombe No, I want to filter all commits.22:26
chris2_chris222:26
cbreak hmm...22:26
Bombe "git filter-branch" gives the same result.22:26
paltman no one knows anything about this the git bug with fatal index packing?22:27
joshbuddy left22:28
olly_ joined22:28
joshbuddy joined22:29
adsworth hi I'm just starting with and from I've read it's all about branches, so should one branch even if it's my repository and I'm the only one working on it. or is it ok to work directly on the master branch?22:30
starting with git that is22:31
qrush left22:32
bobmcw left22:32
therrg joined22:33
eventualbuddha joined22:34
Nies left22:34
parasti adsworth: sure you can work directly in master. it's just another branch22:34
parthapartha-bbl22:34
padski how can I list the commits that touch a given filename22:34
mugwump padski: git-whatchanged -- filename22:35
or git-log, even22:35
throw a --all in there before the -- to see all branches22:36
padski mugwump, thanks. I couldn't figure out how to do it with git-log22:36
adsworth parasti: thanks22:36
ijcd joined22:37
ijcd Last fetched revision of refs/remotes/20081112-release was r30367, but we are about to fetch: r30333!22:38
anyone know how to fix that?22:38
using git svn22:38
I used "git fetch" on a repo cloned from another that had full svn history in it... seems things have gotten out of whack22:39
this is while trying to run "git svn rebase"22:39
agenteo joined22:39
sverrej joined22:41
ijcd my svn commands are taking a long time right now too... maybe the server is busy22:42
22:43:18 up 78 days, 3:53, 21 users, load average: 4.91, 3.25, 2.9022:43
yeah22:43
partha-bblpartha22:43
ijcd oops22:43
cmarcelo left22:45
charon left22:48
EiNZTEiN_ left22:49
tcoppi left22:50
tcoppi joined22:50
EiNZTEiN_ joined22:50
cbrakecbrake_away22:51
aknowles left22:53
odi left22:53
jesselucas left22:53
ph^ left22:54
vuf_ any experts here? :)22:55
pygi just ask22:55
adsworth bye22:56
adsworth left22:56
carllerche joined22:57
vuf_ that is going to be a waste if there aren't experts around22:58
Yuuhi left22:58
EiNZTEiN left22:59
entie_ joined23:00
krh left23:00
entie left23:00
joshbuddy left23:00
Mikachu vuf_: we prefer if you waste your time rather than our23:00
vuf_ okay, we have changed an out-of-repo symlink into a directory with the files in-repo, and now a pull on another branch fails with a conflict23:01
paltman are there any hooks that get called when a tag is the fetch?23:02
vuf_ if I make the pull be a fast-forward, there is no problem, but merging finds conflicts in these files that are new on one branch23:02
joydivider_ joined23:03
Weasel[DK] left23:03
EiNZTEiN joined23:05
jelmer left23:07
vuf_ argh, minimal test case did not work23:07
johnw joined23:08
EiNZTEiN_ left23:08
pygi left23:09
ebneter left23:09
vuf_ is this supposed to happen during pull? "fatal: git write-tree failed to write a tree"23:11
werdna vuf_: I presume not :P23:11
_graham_ Are the permissions on the .git directory correct?23:12
padski left23:12
vuf_ yup23:13
name left23:15
paltman left23:15
kandjar wow23:15
I have git rebase failing23:15
its running out of memory....23:15
(already did a git gc)23:15
adamb90 left23:17
loincloth left23:17
_graham_ left23:17
loincloth joined23:18
markstos joined23:18
eventualbuddha left23:18
david_koontz left23:19
threeve left23:19
joydivider left23:20
markstos I've got this workflow where I keep submitting patches to a project, and they always refine them heavily and publish the result. When I pull that, I get these big conflicts to manually resolve. What I would like to do is to throw away the patches I sent at that point and just accept the upstream versions. Is there an easy way to do that?23:20
pygi joined23:21
vuf_ maybe revert before you pull?23:22
jast in that case i would actually suggest rebasing away the patch23:22
or, if it's the newest patch, using reset HEAD^23:22
arobenaroben|meeting23:22
parasti markstos: put your patches into a separate branch, then rebase that against the branch you pull into, and use rebase --skip..?23:23
jql joined23:23
markstos Thanks. It's no wonder I was confused between whether to use revert, rebase and reset. :)23:23
jast well, effectively, you've got an old version of the commit23:23
and you gave it to them (and probably nobody else), and they committed something different based on it23:24
i think in that case it's very reasonable to say that you don't need the old commit anymore, so revert isn't the solution of choice23:24
markstos I'm collaborating via github, so even after I get my local tree in order, I have to deal with getting my published github tree in order, which will also have the conflicting patch already pushed there.23:24
jast well, in that case i'd suggest either reverting the old commit before merging, or just fixing the conflict23:25
markstos Ok. I also got confused looking at the conflict, because in a distributed system, it wasn't clear whether HEAD indicated local or remote, and on the other side of the conflict was the hash string, which I also couldn't readily identify as being local or remote.23:27
JavaGeek joined23:27
ahhsm left23:27
markstos But I can figure that out.23:27
JavaGeek greetings23:27
markstos Thanks everyone for the help23:27
JavaGeek wow, so many people23:27
jast one helpful way to look at conflicts is using git diff --ours and --theirs23:27
or using git mergetool (configured to use a nice merge tool, e.g. kdiff3)23:28
farrukh_najmi left23:28
farrukh_najmi joined23:29
JavaGeek I'm using git locally and svn remotely (client requirement). If I created a local branch in git, and now the client wants me to create the same branch on svn, is there a command to 'push' the local branch to the remote svn repo?23:29
felipec left23:30
coderdad left23:30
kumbayo left23:30
priidu left23:31
parasti JavaGeek: create a branch in svn, fetch it, branch it, then arrange your commits on top of it, and dcommit... or something along those lines23:31
coderdad joined23:32
loincloth left23:35
hobodave joined23:36
nud left23:36
ebneter joined23:37
olly_ left23:40
jackdempsey left23:40
olly_ joined23:40
entie_ left23:41
vuf_ okay, I get "Skipped <filename> (merged same as existing)" from merge debug info ... but the file is new in one branch!?23:42
ciskje_ left23:43
willb left23:44
quoin joined23:45
doener joined23:46
haris joined23:49
coderdad left23:49
jm left23:52
ahhsm joined23:54
olly_ left23:56
therrg left23:56
therrg joined23:57
therrg left23:57
joydivider_ left23:58
qrush joined23:58
cannonball left23:58
SRabbelier left23:59

Logs Search ←Prev date Next date→ Channels Documentation