IRCloggy #git 2009-07-26

Logs Search ←Prev date Next date→ Channels Documentation

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

2009-07-26

aeruder but branches aren't anything but labels00:00
eMyller joined00:00
aeruder all they are in the git db is just 'newbranch = <sha1>'00:00
ludde2 left00:00
Altreus oh cool ok :)00:01
tongueroo k, this example more closely resembles the problem, gitk http://tinyurl.com/mbaku8 and gitlog http://tinyurl.com/nhk7t500:04
so im on branch tung00:04
and i already have too merges in there00:04
coldboot|home left00:05
tongueroo g/too/two00:05
but i want to get rid of the first merge, the "merge branch 'master' into tung00:05
aeruder tongueroo: try this:00:05
git checkout tung && git rebase -i <sha1 tung 2>00:06
it'll open your text editor00:06
delete the merge00:06
save and quit00:06
i don't know how well rebase -i works with merges00:06
so inspect the results00:07
tongueroo i know what you mean, conflicts at each step after the merge and then im looking at fixing about 40 commits :/00:07
aeruder tongueroo: is your messed up repository something you can make public?00:08
tongueroo unfortunately no :(00:08
heh, that bad huh00:08
aeruder no, but it'd make helping easier00:08
can you make your test repo public?00:09
tongueroo sure00:09
let me find a place to put it00:09
bremner_ joined00:09
tongueroo i was thinking i would do something with git revert -m XX, last time i did that though, i screwed something up later on down, because git revert applies the reverse difference as a commit, and if you merge that branch later, it will apply the reverse commit once again later, not something i wanted at the time, i only wanted to get rid of the changes from that particular branch, not from branches that i was going00:11
to merge into later00:11
anyway, setting up the test repos00:11
aeruder tongueroo: revert is ok if it is already public00:11
cmarcelo left00:11
aeruder but if you can still change history00:11
i'd do that00:11
bremner_ left00:13
markelikalderon left00:14
bremner_ joined00:14
MrN_ joined00:14
MisterN_ joined00:14
kingemer left00:15
prusnak left00:15
bremner__ joined00:17
bremner_ left00:24
tongueroo alright, im having problems setting up a public repos, some apache issues i dont want to deal with right now, is a tarball of the repos good enough ? http://www.tongueroo.com/repos/test_merge.tgz00:26
bremner_ joined00:26
psynaptic left00:26
corni_ joined00:27
tongueroo i have a feeling its going to be a rebase -i to change history and bunch of conflict resolution as the best way to go in this case :/00:29
aspotashev|eeepc joined00:30
MrN left00:30
drewr left00:30
aeruder but honestly, assuming git rebase -i does what i think it'll do on your example, there is a strong possibility that you just are going to have to resolve some conflicts (especially if your patches after the merge are on top of/dependent on changes that were made by the merge)00:30
tongueroo: but i just tried00:30
i forgot -p00:30
tongueroo -p ?00:30
MisterN left00:30
aeruder git rebase -i -p <sha1 of tung2>00:30
drewr joined00:31
redbrain haha i made git crash :P00:31
tongueroo ic00:31
redbrain but its not git's fault00:31
Initialized empty Git repository in /home/redbrain/gcc-dev/.git/00:31
error: git upload-pack: git-pack-objects died with error.00:31
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.00:31
remote: fatal: Out of memory, realloc failed00:31
remote: aborting due to possible repository corruption on the remote side.00:31
fatal: early EOF00:31
aeruder redbrain: sounds like you ran out of memory00:31
redbrain my vps only has 256mb ram00:31
tongueroo interesting with the -p it shows the merge commits in rebase -i00:31
redbrain yeah thinking i might upgrade it now :)00:31
aeruder tongueroo: yea, -p is --preserve-merges00:32
it attemps to redo the merges as merges00:32
and as such you can just remove a merge commit from rebase -i00:32
tongueroo ic, but it still seems to keep the changes from the master merge, https://gist.github.com/494646a3262e8a93d3ac00:33
master 1, master 2, master 3, are all from the merge00:33
MisterN_MisterN00:33
tongueroo not sure if thats is what i should expect00:33
but not what i want :)00:33
aeruder tongueroo: that's what you should expect, your tung branch itself contains those00:34
tongueroo oh yeah00:34
duh00:34
i got confused00:34
k, cool00:35
so that does what i want00:35
goulik left00:35
tongueroo sigh, this sample project has all the commits in nice different files so that went very smooth00:35
sigh, its going to be a mess in this project :/00:35
aeruder tongueroo: if it doesn't then rebase -i -p is more or less just reapplying the patches00:35
zenwryly joined00:35
aeruder but yea, you may have some conflicts to resolve00:35
that's just how it goes00:35
tongueroo alright, </gripe> , time to suck it up and do it00:35
imranh joined00:35
parasti left00:35
imranh left00:36
tongueroo i show make the committer fix this :P00:36
aeruder : thanks so much for your help00:36
g/show/should00:36
aeruder tongueroo: no prob, i've been waiting for the longest kernel compile in the world to finish anyway00:36
bremner__ left00:36
tongueroo heh00:36
aeruder i really need to go through xconfig and remove a bunch of stuff00:36
zenwryly If I have a remote with some large and old history that i really don't need locally, how can I get rid of that history locally?00:37
aeruder zenwryly: you can do a shallow clone, but honestly, its just easier to keep it around00:38
RobertMeta left00:38
aeruder at one point there was talk about having git fetch full history of the commit/tree objects and shallow fetch the blobs to have a little more useful of a shallow clone00:39
zenwryly aeruder: hmm, oh well, thanks for the answer00:39
aeruder don't know if anything ever came of it though00:39
corni left00:39
MetaCosm joined00:40
d0k left00:41
EricInBNE joined00:42
zenwryly aeruder: what about grafts and filter-branch?00:43
bremner_ left00:44
MisterN left00:45
aeruder zenwryly: you change the history you change every single sha100:46
if you have a project where you'd like to publish a cut-off history00:47
then that's ok as long as everyone works off of it00:47
and you can keep the full history .git around and people can graft it on locally if they want to use it00:48
MrN_ left00:48
aeruder but if you're not the one in control of the .git or you don't want to essentially have a 'new' .git and a 'history' .git then you're probably out of luck00:48
zenwryly aeruder: ok, more details. I will be the only one accessing either the local ore remote repos. I want to accrue changes locally, push periodically to an "archival" repo with full history, and then remove old history locally to save space. Would that push be impossible with the grafts approach?00:50
fbrunel joined00:55
aeruder zenwryly: once you create changed history you mess up all sha1's after the history change00:55
fbrunel left00:55
camwest joined00:55
aeruder unless you shallow clone which essentially just creates a broken repository00:56
changed sha1's = no push00:57
owen1 joined00:57
aeruder shallow clone = no push00:57
you could do it via format-patch and such00:57
zenwryly aeruder: ok, thanks00:58
loincloth left00:58
mems aeruder: any idea why one can't push from a shallow clone?00:58
CIA-9 left00:59
owen1 how to change my .bashrc to display info about the current branch i am in and whether there I modified files?01:00
aeruder but honestly if its that bad, you might be best off just starting a new repository with no history and just keep around an archive .git01:00
owen1 (link to a guide online would be great)01:00
aeruder mems: dunno, just reading the man page01:00
mems aeruder: yea, I've read that too01:00
aeruder mems: shallow clones just suck right now, so unless someone comes along and uses them, they're just more or less useless01:01
mems so it's not a design limitation, it's just that it's not implemented (yet...)01:01
corni_ left01:01
aeruder mems: there was some talk about cloning full trees/commits and just leaving out old blobs01:02
which gives you a much less broken repository01:02
but i don't know whatever came of that idea01:02
mems I guess shallow cloned repositories could just grab any objects they need in the future from a remote01:02
Cromulent joined01:03
mems at the time they're required01:03
aeruder mems: i kinda doubt that'll happen, not particularly in the git way01:03
zenwryly aeruder: I don't suppose you know of a DVCS that *does* support this style of operation?01:04
CIA-8 joined01:04
mems hmmm, I keep seeing this "git way" around the place01:04
lordpil owen1 __git_ps1 with git-completion.bash01:04
aeruder zenwryly: nope01:05
owen1 lordpil: not sure what u mean, but google for the rescue..01:06
lordpil zenwryly are you storing binary files? why are you so concerned about space?01:06
zenwryly aeruder: well thanks again for your time and the excellent information01:07
aeruder lordpil: and if the space is that big of a concern, then he needs to just start a new .git and let people who need full history graft the two .git's together01:08
zenwryly lordpil: well I use git for my code VCS, but I need an archival backup system for my other documents and files, so I was hoping to keep the full history on the remote and limited history locally01:08
Theravadan joined01:09
aeruder zenwryly: sometimes for things like that i almost think centralized works better anyway (i.e. subversion or something)01:09
mems zenwryly: after a quick look at svk, I think it might support such things01:09
jparrott left01:09
lordpil git is not a backup system :|01:09
mems maybe for you01:10
zenwryly aeruder: ugh, svn is *so* space inefficient locally to start with01:10
eMyller left01:10
orafu left01:10
orafu joined01:11
redbrain awh svn is just crap :P where i used to work it was disgusting it is one SVN repos for EVERYTHING01:11
100GB was one01:11
marvil07 joined01:11
mems that's what partial checkouts are for...01:11
redbrain then we got a new cluster system for pearforce 10TB or data ontop of 160 cpus was just insane01:11
eMyller joined01:11
redbrain 100TB*01:11
it was full of crap01:11
aeruder redbrain: believe me, if we used svn at work i'd be happy :)01:12
lordpil speaking of being full of crap01:12
redbrain haha yeah what are you using atm?01:12
aeruder redbrain: telelogic cmsynergy01:13
redbrain aeruder: what the hell is that :S01:13
lordpil i have a custom fast-import front-end where i had the terrible idea of trying to normalize newlines on conversion. i want to turn this off and rebuild the repo. but that means all revisions will change (with a small userbase of ~8 people). what's the best way to manage such a change?01:13
zenwryly lordpil: look, I've been in open source long enought to recognize the "when we can't do what's being asked, blame the querant" pattern. The fact is that archival backup semantics are *very* similar to DVCS semantics (history, push/pull) and I am *exploring* the options. It's worth exploring even if you don't think so.01:14
aeruder if you haven't heard of it, that's probably because you don't have 1000's of dollars to throw away on software that is slower and less featureful than almost any free VCS (and for cheap commercial ones)01:14
but it is "enterprise friendly"01:14
loincloth joined01:14
aeruder i think its just an expensive front to charge huge gobs of money for training01:15
lordpil zenwryly i was only saying it wasn't designed for backup. not that it isn't a good base for backup. right now you'd be better off using something else. but i'd love to see a real git backup system01:15
namelessjon left01:15
zenwryly lordpil: oh, ok, thanks01:15
lordpil aeruder oh dear, telelogic is now ibm rational...01:15
aeruder lordpil: yea01:15
lordpil maybe soon they'll merge it into clearcase!01:15
aeruder basically the way we use it is the lock-edit model01:16
so you constantly are making calls to people to unlock files01:16
lordpil aeruder fwiw my organization at work uses clearcase, and i wrote a bidirectional interface with git. so i work out of git 90% of the time. it sucks, but it's better than nothing.01:17
aeruder lordpil: i do everything in git, i keep the synergy stuff on its own branch so i can merge people's work into mine01:17
and then one day i have a "cm synergy" day where i throw 100's of commits into cm synergy one patch at a time01:18
justincarmony_ left01:18
lordpil yeah i don't have a good automated way to move commits into clearcase. it's only 'mostly automated' and requires some checking01:18
aeruder not ideal, but better than the way most people work where its just "oh bob is working on it right now, i guess i'm just out of luck until he's finished"01:18
lordpil: just updating the timestamps on special files in the cm synergy checkout can completely invalidate your checkout01:19
marvil07 left01:19
aeruder its a fragile piece of junk, the software just can't wait until it gets a chance to lose your data01:19
</rant>01:20
lordpil honestly i think my org could switch to git in 6 months to a year, but though a few people are interested, not a single one has actually been willing to work on it other than me01:20
eletuchy joined01:20
aeruder lordpil: the problem with git is that it takes some actual interest in using a VCS01:20
if you're a random clicker or a person who uses a VCS because it is a requirement then they can fsck up git really really badly01:21
lordpil i'd be more than happy even if we switched to bzr, hg. hell, i might even take svn. but nobody cares01:21
aeruder lordpil: if they don't care about switching, then you'll just end up playing the "fix my git|hg|bzr|svn repo for me" game01:22
DavidKlein left01:22
owen1 left01:24
loincloth left01:27
Cromulent left01:31
here left01:32
justin-george left01:33
zenwryly aeruder, lordpil: what about some sort of selective removal of blob objects?01:35
loincloth joined01:36
name left01:38
eMyller left01:41
Tricon joined01:41
eMyller joined01:42
Cromulent joined01:43
zenwryly aeruder, lordpil: If blob objects were removed in the local repo, would fetch (or something else) be able to retrieve them later if necessary?01:44
aeruder zenwryly: i'm guessing not01:45
camwest left01:45
Theravadan left01:48
relix left01:49
zenwryly aeruder: how about git-fetch-pack, am I mis-reading it?01:51
aeruder zenwryly: generally you pass your top-level commits to the other repository and say 'this is what i got, give me what i'm missing'01:52
well, the other repo has no way of knowing that you manually deleted some blob that supposedly is there for one of the passed commits01:52
you are breaking your repository01:52
so expect fixing it to be as painful as the breaking process :)01:52
zenwryly aeruder: hehe, ok01:53
rudi_s_ left01:56
jchris left01:56
defectiv left01:57
fg3_ left01:59
fg3_ joined02:00
ajsharp joined02:05
ajsharp is there a way to set hooks for all git repositories?02:06
scarabx joined02:08
therrg joined02:08
binrapt left02:10
wshimmy joined02:11
techsurvivor joined02:13
laj left02:13
spaceonline left02:15
Cromulent left02:18
seanmccann left02:20
aziz left02:23
w|shimmy left02:23
cytrinox_ joined02:26
phira joined02:27
phira Hello git people!02:28
I have a currently live directory full of files02:28
I have git init and imported it all02:28
now I would like to create an external repo that will hold the contents of this dir02:28
that I can dev against02:28
should I close from the current dir to the repo, then change something on the current dir so it knows the repo is now its pull/push point?02:29
close/clone02:29
aeruder phira: you're probably best off cloning into your bare .git and then cloning from that back into a new checkout02:31
that's the easy/lazy way without having to setup config variables and such02:31
phira ok02:31
ajsharp left02:32
phira will cloning back cause any problems given it's a live site?02:32
eMyller left02:34
iamcalledrob left02:34
phira makes a backup, then just tries02:35
eMyller joined02:35
kukks left02:37
cytrinox left02:37
Tricon left02:44
scientes left02:46
scientes joined02:46
scarabx left02:48
mithraic left02:49
mithraic joined02:51
tjafk2 joined02:53
eeanm joined02:53
eeanm my local branch is one commit ahead of the remote version of it, I can see so in gitk02:54
lordpil left02:54
eeanm but I can't push to it, it says its up-to-date already02:54
lordpil joined02:54
Sho_Patch_02:55
eeanm ok I fixed it by using another clone, still wondering what the deal was though :)02:57
aeruder eeanm: how old is your git?02:58
git --version?02:58
eeanm 1.6.0.202:58
loincloth left02:59
aeruder eeanm: hm, at one point you needed to explicitely fetch to update remote refs03:00
and they added something where when you pushed it updated the remote refs automatically later on03:00
although i *think* 1.6.0.2 had the auto-fetch in it03:01
eeanm well I fetched and what not03:01
I was git pull, git pushing, trying to see why it wouldn't accept this thing :)03:01
gitorious even made an embarassing log of it all03:02
http://gitorious.org/~eean/amarok/gcds-dynamic03:02
I kind of started out a bit messed up, I had made the clone on gitorious, and then fetched and branched off of it, but the local master that I had wasn't up-to-date03:03
I think that started the initial confusion03:03
anyways03:03
it works now I shouldn't mess with it :)03:03
__iron left03:05
Patch_Sho_03:07
flaguy48 left03:07
aeruder eeanm: i'm not a huge fan of git push's automatic semantics, i always explicitely push with full arguments like git push <remote> master:refs/heads/master03:07
eeanm why the refs/heads/master03:08
is there really ambiguity about that?03:09
aeruder well, the refs/heads/master is necessary if you are creating a new branch on the remote side, usually i leave off the refs/heads/ part03:09
tjafk1 left03:09
eeanm ah ok03:09
Arrowmaster i dont think it is anymore03:09
aeruder Arrowmaster: ah, good to know, that always seemed a little annoying03:09
drewr left03:10
Sho_ left03:12
Sho_ joined03:12
jjore left03:17
Sho_ left03:21
Sho_ joined03:22
phira left03:29
wulfmax joined03:29
Sho_ left03:33
Sho_ joined03:33
Sho_ left03:36
Sho_ joined03:36
beta1 joined03:38
Sho_ left03:39
jaggz- joined03:39
Sho_ joined03:40
scientes_ joined03:45
scientes left03:47
eMyller|busy joined03:48
SingAlong left03:50
eMyller left03:51
Sho_ left03:52
Sho_ joined03:53
iamcalledrob joined03:53
hydrogen joined03:54
bugfux_ joined03:54
bugfux left03:54
Arafangion Is perl a major dependency of git? (I notice that not only does its scripts require perl, but also the binaries?)03:57
wulfmax left03:58
scientes_ left04:02
Sho_ left04:05
Sho_ joined04:05
hyperair left04:08
Chillance joined04:09
Sho_ left04:11
Sho_ joined04:12
Linkadmin left04:14
vstemen joined04:15
vstemen After upgrading to scmgit-1.6.0.2 on BSD, if I do a "git commit" of a new project I get a bunch of errors like04:17
Makefile:3: trailing whitespace.04:17
+DESTDIR ?=04:17
Makefile:23: trailing whitespace.04:17
+04:17
Then it just gives me a prompt back without committing.04:17
.04:18
Any Ideas?04:18
justin-george joined04:19
Sho_ left04:22
justin-george left04:25
aspotashev|eeepc left04:25
kahmalo vstemen: check your hooks, I think specifically pre-commit04:30
eletuchy left04:30
eletuchy joined04:31
eletuchy_ joined04:31
eletuchy left04:31
synusoida joined04:36
Tommy[D] left04:41
Tommy[D] joined04:41
fridim_ joined04:49
neoeinstein left04:49
Tommy[D] left04:50
jbwiv left04:50
Tommy[D] joined04:51
jbwiv joined04:52
stuffcorpse left04:53
psytek left04:54
vstemen kahmalo, there is a pre-commit hook. The last line of the script is04:54
exec git diff-index --check --cached $against --04:54
neoeinstein joined04:55
vstemen Is the default hook in git-1.6.0.2 broken?04:55
krig_ left04:55
krig joined04:55
tazle_ joined04:55
hydrogen left04:55
Pewpewarrows left04:56
vstemen Yep, that's what is causing the error. That last line expands to04:58
git diff-index --check --cached 4b825dc642cb6eb9a060e54bf8d69288fbee490404:58
Gitbot [git 4b825dc64]: http://tinyurl.com/55rga7 [tree]04:58
vstemen Which causes the errors I am getting.04:58
So, why is git installing a broken hook when I init the repo? What should I do, delete .git/hooks/pre-commit ?05:00
Linkadmin joined05:02
vstemen Well, looks like removing .git/hooks/* worked.05:04
thanks kahmalo for pointing me in the right direction05:05
It doesn't give me a very warm fuzzy feeling about gits stability with obvious bugs like that being the the release. I hope there are not many of these.05:06
frfr|05:08
hobodave left05:08
Flathead joined05:09
MetaCosm_ joined05:10
reprore joined05:13
reprore left05:22
Arrowmaster left05:22
reprore_ joined05:23
Arrowmaster joined05:23
voker57 left05:23
voker57 joined05:24
Sigma joined05:26
jjore joined05:26
MetaCosm left05:27
eMyller joined05:34
sobersab1e left05:34
Theravadan joined05:39
seanmccann joined05:44
jason237 joined05:44
phira joined05:45
jason237 hmm, setting a repository as an alternate for itself seems to make git gc do bad things...oops05:45
saurabhverma joined05:46
sunoano left05:50
EruditeHermit joined05:50
yhager_ joined05:51
ben_h joined05:52
yhager_ The source is under SVN. I want to work with git, but on two different locations, and use push-pull between the two. eventually to dcommit back to SVN. How should I build this?05:52
yhager_yhager05:52
stuffcorpse joined05:56
Ilari yhager: SVN and distribution doesn't mix very well...05:57
eMyller|busy left05:58
yhager I tried 'git svn clone' on A, then pushed to bare on B, and cloned it on C. I then push & pull to and from B, but I have the feeling I am doing something wrong (maybe I should use different branches?)05:58
Ilari yhager: The biggest problem is that SVN and merges don't mix. And pull is fetch + merge unless you specify otherwise.06:00
yhager Ilari: can you elaborate on that? I can either use SVN directly, or git + git-svn. I prefer the latter, if it works..06:01
joshthecoderjoshthecoder_afk06:02
Ilari yhager: git svn is quite limited due to limitations of SVN.06:02
yhager Ilari: ok, I see your point. So I guess I'll just do 'git svn clone' and 'git svn dcommit', and not try any of the "fancy" git suff..06:04
Ilari yhager: Yeah. At least better to do that way unless you know what you are doing...06:04
yhager Ilari: allright. Thanks.06:04
MetaCosm_ left06:06
jfxberns left06:06
bgerber left06:06
jksz left06:06
harv left06:06
mutex left06:06
agile left06:06
ryanakca left06:06
moh left06:06
Luke-Jr left06:06
mithraic left06:06
CIA-8 left06:06
elliottcable left06:06
xenoterracide left06:06
slack left06:06
m0 left06:06
zwu left06:06
azuk` left06:06
jarh left06:06
Thumper_ left06:06
a-atwood left06:06
blankthemuffin left06:06
emias left06:06
ruskie left06:06
Fatal left06:06
ciaranm left06:06
deavid left06:06
troyt left06:06
tmz left06:06
gebi left06:06
teuf left06:06
runasand left06:06
yzlin left06:06
stegano left06:06
univate left06:06
panfist left06:06
frsk left06:06
jonmasters left06:06
TDJACR left06:06
eikke left06:06
ahf left06:06
dorileo left06:06
sunoano joined06:08
Ilari yhager: Basically merges + git-svn => trouble.06:09
yhager Ilari: I see. I guess I was expecting too much from (git-)svn..06:10
Ilari SVN just plain doesn't support merges in sense Git uses them. No, not even SVN 1.5+06:11
Also, atomicity guarantees are much weaker. Git has atomic branch updates (strictly stronger requirement than atomic commits) while SVN only has atomic changesets (strictly weaker requirement than atomic commits).06:15
In fact, the atomicity guarantees are not sufficient to implement git svn in race-free manner.06:15
EruditeHermit hi, can anyone help me with git push?06:18
I created a branch to my repository and now I want to push that branch to a remote repository but I keep getting the message "Everything up to date"06:18
and it doesn't do anything06:19
rubyist git push origin/new_branch06:19
Ilari EruditeHermit: You have to specify that branch to be pushed since it doesn't already exist. Also, note that first non-option to push is URL or nickname of the repository to push to, the following is names of stuff to push or mapping rules.06:20
rubyist: Doesn't look sane.06:20
EruditeHermit error src refspec origin/highlighting does not match any06:21
rubyist Ilari: always worked for me :P06:21
EruditeHermit so if I have 2 branches master and highlighting is it origin/highlighting?06:22
Ilari EruditeHermit: 'git push origin highlighting'?06:22
EruditeHermit Ilari: there should be a space?06:22
Ilari EruditeHermit: Yes.06:22
EruditeHermit error src refspec origin does not match any06:22
oh06:23
it worked with just git push <repo> highlighting06:23
Ilari EruditeHermit: What did you actually try to run? 'git push origin origin highlighting'???06:23
EruditeHermit no06:23
I tried git push <repon_url> origin highlighting06:24
priidu joined06:24
EruditeHermit as well as git push <repo_url> origin/highlighting the first time06:24
Ilari EruditeHermit: The proper syntax to push to origin is 'git push origin highlighting'.06:24
EruditeHermit oh06:24
Ilari EruditeHermit: origin is also repository designation.06:24
EruditeHermit so origin replaces the repo_url06:24
ah06:24
that makes more sense06:24
Ilari EruditeHermit: For extra confusion 'origin' may also be local branch name, tag name, remote tracking branch (that's actually fairly common) or something even more exotic.06:26
Bass10 left06:26
EruditeHermit awesome06:26
not going to remember that until I hit all those problems06:27
=p06:27
Ilari: so one more question06:27
Ilari EruditeHermit: What push tries to interpret those names as depends on their position in command line.06:27
priidu left06:27
priidu joined06:28
EruditeHermit so now I have my local repository with 2 branches06:28
where in the file structure will I see the different files associated with each branch?06:28
Ilari Repository URL can be replaced by remote name in all user-level commands except in clone (for obivious reasons).06:28
EruditeHermit: That is, where are the versions stored?06:29
EruditeHermit yeah06:29
Ilari EruditeHermit: Inside the .git directory (heavily compressed)...06:29
EruditeHermit say I want to test both versions of the program06:29
do I need to checkout each branch do different places?06:29
Ilari EruditeHermit: man git-archive?06:30
Gitbot EruditeHermit: the git-archive manpage can be found at http://git.or.cz/man/git-archive06:30
Cromulent joined06:30
mutex joined06:32
agile joined06:32
harv joined06:32
jksz joined06:32
bgerber joined06:32
jfxberns joined06:32
MetaCosm_ joined06:32
ahf joined06:32
deavid joined06:32
azuk` joined06:32
zwu joined06:32
a-atwood joined06:32
teuf joined06:32
dorileo joined06:32
blankthemuffin joined06:32
ruskie joined06:32
eikke joined06:32
jarh joined06:32
m0 joined06:32
Fatal joined06:32
yzlin joined06:32
TDJACR joined06:32
slack joined06:32
runasand joined06:32
univate joined06:32
Thumper_ joined06:32
tmz joined06:32
jonmasters joined06:32
emias joined06:32
ciaranm joined06:32
frsk joined06:32
panfist joined06:32
stegano joined06:32
gebi joined06:32
troyt joined06:32
xenoterracide joined06:32
moh joined06:32
Luke-Jr joined06:32
ryanakca joined06:32
elliottcable joined06:32
mithraic joined06:32
sunoanoGuest4751006:32
CIA-78 joined06:32
reprore_ left06:32
EruditeHermit Ilari: so from the examples in the man page all of them seem to want to output to zipped archives06:35
Ilari: what if I just want to create a directory with it?06:35
Ilari EruditeHermit: Create tar archive and pipe it to tar (hint: see -C option to tar).06:37
EruditeHermit Ilari: so when looking at the git directory with a filemanager, the files you see are always the mater branch?06:40
master*06:40
jjuran joined06:40
Ilari EruditeHermit: The working copy is from currently checked out branch.06:41
EruditeHermit: Use either 'git branch' or the shell prompt thingy to display what it is.06:41
EruditeHermit oh06:41
nice06:41
I don't have to create a new archive then06:41
I can just checkout the branch I want06:42
hobodave joined06:42
Guest47510 left06:42
sunoano joined06:43
Yewbacca joined06:44
YewbaccaZzz left06:45
Cromulent left06:48
YewbaccaZzz joined06:49
Yewbacca left06:50
mithro left06:53
mrbendig joined06:56
seanmccann left07:00
sprasanna joined07:02
bobesponja left07:05
Weaselweb joined07:08
mithro joined07:12
mithro left07:17
drizzd joined07:20
YewbaccaZzz left07:22
pascal2 joined07:25
juanjoc joined07:25
cloudhead left07:26
sprasanna_ joined07:28
techsurvivor left07:29
[Po]lentino joined07:35
tongueroo left07:36
marvil07 joined07:36
Chillance left07:37
jceb joined07:39
mithro joined07:39
juanjoc left07:42
sprasanna left07:43
jaggz- left07:43
sprasanna_ left07:52
angerman joined07:52
Sigma[Mtp] joined07:53
pascal2 left07:55
seanmccann joined07:59
seanmccann left07:59
porcnick joined08:00
bugfux_ left08:01
bambule joined08:04
sprasanna joined08:05
Sigma left08:05
reprore joined08:07
lordpil- joined08:10
kumbayo joined08:11
brizly1 left08:11
marcoecc left08:12
brizly joined08:12
lack_ joined08:15
Sho_ joined08:17
Theravadan left08:18
phira left08:18
doener joined08:23
cpg left08:24
lack_lack08:26
reprore left08:27
lordpil left08:27
eMyller left08:29
Tobin joined08:30
patmaddox joined08:31
beta1 left08:31
Sho_ left08:33
Sho_ joined08:33
ludde joined08:33
ben_h left08:35
viric joined08:38
bambule left08:40
Yewbacca joined08:40
fg3_ left08:43
markelikalderon joined08:45
marvil07 left08:47
phira joined08:50
kumbayo_ joined08:50
mithro_ joined08:55
EruditeHermit left08:56
sycofly joined08:58
mbroeker joined08:59
iamcalledrob left08:59
kumbayo left09:00
jfxberns left09:01
mithro left09:02
iamcalledrob joined09:02
iamcalledrob left09:03
neoeinstein left09:04
relix joined09:04
neoeinstein joined09:05
adeodatus joined09:09
adeodatus left09:10
jjuran left09:10
saurabhverma left09:13
patrikf joined09:14
Grahack joined09:14
Grahack left09:15
jmspeex joined09:17
kpreid_ left09:21
kpreid_ joined09:23
UUncia joined09:24
jjuran joined09:24
psynaptic joined09:26
khmarbaise joined09:28
saurabhverma joined09:29
fg3_ joined09:32
EvanDotPro_ left09:34
EvanDotPro_ joined09:34
solydzajs joined09:35
EvanDotPro_ left09:35
EvanDotPro_ joined09:35
ciskje joined09:35
saurabhverma left09:35
phira left09:37
mrbendig left09:37
Sho_ left09:42
Sho_ joined09:42
shruggar joined09:43
kinkerl joined09:43
yann joined09:50
markelikalderon left09:52
akitada left09:56
akitada joined09:57
Sho_ left09:59
eletuchy_ left10:06
eletuchy joined10:06
gitte joined10:09
ciskje left10:15
hyperair joined10:19
mutex left10:20
d0k joined10:20
mutex joined10:21
davegb3 joined10:21
DavidKlein joined10:21
ben_h joined10:23
eletuchy left10:23
jmspeex left10:23
ben_h left10:23
ben_h joined10:24
__iron joined10:25
corni joined10:28
viric left10:31
klbate_ joined10:32
akitada left10:32
sitaram joined10:34
quizme joined10:37
quizme i accidentally deleted a whole directory10:37
sycofly left10:37
GeertB joined10:37
quizme how can i check out from HEAD only that directory plus everything under it ?10:38
nm10:39
Yuuhi joined10:39
wereHamster quizme: git checkout HEAD -- <directory>10:39
quizme wereHamster thank u.... lol funny name10:39
Tobin left10:41
klbate left10:42
Cromulent joined10:49
JEEB left10:52
parasti joined10:54
volodya joined10:55
hyperair left10:58
chris2 joined11:01
JEEB joined11:01
akitada joined11:03
name joined11:09
EruditeHermit joined11:10
EruditeHermit left11:10
kinkerl left11:11
emias left11:15
emias joined11:15
justin-george joined11:15
volodya left11:16
mithro_ left11:22
mithro_ joined11:22
justin-george left11:24
^Einstein left11:24
brizly left11:25
estan hrm. i accidently did a commit when in "Not currently on any branch" state, i'm not sure how i ended up in that state. now i'd like that commit to be on my branch, which i checked out..11:25
teuf you can use git cherry-pick SHA1 if you know the sha1 of this commit11:27
wereHamster estan: git cherry-pick <shaofthatcommit>11:27
estan yea i was thinking that should work. it will become a new commit on the branch though, with its own sha, right?11:27
brizly joined11:28
teuf yep11:28
estan hm. okay.11:29
any idea how i could have ended up in that state btw?11:30
because i'm looking at my bash history and i can't see that i did anything that would cause it.11:30
parasti estan: git reflog might have a clue11:30
estan okay, i'll look that up.11:31
wereHamster estan: that state is called 'detached head', you can read more about it here: http://sitaramc.github.com/concepts/detached-head.html11:32
akitada left11:33
Cromulent left11:33
estan wereHamster: yea i was actually looking at that URL just yesterday just out of curiosity (since someone pasted it here).11:34
i should read it again i guess.11:34
what i've done now after realizing i did a commit on detached head is just `git checkout my_branch`.11:35
and git reflog show now shows:11:35
Hendu joined11:35
estan 9316906... HEAD@{0}: checkout: moving from 563ff11ecb920af32bc290de0f73225e22e68dc4 to tables-gsoc11:35
563ff11... HEAD@{1}: commit: Doc fix.11:35
0044504... HEAD@{2}: commit: Silly mistake of storing the position the table layout instead of11:35
but i don't get it, since that 0044504 commit ended up on the tables-gsoc branch, but the 563ff11 one didn't (ended up on a detached head)..11:36
i didn't do anything in between..11:36
i'll go read that url for a while.11:37
drewr joined11:37
doener estan: that part of the reflog that show how you ended up on a detached HEAD.11:37
estan: look for another "checkout: " line11:38
estan hm yes i found it now, 7383362... HEAD@{6}: checkout: moving from tables-gsoc to 73833625f8709d02ad611210d39daca0156814b411:40
but i have no idea why it happened, and it's so weird, because there's a commit after this checkout: line that still ended up on the tables-gsoc branch (shows up in `git log' on that branch), and one commit that didn't.11:40
and no other checkout: between them.11:41
doener estan: did you by chance use "git rebase"?11:41
wereHamster estan: are you sure the commit in the reflog and on the branch are the same (have the same sha1)? Maybe you cherry-picked it or something11:41
doener estan: what does "git branch --contains 0044504" say?11:41
estan doener: hum. it says nothing.11:42
so that means it was on a detached head too then?11:42
how come it shows up in `git log' on the branch?11:42
doener estan: "git log tables-gsoc" shows it?11:43
resmo joined11:43
resmo hi11:43
is there anything like "git ls" to see which files are tracked?11:44
estan oh wait!11:44
sorry i'm stupid, no it doesn't show.11:44
doener resmo: ls-files11:44
estan so both those commits were accidently made on a detached head.11:44
still not sure how i ended up there though.11:44
doener estan: did you use "git rebase"?11:44
estan i mean, what caused the 7383362... HEAD@{6}: checkout: moving from tables-gsoc to 73833625f8709d02ad611210d39daca0156814b411:44
Cromulent joined11:46
estan doener: hm. yes i did an interactive rebase to change a commit message.. i can see it right after the checkout: line in the reflog.11:46
doener: could that have caused it?11:46
(and if so, why?)11:46
doener estan: rebase works on a detached HEAD, and only updates the branch head (and checks it out again) once the rebase is finished11:47
estan: i.e. you probably never finished the rebase11:47
estan doener: ah, i'm starting to remember now.11:47
what's the correct way to amend a commit? i probably never did git rebase --continue or something?11:47
doener estan: likely. After amending the commit, you need to "rebase --continue", so the other commits are rebased onto the amended one11:48
estan i think i only did the `git commit --amend`.11:48
right.11:48
how do i get out of this mess? ;) just cherry pick those commits on the detached head into my branch?11:48
the thing is that i already cherry-picked them into master and `git svn dcommit'ed them from there.11:49
(before realizing they were made on the detached head).11:49
doener estan: you probably still have the rebase status stuff. rebase --continue might create a mess now, so I'd do a rebase --abort, eventually do a new rebase, to amend the commit again, and then cherry-pick the other commits11:49
estan (using git-svn against KDE SVN).11:49
doener estan: ugh11:50
estan yea, they're moving to git eventually.11:50
doener estan: then probably something liek: rebase --abort, git svn rebase, check history, cherry-pick11:50
estan: or something like that11:50
estan hm. yea. i'll see if i can sort it out.11:51
(only using master as a 'transport' out into KDE SVN, even have it in a separate working directory using git-new-workdir from contrib/).11:51
asksol joined11:52
pisi joined11:52
kpreid_ left11:52
kpreid_ joined11:53
estan all this because i was vain and wanted to fix a spello in a commit msg ;)11:53
Hendu left11:54
pisi Is there some easy/documented way of putting a git commit hash into autoconf version tags, without manual file-editing before generating the configure script?11:54
Something that would help with nightly builds...11:55
Yewbacca left11:55
resmo left11:55
doener pisi: http://gitorious.org/~flameeyes/pulseaudio/flameeyes-pulseaudio/blobs/master/git-version-gen11:55
pisi: I guess there might be a newer version of that script somewhere... It's just what google threw at me11:56
ludde2 joined11:56
estan doener: ah just aborting the rebase and then rebasing against SVN actually solves the problem, as i'll be getting those two commits from there (since i git svn dcommited them to SVN before realizing they were on a detached HEAD).11:58
all well now.11:58
pisi doener: ok, this is not much different that i have currently. But does a more meaningful version tag indeed. thanks11:59
pisi left11:59
eletuchy joined12:00
gitte left12:02
GeertB left12:03
[Po]lentino left12:03
aziz joined12:05
patmaddox left12:05
ludde left12:08
hummingkid left12:10
moonflux joined12:15
khmarbaise left12:18
saurabhverma joined12:21
aspotashev|eeepc joined12:22
eletuchy left12:24
eletuchy joined12:25
TDJACR left12:29
khmarbaise joined12:29
saurabhverma left12:30
ben_h left12:32
patrikf left12:32
TDJACR joined12:36
ThaDon left12:36
mithro_ left12:40
Cromulent left12:42
dodo_the_last left12:42
Cromulent joined12:43
scarabx joined12:43
dodo_the_last joined12:44
ben_h joined12:51
ben_h left12:52
synusoida left12:53
ben_h joined12:58
Flathead left13:00
ben_h left13:01
kukks joined13:02
jfxberns joined13:03
hydrogen joined13:03
bremner_ joined13:06
eMyller joined13:07
mithro joined13:09
Yewbacca joined13:09
jfxberns_ joined13:11
Bass10 joined13:12
xkr47 left13:12
bremner_ left13:13
EricInBNE left13:13
bambule joined13:14
UUncia left13:15
jjuran left13:16
xkr47 joined13:20
mithro_ joined13:22
rudi_s joined13:23
SjB joined13:24
bremner_ joined13:26
bremner__ joined13:27
bremner__ left13:27
bremner__ joined13:28
neunon joined13:29
jfxberns left13:29
mithro left13:31
ciskje joined13:36
Sigma[Mtp] left13:36
Sigma joined13:36
hydrogen left13:36
ppawel left13:43
bremner_ left13:44
therrg left13:46
jceb left13:47
bremner__ left13:48
SjB left13:48
sunoano left13:50
bremner_ joined13:51
bremner_ left13:52
bremner_ joined13:52
bambule left13:57
bambule joined13:58
ashH left13:58
Cromulent left14:04
Octalot joined14:04
djgera joined14:08
bremner_ left14:08
Alinermedia joined14:08
sunoano joined14:08
kevin_ joined14:09
mbroeker left14:09
jparrott joined14:10
hyperair joined14:11
ChezaWho left14:14
sprasanna_ joined14:14
khmarbaise_ joined14:15
mbroeker joined14:17
Kermos joined14:18
fridim_ left14:19
Kermos hey all, anyone know of a way to restrict git clone access? Got my repository running nicely on my server but don't want to give anyone in the world access to it.14:19
cbreak remove read access14:19
Kermos well there are some people who *do* need read access14:20
just not everyone :)14:20
or anyone rather14:20
spb don't run git-daemon for that repo14:20
require people to use git+ssh14:20
Kermos hmmm ok I'll give that a try14:21
eMyller|busy joined14:21
Kermos ok when I try this, (git-daemon turned off), git clone ssh+git://repoaddress, I get asked for my ssh password and then get this error:14:23
fatal: '/orion.git': unable to chdir or not a git archive14:23
Ilari Kermos: Is orion.gti in filesystem root?14:24
Kermos: Corresponding cd would be 'cd /orion.git'.14:24
Kermos yea14:24
sprasanna left14:24
Kermos oh14:24
hmm...14:24
bambule left14:24
jfxberns_ left14:24
jfxberns joined14:25
Ilari Kermos: I suspect 'ls /orion.git' on server would complain about nonexistent file...14:25
Kermos it would14:25
that path works fine with git-daemon14:25
Ilari Kermos: Fix the path in URL then.14:25
Kermos but I guess not without14:25
Ilari Kermos: git-daemon has --base-path14:25
Kermos ahh, gotcha14:25
Ilari Kermos: SSH with (restricted) shell doesn't.14:26
eMyller left14:26
Kermos had to adjust permissions too it seems after adjusting the path :)14:27
that works now, thanks14:27
Ilari Kermos: Depending on access requirements, traditional Unix groups may not be sufficient.14:28
Kermos Well the only people that would have any user account on the server are members on the team that are ok to have read access. I just don't want the repository exposed to the whole world.14:30
cedricv left14:31
khmarbaise left14:31
Ilari Kermos: They all should also have write access?14:32
Kermos no, commits go through me14:33
so I only need write access14:33
eMyller|busy left14:33
cbreak there are acls14:36
eMyller joined14:36
Kermos well the repository is configured using gitorious with only me listed for write access14:36
so I'd expect that to be ok as far as that goes14:37
Ilari Kermos: If it asks for password, you very likely screwed up somewhere.14:37
ppawel joined14:39
Kermos it doesn't if I use [email@hidden.address] to clone as my path14:39
saurabhverma joined14:39
Kermos or rather git@server:repository, sorry14:40
AkumaStreak joined14:41
Kruger joined14:41
ashH joined14:42
Ilari Kermos: Yeah, better to use such URLs.14:42
Kermos I did give git my public key, which I know is why it doesn't ask for a password if I use the git@server url14:43
ok14:43
I'll use that then, prefer that anyway as it doesn't expose the whole path to the repo14:43
orb joined14:44
Kermos thanks very much, help is much appreciated :)14:44
legendulo joined14:47
orb Within the last year, have there been any advances in people wanting to split a commit?14:49
MetaCosm joined14:51
kahmalo left14:52
cehteh orb: huh?14:53
orb Like, when the topmost commit has changes to foo.c and bar.c, and one wants to amend HEAD to only have foo.c's changes and put bar.c's changed into a new commit on top of HEAD.14:55
wereHamster git reset HEAD~1 -- bar.c; git commit --amend; git reset HEAD@{1} -- bar.c; git add bar.c; git commit14:56
orb a reflog hack, heh :)14:57
nice14:57
wereHamster maybe there's even an easier way, I don't know14:57
orb So far did it via git reset --soft HEAD^; git stash; git stash apply; git add foo.c; git commit; git add bar.c; git commit;14:58
saurabhverma1 joined15:00
kahmalo joined15:00
juanjoc joined15:00
kahmalo git cvsimport nowadays runs git repack -a -d. Should it run git gc --auto instead?15:01
Base2 joined15:02
legendulo left15:02
kahmalo near the end of git cvsimport, it runs git-count-objects and checks whether there are more than 1024 kilobytes of unpacked objects15:02
Base2 Hey all, on my macbook pro, when I run "vim", my arrow keys work fine. In git, when I "git commit" and vim pops up, my arrow keys don't work. Any ideas?15:03
orb kahmalo: I don't think so. A fresh import should ideally be completely packed, like a git clone15:03
bremner Base2: is your EDITOR set to "vi" or "vim"15:04
orb Base2: could be related to $TERM one way or another15:04
Base2 export EDITOR="/opt/local/bin/vim"15:04
kahmalo orb: when running git cvsimport incrementally, it the git repack -a -d often leaves the amount of unpacked objects still over the 1024 kilobyte limit, so it'll repack on the next run too15:04
perhaps because of reflogs in my local branches, I don't know15:04
Base2 Also, when I do svn commit, vim is fine15:04
kahmalo whereas git gc --auto would just skip the repack.15:04
goulik joined15:05
wereHamster orb: erm, no. Import from foreign vcs is usually done commit by commit, which leaves you with lots of loose objects15:05
Kruger left15:05
Base2 Strange, I have two vim binaries... thats the wrong one... never mind15:05
orb wereHamster: but it does autopack on git-svn clone after 1000 or so15:05
Base2 orb: ya and makes git-svn so painfully slow on a huge svn repo15:06
orb Base2: nah I think the larger problem with svn is network latency ;)15:06
wereHamster orb: it=git-svn, not git core. The vcs import script has to tell git to repack the repo after it is done15:06
MetaCosm_ left15:07
chris2 left15:09
sergiodj left15:19
saurabhverma left15:19
marvil07 joined15:19
kahmalo quite a lot seems to be missing from gitrepository-layout(5): info/attributes, rr-cache, MERGE_RR, FETCH_HEAD, MERGE_HEAD, ORIG_HEAD at least15:21
Kermos left15:22
hyperair ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA3kAM93zX6eN9OH7BjWS9kclC+QKky0VdoUxxHnNytySsSj9RRybMVdyePSL/8rNsSa/9bTEq4+NslNCfH32dwbQouyAstFrKmOaG1ejRkjikjvY/VJEPCLuZGY9iKFoiZhSr2sZi4ewg2FUuYi8Zv5Lxa7io7qJucyd3z7xOhgbcfmtzx21lQryR2jClJuBZvykxTHNFCnh03K5j9yAqnIfjfX72xOpVSaYhN8TAHnAokIXkQ2Nm/PS6ThFTfa/TgZpmYEdMdt1X3do5y6igimxufE5RWw3OfvVWfCbRDSKN5qDD+sa9+eoD5w+EF8EoQ9+hwqxQIkZ1L5PRrrHj/Q== General shell key15:22
cbreak interesting.15:23
wurble Why would git fail over an sshfs mount?15:23
quizme left15:28
bambule joined15:30
hyperair oh shit, did i accidentally paste that in here?15:30
!@#$15:30
hyperair wonders how that even got in here15:31
hyperair i don't remember middle clicking or anything of that sort15:31
Rich_Morin joined15:32
Cromulent joined15:38
reprore joined15:41
saurabhverma1 left15:41
fabiand1 joined15:42
fabiand1 Hey. is there a german git channel? :)15:43
orb Can't use English?15:43
ben_h joined15:43
fabiand1 sometimes - liek now - it's even quite complicated to explain in my first language ..15:44
fabiand1fabiand-prop15:44
fabiand-prop well. I want to reduce N commits to one.15:47
Ilari hyperair: At least its pubkey... :-)15:47
fabiand-prop: sounds like interactive rebase.15:47
hyperair Ilari: yeah, at least it's just that.15:48
hyperair was setting up a gitorious account15:48
fabiand-prop ok ..15:49
Theravadan joined15:49
eMyller left15:50
hyperair fabiand-prop: you want interactive rebase15:50
fabiand-prop: that one allows squashing of commits.15:51
fabiand-prop hyperair: yes. i'm currently reading it ..15:51
hyperair: i'm looking for a way to automate this ..15:51
eMyller joined15:51
hyperair ah15:51
automate.15:51
that sounds hard. is that even possible?15:51
wait, i think if you change the EDITOR environment variable to a custom script, then git rebase -i will call up that editor, whereby you can get it to squash the commits.15:52
davegb3 left15:52
Ilari Well, it is theoretically possible if commits to squash are expressible by range expression.15:53
hyperair hmm?15:53
how?15:53
hmm come to think of it, a graft should be able to squash commits quite well.15:53
Ilari Except that commit messages...15:54
hyperair yes, true15:54
but he wants it automated. how do you automate that?15:54
Ilari No easy way. But at least in some cases it is possible to automate (then there are cases where it isn't).15:56
hyperair hmm filter-branch allows you to drop commits it seems15:57
which is basically squashing them, similar to using grafts15:57
no way to specify the message though15:57
fabiand-prop hmm i figured out a way15:57
hyperair how?15:57
fabiand-prop i create a branch A, do my N commits in A, then, creating a new branch B, taking the diff between master and A and commiting it within B - so i just drop every single commit inbetween ...15:59
hyperair hmmm that would work.15:59
Cromulent left15:59
joshthecoder_afkjoshthecoder15:59
bobrik joined15:59
hyperair i'd use filter-branch with a --msg-filter and a --commit-filter16:00
Linkadmin left16:03
fabiand-prop hyperair: hm ok. i might look into that aswell :)16:03
hyperair =)16:04
fabiand-prop hyperair: thanks for now :)16:04
hyperair you're welcome16:04
corni left16:05
ludde joined16:07
ROBOd joined16:07
ROBOd hello guys16:07
i am trying to push my changes to a remote git repo and i get rejected16:07
ben_h left16:07
ROBOd ! [rejected] mdl19-tinymce3 -> mdl19-tinymce3 (non-fast forward)16:08
wereHamster ROBOd: faq non-ff16:08
Gitbot ROBOd: Your push would lose changes on the remote. See http://git.or.cz/gitwiki/GitFaq#non-ff16:08
ROBOd wereHamster: thanks16:08
i did a rebase from a different branch16:08
loincloth joined16:09
neunon left16:09
jelmer____ joined16:10
bugfux joined16:12
priidu left16:13
fabiand-prop left16:16
moonflux left16:16
moonflux joined16:16
chestnut joined16:17
ludde2 left16:18
snearch_ joined16:19
wurble Is there a way I can do git status only on the current directory?16:20
Ilari wurble: There's no way to limit status to some directory. Maybe closest would be diffing with --name-only (and ls-files to get untracked files).16:22
ROBOd i added a remote repo and its own branches don't show up in git branch -r. what can i do?16:24
git remote show .... does show me the remote branches16:24
but still, i cannot do git checkout -b whatever remote-repo/wanted-branch16:24
volodya joined16:25
Ilari ROBOd: 'git fetch remote-repo'.16:25
aeruder ROBOd: so you've just done the git remote add command?16:25
bobrik left16:25
ROBOd aeruder: yes16:25
aeruder ROBOd: so now run git fetch <remote>16:25
Ilari ROBOd: Next time, use -f to remote add and it will run that fetch for you.16:25
ROBOd worked other times...16:25
aha, thanks16:25
aeruder git remote add (without -f) just basically edits your .git/config16:26
Cromulent joined16:28
ericindc joined16:30
scarabx left16:32
dreiss joined16:33
stepnem left16:36
intripoon joined16:37
bugfux left16:38
kevin_ left16:41
moonflux left16:42
bugfux joined16:42
mika left16:42
jceb joined16:42
tvw joined16:43
volodya left16:44
kumbayo_ left16:47
kumbayo__ joined16:47
Cromulent left16:50
fridim_ joined16:51
ryandotsmith joined16:51
arcticpenguin joined16:52
ryandotsmith hey! when i do a git diff production on my master branch i see heaps of data16:52
cpg joined16:53
ryandotsmith but when i do a git merge production on master, it says everything is up to date . . . .16:53
any ideas on what is going on ?16:53
ciskje left16:53
Ilari ryandotsmith: Master is ahead of production branch.16:54
fr|fr16:54
ryandotsmith ok, what do i need to do to get production merged into master ?16:55
Cromulent joined16:55
arcticpenguin Hello, I'm wondering if anyone can point me to a gitweb resource.... I've followed the instructions from a few sites out there and I have the page rendering via Apache virtual hosts, but apache throws a Permission Denied error when trying to get into my /srv/git/repository/project.git - it says 'itweb.cgi: Can't cd to /srv/git/repositories/sofia.git: Permission denied'16:55
Cromulent left16:58
biz arcticpenguin: If you don't run the gitweb.cgi through suexec, you need to allow the Apache user to read the repository17:02
arcticpenguin thanks.. i just did that and it worked17:03
arcticpenguin left17:04
Ilari ryandotsmith: It is already merged.17:06
ryandotsmith: (well, if you got the branches in that command right).17:06
_grepper_ joined17:06
ryandotsmith actually, it is not. There are still changes in production that i want in master17:06
snearch_ left17:06
Ilari ryandotsmith: 'git log master..production' lists all commits that are in production but not in master.17:07
eMyller left17:07
EruditeHermit joined17:08
flazz joined17:08
EruditeHermit hi, when I try to do a git merge, I get does not point to a commit17:08
I am doing git merge <repo url>17:08
Ilari EruditeHermit: Merge does NOT take URLs.17:08
EruditeHermit oh17:08
eMyller joined17:09
tongueroo joined17:09
cemerick joined17:11
Ilari EruditeHermit: To merge commits from other repositories, you need to fetch them first. Pull does this before merging or rebasing the commits.17:12
EruditeHermit: Additonally, one needs to specify what branch to merge, as there can be multiple.17:13
ryandotsmith left17:13
kanzure left17:15
kanzure joined17:15
ryanakca left17:15
ryanakca joined17:16
chestnut left17:16
gurami joined17:17
EruditeHermit Ilari: yeah I just realized that =p17:18
thanks17:18
gurami hello. I've setup gitweb and now I'm trying to setup passwordless logins to myserver, but I get public key permission denied message :[17:19
can anyone tell me what permissions to setup on $home and ./ssh? please...17:20
jast .ssh needs to be 700 and all files in it 60017:20
orb They don't strictly need to be. Only id_dsa pub shall be 0600.17:20
gurami oh thanks! I've been looking for it about 1 hour.17:20
I'll try that thanks guys17:21
;-)17:21
dorileo left17:21
_Vi joined17:21
jast orb: actually I think sshd checks most other files too if StrictModes is enabled (which it is almost everywhere)17:22
gurami no strict mode is disabled in my case17:22
name left17:23
name joined17:23
jast in that case it doesn't really matter... at least sshd won't care17:25
eMyller left17:25
gurami it does not login :|17:25
I'll look in ssh -vvv now17:26
jast I was about to suggest that :)17:26
solydzajs left17:26
psynaptic left17:26
gurami :)17:26
bugfux left17:27
bugfux joined17:27
eMyller joined17:28
kinkerl joined17:33
Linkadmin joined17:34
eMyller left17:35
Yewbacca left17:36
jmspeex joined17:36
gurami here please look http://paste.uni.cc/2011517:38
fridim_ left17:38
eMyller joined17:38
volodya joined17:39
sprasanna_ left17:40
gurami I can't decipher it. it's really annoying I've all permissions right, I've deleted know hosts file, generated rsa keys from scratch17:41
:[17:41
tongueroo hey guys, is it possible to trace back with git log and see filter for merges that happened, even if the committer alter the typical "merge 'branchname' into..." message17:41
i guess i would look for commits with more than one parent ?17:41
still confuses me :P17:41
priidu joined17:41
hyperair git log --graph17:42
thiago_home left17:42
_Vi left17:42
_Vi joined17:42
xelados joined17:43
xelados how do I change to a previous commit/version?17:44
It's been a long time since I've touched git.17:44
thiago_home joined17:46
tvw left17:46
hyperair commit --amend17:47
eMyller left17:47
hyperair or rebase -i17:47
xelados I just did a checkout on the hash and it seemed to work.17:48
eMyller joined17:48
agib If I'm working on a topic branch with a bunch of new directories and files, but want to go back to my master and do some things there, how do I clean my working tree again?17:49
EruditeHermit Ilari: how do you cancel local cached changes?17:50
agib is it get reset --hard HEAD?17:51
eMBeesm17:51
smeMBee17:51
arcticpenguin joined17:52
elmob joined17:53
ramlev joined17:53
agib anyone?17:53
orb anyone can give me a pizza.17:53
eb_ agib: that won't delete the new files and dirs17:53
agib eb_: ah... do you know what will?17:53
EruditeHermit agib: I want to do exactly the same thing =p17:53
eb_ yes, sec17:53
i think git clean17:53
plus some options tho17:53
ramlev orb: if you can fetch it yourself in denmark, then yes17:53
orb ramlev: can I resort to a git fetch? :)17:54
agib hmm17:54
eb_ git clean -d -f17:54
kahmalo xelados: git checkout with a commit ID detaches the HEAD. If you now edit files and use git commit, the resulting commit won't be on any branch.17:54
Theravadan left17:54
ramlev orb: not implemented in the danish pizza houses17:54
orb cramps..17:54
EruditeHermit I keep getting you have local changes to file cannot switch branches17:55
even after the git clean -d -f17:55
orb -dfx perhaps.17:55
eb_ clean only removes untracked files17:55
so, you additionally should do a 'git reset --hard HEAD'17:55
xelados kahmalo: Oh, that's no good. What's the proper way to reverse current changes and revert to my last commit?17:55
wereHamster EruditeHermit: git stash17:55
kahmalo xelados: It depends on whether you want the branch to remember that the changes had been made and reverted.17:56
xelados I don't want it to remember that.17:56
EruditeHermit wereHamster: stash is cool =)17:57
eb_: thanks that worked17:57
agib eb_: thank you17:57
eb_ np17:57
kahmalo xelados: Then check out the branch and use git reset --hard with the commit id. This discards all local changes in files; if you don't want that, use something other than --hard.17:57
xelados "HEAD is now at [hash]"17:58
Good?17:58
ramlev left17:58
kahmalo xelados: I think git reset always displays that. git branch, or git status, should show whether HEAD is still detached or now on a branch.17:59
xelados no branch...18:00
kahmalo You didn't check out the branch then, before resetting?18:00
xelados nope..18:00
Okay, there.18:00
orb .oO( git config alias.guillotine checkout HEAD )18:01
xelados It works now. Thanks.18:01
agib left18:01
saurabhverma joined18:01
davegb3 joined18:03
markelikalderon joined18:04
qrush left18:05
pisi joined18:08
wereHamster orb: why guillotine? checkout HEAD is a noop18:08
you probably mean checkout HEAD^018:09
pisi How to change the gpg binary that git uses to sign tags? I have several and as normal command line signing works but git fails, I assume it is using the wrong version18:09
orb wereHamster: inconceivable git behavior! :)18:09
yeah.18:09
pisi (I use a smart card for signing and it has worked at least once successfully before, but I can't remember what I did differently last time)18:10
marc joined18:10
marcmarc_kdab18:10
ericindc left18:11
wereHamster pisi: the binary doesn't seem to be configurable, but try adjusting PATH so that your prefered binary is picked first18:11
kahmalo pisi: it seems to just search for gpg in PATH. relevant functions: do_sign in builtin-tag.c, start_command in run-command.c18:11
bobesponja joined18:11
_Vi left18:12
fridim_ joined18:13
_Vi joined18:13
hummingkid joined18:13
pisi I have it in my path, doesn't work. have to debug ... the bridge to smart cards is dumb and complicated in gpg, unfortunately...18:15
agib joined18:16
flazz left18:18
wereHamster pisi: try setting GIT_TRACE=true to see what git is doing18:18
qrush joined18:18
tomaw left18:18
bugfux left18:19
bugfux joined18:19
tomaw joined18:20
mokasin joined18:21
patrikf joined18:22
mokasin Hi. I've a beginner's question. How do you resolve best a file rename conflict. Szenario Alice renames a file to foo and changes some lines, Bob changes the name into bar and also changes some lines. Merge: Get shows now a conflikt and both files are in the folder... how to go on?18:23
Ilari mokasin: Edit the files to state you want and add/rm them.18:24
tokkee mokasin: ... and rethink your file naming scheme *scnr* ;-)18:25
mokasin okay, lets say I decide to call the file foo. but how do I include easily the changes from bar into foo?18:25
rudi_s mokasin: diff and patch; or your editor if it has diff support.18:27
mokasin @tokkee, and rethink the developers names ;). okay, I guessed so. so theres no integrated command: take this filename with all changes of both in it? that's a pity18:29
ijuma left18:29
ijuma__ joined18:29
wereHamster mokasin: or take a look at man git-merge-file18:29
Gitbot mokasin: the git-merge-file manpage can be found at http://git.or.cz/man/git-merge-file18:29
mokasin hey, that's what I was looking for18:30
giallu joined18:31
mokasin perfect. thx18:31
reprore left18:31
tokkee mokasin: I did not refer to using 'foo' and 'bar' but rather to two developers renaming the same file to different names at the same time - that sounds rather broken ;-)18:32
mokasin yeah, I suppose ;-). but hey, for what I have a CVS that have to handle the mess I create ;)18:34
stepnem joined18:37
Base2 left18:38
eMyller left18:38
bugfux left18:39
eMyller joined18:40
dodo_the_last left18:43
tvw joined18:44
bcardarella joined18:47
joce_ joined18:50
ajonat joined18:53
eean joined18:55
trefn joined18:56
trefn is there a way to only show commit by 1 author with git log?18:56
chris2 joined18:56
trefn i want to see my first commit on a group project18:56
aarongibralter joined18:56
kahmalo git log --author=<pattern>, says the manpage18:56
agib left18:57
trefn thanks, didn't see it.18:57
aarongibralter left18:58
agib joined18:58
jjuran joined19:01
almostautomated anyone know of a windowed diff util that allows setting regex ignored like CLI diff? (*nix) ?19:03
joce_ almostautomated: Have you looked at SourceGear's DiffMerge?19:05
thiago_home almostautomated: diff with regex?19:06
almostautomated: what are you talking about?19:07
Akufen left19:07
almostautomated thiago_home: ie: diff -I 'regex'19:07
like that but visual instead of console19:07
thiago_home why do you want that?19:07
thiago_home has never used that option19:07
thiago_home I'm curious19:07
almostautomated thiago_home: I use it to ignore lines that I _know_ will be different19:08
thiago_home right, but why do you want to ignore lines you did change?19:08
almostautomated ie:: comparing two different patches that _should_ make the exact same changes but come from different bases19:08
thiago_home ah, the context lines?19:09
almostautomated no... the index lines19:09
wurble Why do I get "untracked working tree file foo.c would be overwritten by merge" when I try to checkout a branch bar, when bar contains foo.c? foo.c is unmodified.19:09
thiago_home wurble: it's untracked, not unmodified19:10
doener almostautomated: maybe you want interdiff instead of diff?19:10
almostautomated thiago_home: when you do git diff -p19:10
interdiff?19:10
almostautomated never heard of that one19:10
doener almostautomated: http://man.he.net/man1/interdiff19:10
almostautomated LMFAO::: http://people.redhat.com/twaugh/interdiff/19:10
wurble thiago_home: untracked by which branch?19:10
almostautomated doener: thanks... will read.19:11
thiago_home wurble: the currently checked out one19:11
wurble thiago_home: I believe I see it in the log --name-only messages for branch bar.19:11
thiago_home wurble: right, the file is in that branch19:11
corni joined19:11
thiago_home wurble: the problem is that it is not in the current branch19:11
tvw left19:12
bcardarella left19:12
Short_some_thing joined19:12
volodya left19:12
resmo joined19:12
tvw joined19:12
wurble thiago_home: Thanks.19:13
juanjoc left19:13
eMyller left19:14
wurble How would I diff my current file with the one in the branch?19:15
thiago_home is it tracked already?19:15
i.e., git add ?19:16
and committed19:16
patrikf wurble, git diff branch:file file19:16
wurble thiago_home: No. Not in this branch.19:16
thiago_home patrikf: that works? Cool.19:17
thiago_home didn't know19:17
wurble patrikf: I get ambiguous argument 'foo.c': unknown revision or path not in working tree19:17
asksol left19:17
patrikf wurble: well, it works for me19:18
wereHamster wurble: try git diff <branch> -- <file>19:19
aeruder wurble: i think that error suggests it can't find foo.c19:19
is that really what your file is called?19:19
Akufen joined19:19
aeruder and keep in mind, the branch: syntax needs to have the relative path to the file19:19
lu_zero left19:19
aeruder i.e. if its at /a/foo.c, you need branch:a/foo.c19:19
orb ... except when there is a : in it19:19
aeruder (relative to the root of the git repo)19:19
wurble wereHamster: That works but it just shows the file as deleted (it's not)19:21
hyperair left19:21
ryandotsmith joined19:21
wereHamster wurble: are you sure your current HEAD contains that file?19:22
wurble aeruder: Yes I'm sure19:22
almostautomated doener: thanks, but that doesn't look like what I'm looking for. Prob is: 'diff -w A B == same' 'diff -w A^ B^ == same' diff -w of ( diff -w A^ B and diff -w B^ A ) != same when I do it in the script, but does when I do it manually.19:23
wurble wereHamster: My current HEAD doesn't seem to contain the file. That is my problem. I want to know if what I have in my working directory is different that in the branch I want to to switch to.19:23
k_shaurya joined19:24
k_shaurya left19:24
almostautomated Trying to isolate the difference between my scripts diff output and manual output, yet am failing to see the context even with diff -w -y19:24
wereHamster wurble: why is it untracked in your current HEAD but included in the other branch?19:24
wurble The directory the file is in is the same as the name of my branch which may be compounding problems.19:24
wereHamster: Not sure. Isn't that what would happen if I checkout -b bar; add foo.c; checkout master?19:25
dwmw2_gone joined19:25
aliceinwire joined19:25
ryandotsmith left19:26
wereHamster wurble: assuming you commit after adding the file, yes that would lead to such situation19:26
mithro_ left19:26
wereHamster er, wait, it wouldn't. If one file is included in one branch but untracked in another one, git removes it when switching branches19:27
wurble wereHamster: So assuming I retained the file in my working directory by some other means, how would I verify that it is the same as in the other branch?19:27
i.e. That I didn't update it.19:27
galderz joined19:28
markelikalderon left19:28
galderz left19:28
wereHamster wurble: temporary add the file to the index and run git diff19:28
_grepper_ left19:28
wurble wereHamster: Against the other branch?19:29
wereHamster yes19:29
git diff <otherbranch> -- <yourfile>19:29
gurami left19:30
wurble wereHamster: Thanks, that did it.19:30
Is there an easy way to merge the changes?19:30
mems Does anyone have any solutions for migration svn:externals to submodules? I'm migrating a subversion repo with various svn:externals cross-references using git-svn, and would like to use submodules as a replacement.19:31
wereHamster wurble: where would you like to have the resulting commit? On your current branch or on the branch which already contains that file?19:31
saurabhverma left19:32
wurble wereHamster: branch which already contains it. I actually just want the current branch copy, uncommited, on the branch that already contains it. I guess I could just copy it and then checkout the branch and overwrite.19:32
_grepper_ joined19:32
stringo0 joined19:34
Grahack joined19:34
Grahack left19:35
wereHamster wurble: git add the file, git checkout -m <otherbranch>; resolve the conflicts (if any); git commit19:35
wurble wereHamster: Thanks19:35
justin-george joined19:35
patrikf left19:36
Base2 joined19:37
Base2 left19:37
EruditeHermit if I do git checkout experimental19:39
ryandotsmith joined19:39
EruditeHermit and then do git merge master19:39
Base2 joined19:39
EruditeHermit it says Already up to date even though I know master has new changes19:39
wereHamster EruditeHermit: does 'git log experimental..master' list any commits?19:40
EruditeHermit no19:41
Base2 left19:41
wereHamster there you go, master doesn't contain any commits that aren't already in experimental19:41
wurble What's the best way to commit a single file on a different branch when I have other uncommited changes (that I do not want to commit yet) on the current branch?19:41
mithro_ joined19:42
EruditeHermit wereHamster: but there are changes to a file in master that aren't in the other branch19:42
wereHamster EruditeHermit: did you commit those changes on master?19:42
EruditeHermit yes19:42
if I do git commit -a on master it says nothing to commit19:43
ryandotsmith left19:43
Pewpewarrows joined19:44
wereHamster wurble: I'd use git stash19:44
EruditeHermit: does git diff master experimental -- <file> show the differences you are missing?19:44
marvil07marvil07-lunch19:45
wurble wereHamster: And then apply on the other branch?19:45
EruditeHermit wereHamster: yes19:45
wereHamster wurble: yes19:45
EruditeHermit: maybe the change got lost in a merge conflict19:46
EruditeHermit this is a pretty new repo19:46
haven't had any merge conflicts19:46
spaceonline joined19:46
cemerick left19:47
kumbayo__ left19:48
wereHamster EruditeHermit: do you know in which commit these lost changes were introduced to master?19:48
EruditeHermit nope19:48
MrN joined19:48
p0w3r3d joined19:49
eMyller joined19:52
wurble wereHamster: Okay, after stash applying on the other branch I have unmerged conflicts on other files (which I don't want to commit, I will restore them when I return to my original branch). checkout on those files doesn't work, complaining that they are "unmerged"19:52
beni- joined19:53
wurble Never mind. I solved it by adding it and then resetting it.19:53
Thanks again19:53
agib left19:53
wereHamster wurble: after git stash apply, you should be able to git add the file you want to commit and then run git commit, ignoring all the other files that have conflicts19:54
wurble wereHamster: It didn't let me do that.19:55
beni- hi guys. i have a big file (video project) in an old revision, but I won't need that file not anymore. is there a way to remove the file out of that old revision?19:55
wurble The file was present on my branch. Maybe that is an extra problem.19:55
wereHamster: The whole process was more painful than I would have liked. When I returned to my original branch I stash applied and then tried to merge but then had to again resolve conflicts with the file that I updated.19:56
wereHamster EruditeHermit: that is weird. Maybe run git blame on the file in master to find out which commit introduced the changes, and then check if the same commit is in the experimental branch19:57
wurble This use-case happens often to me. I wish there was a better way to handle it.19:57
EruditeHermit wereHamster: ok thanks19:57
wereHamster beni-: not without rewriting history19:57
beni- wereHamster: what does that mean?19:58
jceb left19:58
wereHamster beni-: start reading http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#fixing-a-mistake-by-rewriting-history19:59
jceb joined19:59
beni- wereHamster: ok thanks, i'll have a read through19:59
Marmouset joined19:59
wereHamster wurble: that is to be expected. If merging A into B results in conflicts, then also merging B into A will result in conflicts20:00
p0w3r3d left20:01
arcticpenguin left20:02
klbate_klbate20:02
elmob left20:03
hammu joined20:04
scarabx joined20:04
hammu left20:04
ijuma__ijuma20:07
eean left20:08
mokasin left20:08
robinr left20:09
ROBOd left20:09
jjuran left20:11
marvil07-lunch left20:13
marvil07-lunch joined20:13
marvil07-lunchmarvil0720:14
_grepper_ left20:18
tlm joined20:18
tlm i'm doing an interactive rebase; i marked one old commit with `edit', split it into several commits, and ran `git rebase --continue'. now i'm getting merge conflicts with changes that were not part of that commit. have i done something wrong?20:21
dodo_the_last joined20:22
MrNemy_20:22
emy_MrN20:22
plopix why is ' +$' evil in source code?20:23
git complains about it. is there a way to let git accept it?20:24
jceb left20:24
kahmalo man git-config: core.whitespace, apply.whitespace, color.diff.whitespace20:25
jelmer____ left20:25
Gitbot kahmalo: the git-config manpage can be found at http://git.or.cz/man/git-config20:25
parasti disable whatever nazi hook you have enabled20:25
robinr joined20:26
binrapt joined20:26
binrapt Urgh I just misspelled a word in a commit and already pushed it onto the main server - what can I do to fix the text?20:27
It's the log message I mean20:27
Not the content of the code20:27
I really want to fix it, one can hardly understand what it means now20:28
kahmalo amend and force push. then talk with everyone who pulled the original20:28
it doesn't matter whether the change is in the commit message or files20:29
parasti or undo it with "git revert", then "git cherry-pick -n" the original commit and recommit with proper message20:29
cpgcpg|biab20:29
kahmalo a commit note would be another option, but it seems uncertain whether that feature will ever be in a released git20:30
ryandotsmith joined20:30
Theravadan joined20:31
binrapt kahmalo: How does a force push work?20:33
Normal push gives me errors :(20:33
dreiss left20:33
binrapt I amended it successfully and my local history is alright now20:34
kahmalo git push -f or with a + in front of the refspec. disables the fast-forward check. but the server may have a hook that requires fast-forward anyway.20:34
David-T left20:37
binrapt It's repo.or.cz20:39
David-T joined20:39
binrapt Worked! Thanks20:39
aliceinwire left20:43
mbroeker left20:45
Alinermedia left20:46
Weaselweb left20:47
bugfux joined20:49
k0001 left20:49
khmarbaise_ left20:50
bugfux left20:51
beni- left20:51
mika joined20:52
k0001 joined20:53
Theravadan left20:54
priidu is it possible "git reset --hard HEAD" for remote git repo after pushed up (currently I made small script what ssh to remote server and exec "git reset --hard HEAD"20:55
orb use push -f20:55
priidu orb, thank, so simple :-)20:55
orb then again I wonder why you would want reset in a bare20:56
robinr left20:57
priidu i'm updating web server data in git, after updated locally i push up to remote git repo (kind of abusing git as rsync etc)20:58
ludde left20:58
^Einstein joined21:01
orb that's for sure...21:02
pushing into a non-bare still requires reset21:02
wereHamster priidu: take a look at http://toroid.org/ams/git-website-howto21:03
doener orb: hm? Why should push require reset?21:03
orb doener: because the wc is still at the old HEAD21:03
doener: pushing only updates the head, not the wc or index.21:04
priidu orb, yep just tested, i still had to "git reset --hard HEAD" at remote server21:04
robinr joined21:04
doener orb: ah, pushing to a non-bare repo and to the ref referenced by HEAD21:04
orb: didn't even think of that case, as it's so, uhm, non-useful ;-)21:05
orb doener: don't tell me21:05
priidu wereHamster, thanks for the link, will try it out21:06
Soliton left21:07
iaj joined21:08
iaj hello there :)21:08
resmo left21:08
jonmasters left21:08
Ilari Hmmh... The shim transport layer doesn't seem to consider extensibility at all... :-(21:09
lu_zero joined21:09
iaj got a little question.. after I git pulled - it shows me how many insertions..deletions there are.. but how can I actually view the changes that have been made?21:09
orb shim, what, where? In git? Is not that a kernel thing?21:09
uau i'm trying to work around around git's sucky submodule functionality and support shallow clones of submodules21:09
__iron left21:10
jonmasters joined21:10
dreiss joined21:10
Ilari orb: In git.21:10
uau should "git clone --depth 1 `git config --get submodule.NAME.url` DIRNAME" do about the same as "git submodule update DIRNAME", assuming the repo doesn't exist yet?21:10
__iron joined21:10
uau and assuming you have run git submodule init DIRNAME21:10
orb ilari: http://www.shim6.org/ :)21:11
rdeshpande joined21:11
rdeshpande hi all21:11
Ilari uau: Those diffstats are from merge into current branch.21:11
mems left21:11
wurble left21:12
uau Ilari: did you mean to address that to someone else?21:12
rdeshpande can someone explain the difference between committer and author? i was looking at a commit in teh source tree clearly committed by person A, but with git cat-file I saw the author as person A but committer as person B.21:12
Soliton joined21:12
Ilari uau: OOps.21:13
iaj: Those diffstats are from merge into current branch.21:13
jmspeex left21:13
doener rdeshpande: If I send a patch to e.g. Junio, and he creates a commit which ends up in the git.git repo, then I'm the author, but Junio is the committer21:13
rdeshpande: ... he creates a commit from my patch21:14
bitprophet left21:14
iaj Ilari, huh??21:14
rdeshpande doener: does the same apply for, say a merge between branches? woudl the person that perform the merge be the committer but the initial writer of the code be the author?21:14
doener rdeshpande: no, a merge creates a new commit, and that would (most likely) have the author being the same as the committer21:15
gernot_gernot21:15
doener rdeshpande: a merge commit has two or more parents, so the original commits are reachable through it. And those have the respective authors set21:16
rdeshpande hrm21:16
im trying to figure out how this came about in our source tree21:16
doener rdeshpande: rebasing changes the committer, but keeps the author21:17
MrN left21:17
doener rdeshpande: because rebasing creates new commits, but reuses the changes from the original commits21:18
rdeshpande ah21:18
Soliton left21:18
jmspeex joined21:18
Soliton joined21:19
Soliton_ joined21:19
Soliton_ left21:19
rdeshpande doener: thanks21:19
lack left21:19
tbr joined21:24
corni left21:25
tbr left21:27
jmspeex_ joined21:28
juanjoc joined21:28
s0ber_ joined21:28
bambule left21:29
juanjoc left21:30
orb left21:32
jmspeex left21:33
scarabx left21:34
markelikalderon joined21:34
rdeshpande left21:34
eMyller left21:35
robinr left21:37
Gitzilla joined21:37
jmspeex_jmspeex21:38
eMyller joined21:38
almostautomated why would a git diff -w -p piped to apply produce a 'garbage' patch vs a git diff -p work fine ? What determines 'garbage'?21:41
s0ber left21:41
Ilari almostautomated: What was -w again?21:42
almostautomated: Ignore space change+21:42
s/\+/?/21:42
doener Ilari: yep, all whitespace changes21:42
Base2 joined21:42
stuffcorpse left21:42
stuffcorpse joined21:43
almostautomated except one, I believe and that is EOL @ EOF... That is something I've been reading on the mail list about21:43
EricInBNE joined21:43
doener Ilari: or rather: all whitespace. Opposed to -b which does something like s/\s+/ /g21:43
pigeon joined21:43
trefn left21:44
binrapt left21:44
doener i.e. with -b "abc def" is treated the same as "abc def", but different from "abcdef"21:44
with -w, all three are considered to be the same21:44
cpg|biabcpg21:45
almostautomated I wonder if that would make apply think the diff produced patch is garbage21:45
justin-george left21:46
osfameron evening21:46
almostautomated It essentially would be... in regards to patching something21:46
Ilari Idea about implementing extensiblity to external transports: add command that returns capabilities. And fetch and list would need to be capabilities as well, because some transports might not be able to easily implement them.21:46
osfameron I've just done 'git rebase' to pull from a topic branch, and git status tells me "Your branch and 'origin/release_2-0' have diverged, # and have 37 and 2 different commit(s) each, respectively." How do I check that everything is OK and ready to git push?21:46
Ilari E.g. smart transports.21:47
osfameron: That doesn't look OK.21:47
osfameron Ilari: oh :-(21:47
doener osfameron: rebase to pull from a topic branch?21:48
Ilari osfameron: At least not for pushing to release_2-0.21:48
doener osfameron: that sounds like you did: git checkout release_2-0; git rebase <topic>21:48
osfameron doener: yes21:48
doener osfameron: which is pretty much the wrong way around21:48
osfameron yay!21:49
I should 'git merge' instead?21:49
doener osfameron: that has put the commits that are in release_2-0 which aren't in <topic> on top of <topic> and called the result release_2-021:49
osfameron or git rebase from within the topic branch?21:49
doener osfameron: first, you want to restore the old state of release_2-021:49
osfameron ok21:49
how do I do that?21:49
delete the branch and create a new tracking branch?21:50
doener osfameron: check its reflog (git reflog show release_2-0), find the pre-rebase entry (should be @{1}) and reset to there21:50
osfameron git reset release_2-0@{1} ?21:51
doener osfameron: yup21:51
osfameron: probably you want --hard, though21:51
osfameron: that kills uncommitted changes, so be careful...21:51
osfameron: then, you can choose between simply merging the topic branch, or rebasing the topic branch first, and then merging it21:52
osfameron seemed ok without --hard (as in, git log looks vaguely sane)21:52
doener osfameron: yeah, but "git status" won't21:52
osfameron oh I see, lots of "modified" files21:52
doener osfameron: --hard (vs. the default --mixed) is just about the working tree being reset, too21:52
osfameron ok, well I don't have any uncommitted changes so I'm OK21:53
doener osfameron: you can just do "git reset --hard" now, to drop all those uncommitted changes21:53
osfameron untracked files don't get reset do they?21:53
Base2 left21:53
doener osfameron: no, they don't. "git clean" can drop them21:53
stuffcorpse left21:53
osfameron no that's cool, I'm happy to keep them for now (notes and logfiles and such)21:53
stuffcorpse joined21:53
osfameron unless... can you git clean a directory?21:54
doener osfameron: anyway, the plain "merge" may obviously give you a non-linear history (which isn't any problem per se). If you insist on having a linear history, use the rebase+merge approach21:54
osfameron: you can tell clean to operate only on a certain directory (and its subdirectories), yes21:54
osfameron I think I'd settle for stuff working for now :-) so I may go for just merge21:54
doener osfameron: don't use the rebase approach if the topic branch is public though21:55
osfameron ah no, there was only one other developer on this repo, and he didn't use that branch21:56
jelmer____ joined21:56
trefn joined21:57
osfameron ok I'm getting: error: Entry 'cgi-bin/admin.cgi' would be overwritten by merge. Cannot merge.21:58
that doesn't sound good...21:59
sergiodj joined21:59
osfameron that file existed since before the topic branch, dunno why it'd think they were two separate files21:59
doener osfameron: did you do the "git reset --hard" thing? Otherwise, you of course still have those uncommitted changes, and git complains about them21:59
osfameron doener: yeah I did21:59
git status became cleaner (modulo the files untracked in this branch)22:00
doener osfameron: ah, you did a --mixed reset, the file might be left as untracked22:00
osfameron I did 'git reset --hard' as you'd suggested22:00
doener osfameron: that doesn't drop untracked files (as you correctly said)22:01
urbanmonk joined22:01
doener osfameron: the --mixed reset doesn't touch the working tree, but the index. So files can become untracked22:02
Ilari left22:02
Ilari joined22:02
osfameron considers renaming his repo/ and checking out a clean version22:02
robinr joined22:02
offby1 left22:03
Cromulent joined22:04
urbanmonk is it possible to have setup gitweb to require authorization on some projects but not others?22:04
_grepper_ joined22:05
almostautomated doener: did more reading/studying while trying the 'format-patch'->'apply' version of whitespace fixing. There were some discussions about whitespace at EOF, and indeed, that was the cause of my earlier diff -w A^ B != diff -w B^ A issue (when diff -b A = B and diff -b A^ = B^). I think there is a work-around that'll work for it though...22:06
Ilari osfameron: Reclone usually solves nothing...22:06
trefn left22:07
cpgcpg|biab22:07
sunoano left22:08
osfameron Ilari: I thought I might have broken stuff... I certainly don't underestand what I'm doing now22:08
trefn joined22:08
Ilari osfameron: Make a backup?22:08
pjackson joined22:09
stuffcorpse left22:09
pjackson Can I get format-patch to do its thing without mail headers?22:09
stuffcorpse joined22:10
Ilari pjackson: No. But you don't have to mail the stuff.22:10
sunoano joined22:10
fridim_ left22:11
Sigma left22:12
osfameron Ilari: ok, it's all checked in (and pushed :-)22:12
Ingmarhacchi22:12
osfameron but I'm very confused22:12
hacchiregister22:13
schambers left22:13
registerhacchi22:13
osfameron I'm in release branch; git merge <topic>; fix 1 conflicting file; git add <conflicting file>; git merge # again; and now I have this error about cgi/admin.cgi would be overwritten22:13
doener osfameron: merge again? You have to commit the first one first22:14
osfameron doener: I thought to resolve conflict you just had to 'git add' ?22:14
offby1 joined22:14
doener osfameron: that updates the index, yes. But it doesn't commit22:15
osfameron: just imagine that you have two conflicting files22:15
corecode http://gist.github.com/155937 how can that happen?22:16
Ilari osfameron: It just marks it resolved. But conflicted merge is by defintion nontrivial, and nontrivial merges require commit to do.22:16
stuffcorpse left22:16
doener osfameron: you fix the first one and add it. If that would implicitly commit, you'd commit the still unmerged version of the other file22:16
stuffcorpse joined22:16
Short_some_thing left22:16
corecode did the repo change while it was cloning?22:16
doener corecode: http clone?22:17
tbf left22:17
jamessharpe joined22:17
osfameron ok, so I've committed that conflicted file - am I ok to try merge again?22:17
offby1 left22:17
doener osfameron: you committed the merge, not that file22:17
hacchiingmar22:17
corecode doener: no, local22:17
doener osfameron: merging again would just tell you that there's nothing to merge22:18
Altreus left22:18
corecode doener: but there are updates happening in parallel22:18
doener corecode: using a plain path, or file:// ?22:18
corecode plain path22:18
osfameron doener: nope, I removed changes from index and committed just that file22:18
corecode is there a difference?22:18
offby1 joined22:18
Ilari corecode: Yes.22:19
doener osfameron: you still committed the merge. You just told git that merging that branch results in changing that file only22:19
osfameron doener: eeeek!22:19
or is that a good thing?22:19
corecode would this be an effect?22:20
doener osfameron: unless you want the merge result to be that only that one file changed, no, it's not a good thing22:20
k0001 left22:20
osfameron doener: I thought you told me I had to commit that file first?22:20
ingmarhacchi22:21
Ilari osfameron: How did you commit only that one file?22:21
doener osfameron: no, I told you that you need to commit, and not to run "git merge" again22:21
rhyhann joined22:21
rhyhann Hi22:21
osfameron ah... this isn't the same as conflict in rebase, where you have to restart the rebase (with --continue) A merge is just OK once you've resolved the conflicts?22:22
j416 joined22:22
osfameron Ilari: um, I unstaged everything and then added in that one file again22:22
rhyhann Can I merge changes in a repositoly from another one that is not a fork, nor a clone ?22:22
iaj how can I view the changes that have been made (e.g. the files that have been updated) in last git pull?22:22
doener osfameron: "rebase --continue" doesn't restart the rebase, it continues it22:22
k0001 joined22:22
hacchiingmar22:23
Ilari osfameron: Unstaged? If its via reset, it aborts the merge.22:23
doener osfameron: and a merge just needs to be committed, and not tried again (unless you aborted it, of course)22:23
osfameron doener: um, yes, I meant "restart" as in "continue" as opposed to "start over", but not very clear, sorry22:23
ah ok22:23
doener Ilari: "git reset <path>" doesn't abort the merge AFAIK22:23
osfameron how can I tell if I aborted my merge or not?22:24
Ilari osfameron: Does git log list it as merge (merge line)?22:24
osfameron Ilari: I don't see anything about merge there: just commit ...\nAuthor:...\nDate:\n.... and the description22:25
Ilari osfameron: Thats not merge then...22:25
jonmasters left22:25
osfameron ok... so I think I want to back out that commit and start over...22:25
osfameron sighs22:25
doener left22:26
osfameron doener, Ilari: thanks for the pointers ;-)22:26
Ilari osfameron: reflog and reset.22:26
osfameron --hard ?22:26
[JL]String joined22:26
[JL]StringstringoO22:26
T_X left22:27
Ilari osfameron: Yeah...22:27
jonmasters joined22:27
T_X joined22:27
offby1` joined22:29
nitrate left22:30
stuffcorpse left22:31
stuffcorpse joined22:31
trefn_ joined22:31
Rolenun joined22:32
trefn left22:32
pint_size joined22:33
offby1 left22:33
pint_size left22:33
offby1`offby122:33
urbanmonk left22:34
Rolenun does anyone know if there is an irc channel for git# ? :)22:34
wolog joined22:34
Ilari Rolenun: git#? The C# reimplementation?22:35
Rolenun yep22:37
bugfux joined22:38
Ilari I guess this channel is the most apporiate (no specific channel exists).22:38
Rolenun Ilari, thanks, I was just wondering. I dont have any questions about it. Just doing my homework before I become involved with the project ;)22:40
tvw left22:41
csgeek left22:45
Linkadmin left22:45
eMyller left22:46
jamessharpe left22:47
stuffcorpse left22:50
stuffcorpse joined22:51
chris2 left22:51
cemerick joined22:53
csgeek joined22:54
tlm` joined22:55
cemerick left22:55
almostautomated There. With DIFF1 being diff -w of A^ B and DIFF2 for B^ A:: If [ -z "$(git diff A B)" ] && [ -z "$(diff -w $DIFF1 $DIFF2 | grep -E "[<>] [+-]\s+[:print:]+")" ]; then echo "Whitespace fixing worked."; fi22:57
robinr left23:00
twas left23:02
TML joined23:02
ryandotsmithryandotsmith|awa23:04
ryandotsmith|awaryandotsmith23:05
Cromulent left23:05
giallu left23:06
intripoon left23:07
almostautomated actually that should have been $(git diff -b A B)23:08
tlm left23:10
Octalot left23:10
obiwan_chinobi joined23:11
almostautomated and I guess that second diff could be tightened up with -b instead of -w as well23:11
aziz how can I amend the previous commit and remove files from it?23:12
aeruder aziz: git rm <files> ; git commit --amend23:14
just make the changes like you were gonna make another commit, and the amend makes the changes into the previous commit23:14
aziz k thanks23:15
TML left23:15
TML joined23:15
priidu left23:15
Cromulent joined23:20
Linkadmin joined23:21
AkumaStreak left23:23
jonmasters left23:23
TML left23:24
AkumaStreak joined23:24
elspeth hm23:24
i need to do a merge23:24
brizly1 joined23:24
elspeth how do i specify a mergetool?23:24
aziz hm, that wasn't actually a good idea. I didn't actually want to remove the files.23:24
TML joined23:25
aziz I wanted to not have them in the previous commit.23:25
elspeth automerge failed, need to do a manual one, shouldn't be too hard, just can't remember the invocation to say 'i want to use textmate to merge this manually'23:25
jonmasters joined23:26
aziz Anyway, I rolled back the last commit: git reset --soft HEAD^23:27
bitprophet joined23:29
almostautomated is --quiet and --exit-code broken on 1.6.3 for git diff ?23:30
k0001 left23:31
tlm` left23:32
w|shimmy joined23:33
marvil07_ joined23:34
^Einstei1 joined23:34
^Einstein left23:35
j416 left23:36
strangy joined23:36
marvil07 left23:36
thiago_home left23:37
k4jcw joined23:37
rudi_s elspeth: man git-mergetool23:37
Gitbot elspeth: the git-mergetool manpage can be found at http://git.or.cz/man/git-mergetool23:37
k4jcw Good evening. I'm reading the git docs as we speak, but is there way to refresh the current clone after the master has been updated?23:38
djgera left23:38
hydrogen joined23:38
rudi_s k4jcw: git fetch and git merge or git pull (which does the fetch/merge)23:38
Base2 joined23:39
k4jcw Ah. Excellent, thank you, rudi_s.23:39
rudi_s np23:40
brizly left23:40
elspeth rudi_s: thankee23:40
rudi_s np23:40
DavidKlein left23:41
lightcap joined23:43
lightcap left23:44
EruditeHermit left23:46
lightcap joined23:46
wshimmy left23:46
angerman left23:47
d0k left23:48
bugfux left23:51
jjuran joined23:53
lightcap left23:53
lightcap joined23:53
shruggar left23:54
lightcap left23:56
iaj left23:57
iaj joined23:59
cloudhead joined23:59

Logs Search ←Prev date Next date→ Channels Documentation