IRCloggy #git 2009-05-23

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-05-23

aslakhellesoy left00:01
agib joined00:03
memiux joined00:05
Dashkal joined00:06
MisterN_ joined00:12
LiamH left00:13
Yuuhi left00:13
jefftriplettjefftriplett-afk00:15
d0k left00:17
jtaby joined00:18
jtaby Hey, I have two branches. When trying to checkout into another, I get the following message:00:18
error: pathspec 'jtaby/master' did not match any file(s) known to git.00:19
qrush joined00:20
knitt1 joined00:20
Shadow_Master left00:22
hoohah joined00:22
sitaram full command please...00:22
jtaby left00:23
hoohah hello. I'm trying to wrap my head around tagging. Is it to be used when new features are implemented, and I would like to categorize all commits prior to a push to this one tag?00:23
djgera Hi, I can do a "reset --hard" to last commit that are pushed in the origin (github) ?00:23
sitaram djgera: git reset --hard origin/yourbranchname00:24
djgera i will try... one second...00:24
sitaram djgera: (assuming your current branch is "yourbranchname"00:24
j416 left00:24
djgera mm i need to do a hard reset in my local branch first?00:25
sitaram djgera: are you trying to rollback the commit that already went to GH?00:26
djgera yes00:26
sitaram aaah, ok00:26
where is your local branch with respect to the origin?00:27
djgera but, without doing a revert, so for no logs keep in github00:27
paulboone left00:27
Shadow_Master joined00:27
djgera my branch (master) is now at the same point that in origin00:27
sitaram djgera: the basic idea is you get your local branch to look like what you want, then "git push -f origin"00:27
hoohah: a tag is just a label or a sticky note on a commit00:28
djgera ok, then do a hard reset in mi master, then, put this command.00:28
i will try00:28
sitaram djgera: yes00:28
MisterN left00:29
fridim_ left00:30
poseidon left00:30
Shadow_Master left00:31
Shadow_Master joined00:31
Shadow_Master left00:31
djgera awesome!!, many thanks sitaram ! i just do only a --soft on my local branch, then force push00:31
arrenlex joined00:33
arrenlex When you fetch stuff, where does it go?00:33
hoohah sitaram: okay thanks00:36
hoohah left00:36
knittl left00:36
plasticine_ joined00:37
Dashkal left00:38
sitaram arrenlex: if you fetch from a named remote, it all goes to branches called remotes/name_of_remote/heads/whatever00:41
plasticine left00:42
sitaram otherwise FETCH_HEAD, I think00:42
arrenlex sitaram: What is a 'named remote'? You mean one with a definition in my ~/.git/config ?00:43
sitaram: What exactly is FETCH_HEAD? Is it a branch?00:43
zuez heh what's the best way to revert one file to a previous commit?00:43
meaning, it's already committed, I just want to check it out one commit previous to HEAD00:43
norc arrenlex: It is my understanding that FETCH_HEAD is used as a buffer for inspection before you merge the requested branch00:45
arrenlex norc: For whose inspection?00:45
Flathead joined00:45
norc arrenlex: your own00:45
arrenlex norc: How do I inspect it without merging it?00:45
norc arrenlex: git fetch git://foo/bar.git blah; git log -o ..FETCH_HEAD00:45
sitaram arrenlex: git checkout -b inspect-me FETCH_HEAD00:46
norc arrenlex: and then just "git merge FETCH_HEAD"00:46
sitaram arrenlex: or gitk FETCH_HEAD00:46
arrenlex sitaram: Ah, I see. Thank you. If I don't specify a branch, it pulls master?00:46
carrus85 left00:47
norc arrenlex: Oh, and I think I may have misexpressed myself. FETCH_HEAD itself contains rather information and is used to reference the branch you just pulled.00:47
arrenlex norc: Is it the only way to reference the branch I fetched?00:47
sitaram arrenlex: not sure what it fetches by default; master sounds right00:48
norc arrenlex: Well, I suppose so. There are probably other ways I do not know about.00:49
arrenlex norc: Okay, thank you for the advice.00:49
sitaram: Thank you too!00:49
norc arrenlex: Ugh, this is not my day. Of course it is a reference to what you *fetched*00:50
A pull basically fetches and then merges.00:50
arrenlex norc: Alright. And when you push to a remote repository, where does it go on that repository?00:52
Does it go to master?00:52
Probably not, you might need to merge...00:52
norc arrenlex: You can push to master or any branch00:53
arrenlex norc: What happens if there would have to be a merge?00:54
sitaram left00:55
knitt1 left00:56
MisterN_ left00:56
hachi is there any way I can modify the behavior of an inbound ssh git connection, so I can have it find a users git directory automatically?00:58
and by automatically I mean, in a configurable way on the server side?00:58
IE00:58
is there any way to get /~hachi/ to expand to something other than $HOME ?00:59
norc arrenlex: I do not understand00:59
hachi: I think the first problem could be better dealt with in #ssh, and the second one in #bash probably01:00
although I think that #ssh would be the right place01:00
arrenlex norc: Suppose Fred and Bob made conflicting changes in their separate repositories. Fred pushes up to master. Then Bob tries to push up to master. What happens?01:00
norc: By pushes up to master, I mean origin.01:00
hachi I'm pretty sure the git client is expanding /~hachi/....01:00
it doesn't say the path is subject to shell expansion... just this one case that looks like shell expansion01:01
Murr joined01:01
ia left01:02
ia joined01:03
gb|work left01:04
naeu left01:04
qhoxie left01:04
ben_h joined01:05
melvinram joined01:05
solydzajs joined01:05
solydzajs left01:07
releod joined01:07
norc arrenlex: Uhm, good question.01:10
arrenlex: My best guess is that the second user has to rebase, fix the conflict and then push01:11
arrenlex: like you push, it fails. you pull or fetch and rebase, update your patch and push again01:12
willb1 left01:14
jchris joined01:14
willb1 joined01:15
davi How to git push a commit which is not in the master branch?01:16
madewokherd git push nameofremote nameoflocalbranch:nameofremotebranch01:18
markelikalderon left01:18
AAA_awright joined01:19
marvil07 left01:20
Arafangion left01:20
davi madewokherd, So, if the remote branch is not created I must create it first before execute that command? Is not the remote branch created automatically if it is the first time that something is committed to a branch with such name?01:21
arrenlex norc: Ah, you're right. em@sam:/tmp/bob$ git push origin master01:22
To /tmp/bob/../origin/01:22
! [rejected] master -> master (non-fast forward)01:22
error: failed to push some refs to '/tmp/bob/../origin/'01:22
madewokherd davi: I'm not sure; that might have changed recently01:22
flaguy48 left01:23
davi I am going to try if the remote branch is automatically created, thanks MadCoder01:23
thanks madewokherd01:23
madewokherd it is or used to be that on the initial push to an empty repository you'd have to do master:refs/heads/master01:23
davi It is not empty repo, It has a master branch01:23
but I want to push to the stable-001 branch which I have01:24
created in my local copy, and01:24
committed just its first patch01:24
The stable-001 branch is not yet in the remote repo.01:24
I am going to try git push stable-001 to see if the new branch is created in the remote repo01:25
$ git push stable-00101:25
fatal: 'stable-001': unable to chdir or not a git archive01:25
:)01:25
Arrowmaster you need to add the remote01:26
git push origin stable-00101:26
dansan|afkdan_san01:28
cpg|biabcpg01:28
davi thanks Arrowmaster01:29
It is great with thing works :)01:30
rettub_ left01:30
rettub_ joined01:31
mp_ left01:32
sgrimm joined01:36
mbroeker left01:38
willb1 left01:42
dt_101 left01:42
willb1 joined01:43
hpoydar joined01:44
summerbug joined01:44
parasti left01:45
arrenlex left01:45
dreiss left01:45
jefftriplett-afkjefftriplett01:47
ben_h left01:49
djgera left01:51
mike_m joined01:52
aziz left01:53
norc left01:53
eletuchy left01:56
jefftriplettjefftriplett-afk01:56
romao left02:00
kelnos|laptop left02:01
lois[pac] left02:04
Chani say I create several repositories. possibly large ones. imported from svn. if, someday, months or years down the road, I decide that one of the subdirs in one of the repositories really belongs in one of the *other* repositories, can I move it over with all its history?02:04
sebleier|awaysebleier02:05
offby1 sure02:05
not sure _how_ exactly :)02:05
Chani offby1: but you're sure it's prossible?02:05
git doesn't seem to like dealing with only part of a repo02:07
offby1 oh oh02:07
I suspect you'd want "git-filter-branch"02:07
Chani oh?02:07
offby1 I also suspect you'd import the _whole_ repository, then filter out the stuff you don't want.02:07
never done anything like that, so I dunno02:07
sekimura left02:09
Chani "WARNING! The rewritten history will have different object names for all the objects and will not converge with the original branch. You will not be able to easily push and distribute the rewritten branch on top of the original branch. Please do not use this command if you do not know the full implications, and avoid using it anyway, if a simple single commit would suffice to fix your problem.02:09
"02:09
heh. I suspect I wouldn't want that :)02:09
maybe clone the repo, delet all the other stuff, mv the folder to be kept up to the root, delete the folders it was in, commit all that and then somehow import *that* into the other repo02:10
danielnewman joined02:12
hagna joined02:16
hagna how do I get a remote branch?02:16
eletuchy joined02:18
ChanSevr joined02:20
cytrinox joined02:20
Chani ohh, I see how filter-branch might be useful, now02:21
offby1 hagna: by cloning or fetching02:22
by whining and kvetching02:23
hagna offby1: so not git checkout -b newbranch origin/newbranch ?02:24
offby1 hagna: well, that assumes you've already got origin/newbranch02:24
Murr left02:24
offby1 what you just said is how you make a local branch that tracks the remote branch.02:24
ChanSevrchansevr|watchin02:26
donri left02:27
hagna offby1: yes I stick with the first question02:30
hmmm git fetch origin/newbranch says unable to chdir or not a git archive02:33
hpoydar left02:33
offby1 you need to invoke "git fetch" properly.02:34
cYmen joined02:34
offby1 what does "git remote" say?02:34
hagna mybox02:35
it's the remote alias02:35
offby1 and what does "git remote show mybox" say?02:35
cytrinox_ left02:36
hagna offby1: one of the branches that it says it's tracking is the one I want02:37
willb2 joined02:38
offby1 so try "git fetch mybox"02:39
or, check out that branch, and just do "git fetch".02:39
hagna when I git checkout the branch I get files in there that aren't supposed to be on that branch02:40
Radar left02:40
Radar joined02:41
offby1 *shrug*02:41
qhoxie joined02:41
offby1 the perhaps you need to remove them02:41
hagna fine could I start over and clone it then02:42
kef left02:42
hagna how do you specify a branch with clone?02:42
offby1 you don't -- you clone the whole repos02:43
cpgcpg|out|w|the|ki02:43
cYmen could somebody give me a quick explanation how to share code02:43
cpg|out|w|the|kicpg|biab02:44
cYmen what I want to do is a simple setup with two computers and the user on one having ssh access to the other02:44
is that clone or push or what do I want to use on the remote machine?02:44
I read the tutorial and can't figure this out02:44
sorry02:44
orafu left02:46
offby1 heh02:46
orafu joined02:46
offby1 I'd put the repository on one machine, then clone it on the other02:46
are there two users, or just one?02:46
cYmen two02:47
offby1 y'know it sounds complicated, but it might be easiest to have _three_ repository.02:47
repositories.02:47
cYmen yeah I wanted it that way02:47
offby1 One "bare" one, and the others clones of it.02:47
cYmen one master and a local checkout for me and a checkout for him02:47
offby1 The two of you communicate by pulling and pushing from that bare one. (It's OK to pull directly from each other, too)02:47
the thing is it's best to avoid _pushing_ to a non-bare repository.02:48
(It's not a disaster if you do, but it can get quite confusing)02:48
cYmen ok, maybe I should ask a different question first02:49
what's a clone/commit vs push/pull?02:49
offby1 well, those are four different terms.02:49
"clone" means to make a new repository that is more or less a copy of an existing one. You don't do that terribly often.02:50
kirillm left02:50
offby1 "commit" is how you make a change to a repository. You do it quite frequently: every time you've done some work that's worth saving.02:50
elliottcable left02:50
offby1 "push" means to send stuff from one repository to another -- typically to update the remote repo's version of a branch that both repositories have.02:50
"pull" means to get stuff from the remote repository, and to _merge_ it into the current branch.02:51
("pull" is not the exact opposite of "push", but "fetch" is)02:51
tjafk1 joined02:51
radostyle left02:53
willb1 left02:54
chocolate_jesus left02:54
ben_h joined02:54
cYmen hm...I think it works maybe :)02:56
I'll get back to you with further problems ;)02:56
thanks a lot!02:56
dt_101 joined02:56
JNRowe joined02:59
Radar left02:59
AkumaStreak joined03:01
Suraia joined03:05
qhoxie_ joined03:06
jed left03:07
radostyle joined03:08
tjafk left03:08
elliottcable joined03:08
hyperair joined03:11
altrux_ joined03:11
elliottcable left03:12
wsc left03:13
dt_101 left03:15
chansevr|watchinChanSevr03:15
jchris left03:17
wsc joined03:18
jfkw left03:18
AkumaStreak_ left03:19
ChanSevr left03:19
hagna left03:19
bharat joined03:20
elliottcable joined03:21
bharat does anybody here have experience setting up vendor branches for git? I'm attempting to migrate a mature project with vendor branches from svn to git and can't find an approach that will satisfy our needs03:22
altrux left03:25
ToxicFrog`` left03:25
qhoxie left03:26
offby1 I don't have any experience, but I assume you'd do it analogously to how svn does it03:27
beantmt left03:27
offby1 you make a branch that tracks the official releases, and every now and then you get a new tarball and plop it on top of the old one, and commit that ...03:27
bharat that works for keeping the vendor branch up to date03:28
Chani I don't suppose there's a way for an svn external to actually point to a git repo? :/03:28
bharat but the problem comes when I try to merge the vendor code into our main repo03:28
dreiss joined03:28
offby1 and you have another branch that includes your patches, and you merge from the official releases into it03:28
bharat: what's the problem?03:28
madewokherd merging the vendor code into the main branch sounds like a bad idea03:28
Chani just discovered that all kde's documentation is kept as svn externals for easy access by translators...03:28
bharat ok hang on let me provide you with a full use case03:28
we have a repo (gallery3) that contains a subdir (gallery3/kohana) that comes from an upstream vendor03:29
http://github.com/bharat/gallery3/tree/bd88bba94dbeae136b570f0ece60c08c04f514b6/kohana03:29
our vendor branch for it is here: http://github.com/bharat/gallery3-vendor/tree/2ba65ca8bdb2bb9f45089d4aefda9c0cb6c69554/kohana03:29
we regularly get snapshots from the kohana folks and put them into the "upstream" dir03:30
but that's not exactly the way the code needs to be formed to put it into our project, so we massage it into a new form in the "modified" dir03:30
so that's a commit like this: http://github.com/bharat/gallery3-vendor/commit/2ba65ca8bdb2bb9f45089d4aefda9c0cb6c6955403:30
now with svn, I can just merge that commit from gallery3/vendor/kohana/modified into gallery3/trunk/kohana03:31
but git doesn't appear to allow me to merge part of one repo into part of another repo03:31
it wants me to do all these merges at the whole-repo level03:31
offby1 er, yeah03:31
what's wrong with that? Are there conflicts?03:32
bharat oh absolutely03:32
offby1 ah03:32
bharat we have about 10 different vendors03:32
many of them require some amount of reformatting before they fit into our hierarchy properly03:32
memiux left03:32
bharat our vendor hierarchy: http://github.com/bharat/gallery3-vendor/tree/master03:32
with svn, we can turn vendor tarballs into diffs, and apply the diffs to the right point in our code and svn tracks it all03:33
I would have thought that git could do this easily03:33
and plus, we make our own local modifications to the code which we then file upstream tickets for and resolve when we pull the latest code from the upstream vendor after they fix the ticket03:34
Arrowmaster theres a subtree merge strategy03:35
bharat plays with git-format-patch03:35
Arrowmaster "This is a modified recursive strategy. When merging trees A and B, if B corresponds to a subtree of A, B is first adjusted to match the tree structure of A, instead of reading the trees at the same level. This adjustment is also done to the common ancestor tree. "03:35
bharat I've been trying to use that with "git pull -s subtree"03:35
Arrowmaster no clue if that helps03:35
rkirti joined03:35
bharat but it tries to merge the entire vendor hierarchy03:35
madewokherd you might want to look into submodules..03:36
bharat I have..03:36
the problem with submodules is that we can't then make our own local modifications to the code03:36
we can only pull from the upstream version03:36
madewokherd huh?03:36
bharat theoretically we could make those changes entirely upstream in our vendor code03:36
I'll give you an example03:37
we get file foo.php from vendor/kohana/upstream and then we move it into vendor/kohana/modified/bar.php and we apply it to gallery3/trunk/kohana/bar.php03:37
madewokherd what do the /'s mean here, are these paths?03:38
bharat but there's a bug, so we fix it in gallery3/trunk/kohana/bar.php and we file a ticket. they fix the ticket03:38
those are paths based on our svn hierarchy03:38
we carry the fix in our trunk because we need to use it. but eventually it shows up in the upstream code, which then gets applied and merged over and reconciled03:39
almostautomated LMAO, totally off-topic:: License Limitation for Coom Free License => 2. Is not allowed to use the CFL products to any life destruction purpose. This means that CFL products can not be used as products or as parts of other products for any activity which has as effect the destruction of life in any form of that life.03:39
JNRowe left03:40
JNRowe joined03:40
orafu left03:41
madewokherd bharat: so you keep another kohana repository with your changes, what's the problem?03:41
smashwilson left03:41
orafu joined03:42
bharat I don't know how to explain it any better than I just did03:42
madewokherd do it by not referring to svn03:42
I have no idea how svn works03:42
bharat we need to merge part of one repository into part of another repository03:42
madewokherd so you need one repository that has both of those as remotes03:43
bharat ugh03:44
that's going to suck for 10+ different vendor libraries03:44
oh well. don't worry about it. from a lot of searhcing, it appears that nobody has solved this for git yet03:44
I was hoping against hope that somebody here had direct experience with it03:44
madewokherd yeah, we pretty much only have 2 of those libraries at work and I only deal with one of them03:45
almostautomated bharat: have you looked at submodules and super project setups ?03:45
madewokherd that makes it an objectively different case that I have no direct experience with03:45
AAA_awright left03:46
bharat almostautomated: yes, I've been playing with submodules but I don't think they're going to work03:46
almostautomated ah, well; worth a shot :)03:47
bharat :-)03:47
http://stackoverflow.com/questions/769786/vendor-branches-in-git is a pretty good description of the problem03:47
JNRowe left03:49
tchan left03:49
tchan joined03:50
Arafangion joined03:53
almostautomated bharat: you said:: 'the problem with submodules is that we can't then make our own local modifications to the code'03:54
up_the_irons left03:54
AAA_awright joined03:55
bharat yes. the docs say "submodules are meant for different projects you would like to make part of your source tree, while the history of the two projects still stays completely independent and you cannot modify the contents of the submodule from within the main project."03:55
http://www.kernel.org/pub/software/scm/git/docs/git-submodule.html03:55
girishr joined03:55
offby1 _from within_03:55
bharat am I misunderstanding how that works?03:55
offby1 try 'em!03:56
cpg|biabcpg03:56
offby1 it just means you have to "cd" into the subproject, and commit ther03:56
there03:56
bharat can submodules operate on part of a repo?03:57
ie I have a gallery3 repo that has paths "gallery3/kohana" and I have a gallery3-vendor repo that has paths "kohana/modified" (as well as many other sets of vendor code)03:57
I'll experiment with that to see03:57
Arafangion bharat: It means that, eg, you could have your project, and then have a super-project that includes all of the dependencies.03:58
bharat: For example, freetype.03:58
almostautomated I'd imaging two repo's would be the ideal solution; a superproject of pristine sources, and one of custom sources and your project03:58
cYmen how do I fix a "your branch is ahead by 1 commit"? :/03:58
almostautomated s/imaging/inagine03:58
err imagine03:59
bharat I'll give that a shot. thanks for the advice03:59
Sho_ left04:01
danielnewman left04:02
Alinermedia left04:02
quoin left04:03
memiux joined04:05
Sho_ joined04:05
squentin_ left04:05
bobmcw_ joined04:10
bobmcw left04:10
up_the_irons joined04:11
bharat left04:11
Suraia left04:17
summerbug_ joined04:17
sebleiersebleier|away04:19
scarabx joined04:20
drewr left04:22
Sho_ left04:22
melvinram left04:28
eletuchy left04:34
summerbug left04:34
eletuchy joined04:35
toxx__ joined04:43
dan_san left04:46
sdiz joined04:46
frfr|04:49
tvw joined04:51
stuffcorpse left04:52
stuffcorpse joined04:53
toxx_ left04:59
curvature left05:00
curvature joined05:00
eno__ joined05:08
rkirti left05:08
gruff joined05:11
gruff What git gui could you recommend. I want UI brilliance no gnarly gnuified cryptical shit05:12
...like gitk05:12
sdizsdiz-afk05:14
[AndrewR] joined05:15
[AndrewR] hey, I'm trying to revert a commit that added some files, but they've since been modified.. but I want to just get rid of them05:16
but they conflicted, so git is expecting me to git add them05:16
how can I totally wipe them?05:16
k0001 left05:18
eno left05:19
eno__eno05:19
henr_k [AndrewR]: unless you've pushed the commits elsewhere, you can do a git filter-branch05:20
[AndrewR] yeah, they're all pushed already, unfortunately05:20
basically this guy made two commits, the second one modified files in the first (and the first added a bunch of files)05:21
and I want to wipe both commits so there's no trace05:21
but there's been a bunch of dev since then05:21
so any file that conflicts I want to just tell git to delete the file, but to resolve a conflict you have to git add?05:22
henr_k well, when you do a git filter-branch, you're going to change all the id's after that first commit, so you're going to break a lot of repos05:22
sergiodj left05:22
sergiodj joined05:22
[AndrewR] I'm fine with making a new commit that reverses those two05:22
henr_k git rm filename ?05:23
you will still have the content in the repo - is that OK?05:23
davidad joined05:23
kef joined05:25
wsc left05:27
reprore joined05:27
memiux left05:30
sitaram joined05:40
joshthecoderjoshthecoder_afk05:40
plasticine_ left05:40
altrux_ left05:40
altrux joined05:41
scientes left05:41
Bass10 left05:42
[AndrewR] turns out once they're added I can git rm them05:46
Swimming_Bird joined05:47
sea-gull joined05:48
reprore left05:48
reprore joined05:48
fujin joined05:49
reprore__ joined05:50
sergiodj left05:54
sako joined05:57
sako hey guys i wanna start using git to track my development.. is this a good setup: http://joemaller.com/2008/11/25/a-web-focused-git-workflow/05:57
gonna be for web development05:58
wondering if this is the best way and what advantages this method has05:59
repror___ joined06:01
radostyle left06:01
reprore left06:01
sako anyone?06:02
summerbug_ left06:03
DavidKlein joined06:04
Arrowmaster sako: it doesnt look perfect but i dont see anything blatently wrong06:05
sako Arrowmaster: is there a better solution for using git for websites?06:07
right now i just have a git repo of the live folder06:07
and i work like that commiting changes..06:07
whats the advantage of the method above?06:07
Arrowmaster i know of some more advanced solutions06:07
summerbug joined06:08
Arrowmaster i dont know about better, i dont do web development06:08
runasand sako: the advantages of a hub and a prime is that you get to test stuff better before going live with it06:08
sako: it's better than just pushing right to the live site, I guess. Depends on the types of changes you do.06:08
Arrowmaster in that setup anything pushed to 'hub' automatically goes live on 'prime'06:08
runasand ah ok, I got it wrong then :o06:09
shit happens when you read techincal stuff at 8am ;p06:09
sako hmm actually i want a setup like that runasand06:10
i wanna be able to test before i go live.. so i would just skip the hook part right?06:10
in that example06:10
Arrowmaster what kinda web dev are you doing?06:10
sako its an e-commerce site06:10
php/mysql06:10
porcnick joined06:11
scarabx left06:11
g3d joined06:15
runasand Arrowmaster: what's the difference between pushing directly to prime and going through hub?06:16
Arrowmaster sako: ive never used and have zero experience with it but i know theres some stuff like that but much more advanced, one is Capistrano for example and it could be overkill for you since its got stuff for dependancies and such (tends to be used by rails people i think)06:16
you could probably create two vhosts in your webserver and have a live and testing deployment06:16
sako yea i was thinking that..06:16
runasand sako: but to answer your question, yeah, just skipping the hook part would do it. I think :)06:17
sako so Arrowmaster do you know what the advantage of having that hub is??06:17
doesnt make sense to me why its necessary06:17
Arrowmaster runasand: well pushing directly to prime wouldnt update the working directory, usually the solution is to use a post-update hook to update the working directory when somebody pushes instead of having a post-update hook just run a git pull in another repo06:17
sako: its not necessary, most people would probably use a post-update hook to update the working directory than jump through hoops with two repos and have a hook in one repo run git pull in another repo06:18
runasand ah :)06:18
reprore__ left06:19
Arrowmaster sako: do you plan to actually do any editing on the server and commiting to the repo or will everything come in via push?06:20
sako well i clone the git repo on my laptop06:21
and i do the editing then do git commit -a06:21
Arrowmaster a simpler way would be to skip the adding of a remote to the prime and just make a post-update hook that runs `git reset --hard master`06:22
cYmen how do I debug the remote host hanging unexpectedly?06:22
could it be because i'm trying to clone an empty rep?06:22
Arrowmaster anytime you push to the repo it will force the working dir to be updated to master06:23
cYmen: what version of git? client and server06:23
seangrove joined06:23
cYmen Arrowmaster: i didn't install an explicit server06:23
Arrowmaster if you dont know the server its fine06:23
cYmen the machine i'm cloning from is 1.6.0.206:24
tvw left06:24
Arrowmaster i mean from where you are trying to pull from06:24
ok06:24
cYmen the machine cloning is 1.6.306:24
Arrowmaster empty repo shouldnt effect it06:24
cYmen uh nice...there's an xkcd comic about your use of effect ;)06:25
sako sorry im trying to understand this.. what does git reset --hard master do?06:25
cYmen anyway are there logfiles or something I could check?06:25
sako so i did git init , git add . , git commit -a on the server06:25
then i went to my laptop and did git clone .git06:26
Arrowmaster unless its managed by something like gitosis, i know a site that you cant clone empty repos from because the repos dont actually exist until they are pushed to06:26
sako and i make my changes on the lapto p and i do git commit -a when done..06:26
is that right>06:26
Arrowmaster sako: `git reset --hard master` just makes it update the index and working tree to master and forget anything else06:26
sako: yeah06:27
sitaram http://xkcd.com/326/06:27
altrux left06:33
eletuchy left06:34
eletuchy joined06:34
willb2 left06:38
willb2 joined06:38
Nugget Grammar Police: to serve and correct06:43
tango_ left06:43
gruff is there a way to do a clean checkout?06:44
overriding any changes ive got in the currenct WC?06:45
angerman joined06:45
Chani gruff: git checkout doesn't do that?06:46
gruff the -f option seems to have done it for me06:46
joaovitor joined06:48
gruff god... git seems unstableish for me06:50
maybe im doing something wrong06:50
g3d gruff: git-clean might also help for untracked files06:50
tango_ joined06:50
repror___ left06:52
eletuchy left06:53
gruff fatal: pathspec 'src/main/java/com/<path....>/variations' did not match any files06:53
what does that mean?06:53
reprore_ joined06:53
doener left06:53
g3d gruff: that there is no such file06:53
doener joined06:53
gruff its on the disk anyway06:53
g3d so 'ls src/...(etc)' does return it?06:54
I mean find?06:54
gruff yeap06:54
g3d and you are in the right directory, the one containing the 'src' dir?06:55
reprore_ left06:55
gruff i get that error when trying to do a "git rm" on the "variations" dir06:55
reprore_ joined06:55
g3d well, variations is a dir not a file06:56
so you should use the -r option06:56
as the manual says06:56
struberg joined06:57
avaja joined06:58
gruff oh.. seems it was a file locking problem06:58
bobesponja left07:00
sergiodj joined07:01
reprore_ left07:08
|kukks| joined07:11
porcnick left07:14
wsc joined07:14
joaovitor left07:16
krawek__krawek07:19
gruff how does one revert the WC?07:22
summerbug left07:23
neoeinstein_ left07:23
cloudhead left07:25
Swimming_Bird left07:27
[AndrewR] left07:27
kukks left07:27
brizly joined07:28
gruff ahh reset07:30
brizly left07:30
ben_h_ joined07:30
brizly joined07:31
Modius_ left07:37
agile left07:37
krawek left07:37
jayallen left07:37
ph^ left07:37
PuffTheMagic left07:37
reaVer left07:37
CarlFK left07:37
piroko left07:37
Nugget left07:37
tro left07:37
nomadium left07:37
Garoth left07:37
Rhonda left07:37
kelvie left07:37
ph8 left07:37
Gitbot left07:37
orospakr left07:37
krawek_ joined07:38
Modius_ joined07:38
agile joined07:38
krawek joined07:38
jayallen joined07:38
ph^ joined07:38
PuffTheMagic joined07:38
reaVer joined07:38
CarlFK joined07:38
piroko joined07:38
Nugget joined07:38
ph8 joined07:38
nomadium joined07:38
kelvie joined07:38
Garoth joined07:38
orospakr joined07:38
tro joined07:38
Rhonda joined07:38
Gitbot joined07:38
krawek left07:38
ben_h_ left07:41
jony joined07:42
wgaffa joined07:43
kate21de joined07:45
sergiodj left07:45
kumbayo joined07:45
wgaffa I have a submodule directory (restful_authentication) and when I do a git pull from another git repository and later do a git submodule update it reverts back to the "old" submodule? How can I tell submodule to not revert back to the old repository?07:46
avaja left07:46
ben_h left07:47
Radar joined07:49
jchris joined07:58
brizly left07:58
wsc left07:59
glommer left08:01
drizzd joined08:02
hyperair left08:08
bnjmn--_ joined08:08
bnjmn-- left08:08
struberg left08:12
robinr left08:13
khmarbaise joined08:14
AkumaStreak left08:15
psankar left08:18
jony left08:19
Tuomas joined08:20
priidu joined08:23
mtvee left08:24
xyz joined08:24
Weaselweb joined08:26
thiago_home joined08:27
davidad left08:28
Ademan so I ran git fetch /other/repos/thats/not/origin and it seemed to work, how can I now use that information in git merge ?08:29
abstrusething joined08:31
davidad joined08:33
wereHamster Ademan: git merge FETCH_HEAD08:33
Ademan wereHamster: really? huh, I was trying something similar, but having no luck, thanks, I'll give that a shot08:33
I definitely need to have a better *understanding* of what's going on, distinctions between tags and refs and what a remote is , a head etc08:34
sea-gull have anybody seen call graph for git?08:35
Ademan wereHamster: hrm, same issue as before: fatal: 'FETCH_HEAD' does not point to a commit does that mean my fetch failed silently?08:35
sr Ademan, http://book.git-scm.com/ :)08:36
wereHamster Ademan: did fetch print any output?08:36
Ademan wereHamster: none08:36
wereHamster usually it prints which heads it fetched (and where to)08:36
Ademan hrm, alright, if it helps the repos was a local directory08:37
thanks sr08:37
oh wow, I was thinking i'd end up 20 USD poorer, but no, awesome!08:37
kahmalo joined08:39
kahmalo What is a good way to replace a conflict resolution in .git/rr-cache?08:40
If I run git merge, and it finds and uses an old resolution, but I then notice the resolution is wrong and change the file and do git add and git commit, git doesn't seem to save the new resolution.08:41
omega Ademan: http://tom.preston-werner.com/2009/05/19/the-git-parable.html provides a good read to understand some of the concepts08:41
wsc joined08:41
Ademan thanks as well omega08:41
kahmalo So then I grepped for some keywords in rr-cache and removed the appropriate subdirectory. But is there some way that doesn't require grepping?08:42
fanf joined08:43
kahmalo There is git rerere clear, but it looks a bit too effective.08:44
jceb joined08:46
Octalot left08:47
kahmalo The name of the subdirectory in rr-cache appears to be a hash of only the conflicts, not the rest of the file. I don't see any easy way to ask git what the hash is for a given conflicted file, so that I could remove the subdirectory.08:50
hm, in fact cmd_rerere() for "git rerere clear" does "if (!has_rerere_resolution(name)) unlink_rr_item(name);", so I think it wouldn't even clear the resolutions that have already been saved.08:51
the_zeno joined08:54
aslakhellesoy joined09:01
sitaram left09:06
aslakhellesoy left09:09
cpg left09:14
cpg joined09:14
radarek joined09:18
hyperair joined09:20
aslakhellesoy joined09:20
reprore joined09:21
cpg left09:24
priidu left09:27
eb_ left09:28
eb_ joined09:28
fanf left09:31
kuadrosx left09:34
krawek_ left09:38
parasti joined09:39
knittl joined09:44
legnaleurc joined09:45
d0k joined09:50
sitaram joined09:51
CardinalNumber joined09:51
hoohah joined09:54
hoohah hello. is it possible to keep .git/hooks/post-commit hook itself under version control?09:54
I get fatal: This operation must be run in a work tree09:54
Ilari hoohah: Nothing under .git can be added.09:54
hoohah: Put a copy into working tree.09:55
hoohah Ilari: do you know a workaround for that?09:55
hm okay09:55
perhaps i should just cat > to the file in my shells login script?09:56
Aides symbolic link?09:56
Ilari hoohah: Hooks could be dangerous if clone transferred them.09:56
Aides: If you put symbolic link to it, it gets stored as symbolic link.09:56
hoohah Ilari: the hook itself only does a crontab -l > <fileundercontrol>09:56
Aides Ilari, no, i mean put a symbolic link in .git/hooks/, the hook itself in the tree09:56
hoohah something i had to address when crontab file was outside wrking tree09:56
Ilari hoohah: Still it could do 'rm -rf /' (or something even more nasty).09:57
Aides: That might work. But its quite unsafe...09:57
hoohah clones will have ,git/hooks/post-commit anyway, right?09:58
or will only the samples be supplied?09:58
Ilari hoohah: Clones have hooks initialized from local templates, IIRC.09:59
hoohah Ilari: local as in root dirs? or user dir?10:00
Ilari hoohah: The templates are part of git installation.10:01
hoohah: So most of the time they come from somewhere under '/usr', but if you use git installed to $HOME, then those templates are stored somewhere under $HOME.10:03
hoohah true10:04
Aides: your symlink suggestion.. won't be a deployable option, right?10:05
as it's still under .git10:05
Aides yeah10:05
i thought you needed a version control for it, not to be cloneable10:05
Ilari hoohah: Anyway, hooks being cloned would be extremely unsafe.10:06
ProperNoun left10:06
abstrusething left10:09
reprore left10:13
Ademan is it possible to make git track empty directories?10:15
hoohah thanks10:15
hoohah left10:15
kahmalo Ademan: IIRC the standard workaround is to put an empty .gitignore there10:15
ProperNoun joined10:16
Ademan kahmalo: thanks, is that just a git shortcomming?10:16
Murr joined10:16
kahmalo http://git.or.cz/gitwiki/GitFaq#head-1fbd4a018d45259c197b169e87dafce2a3c6b5f910:16
Murr left10:16
kahmalo tracking of truly empty directories been discussed, but it was not clear what should then happen in some merge or cherry-pick or revert situations10:17
Ademan kahmalo: ah, so it's more of a design decision than anything else?10:21
Ilari The way I would do it (unfortunately this way has backwards compatiblity problems), is to set sticky bit in directory to mean "manually tracked". Such directories are not autoremoved when becoming empty and don't need any files under them to be trackable. Then handle the +t bit on dirs like +x bit on files.10:21
memiux joined10:21
kahmalo Ilari: do you mean the sticky bit in the tree objects in Git, not in the directories in the working tree?10:22
Ilari kahmalo: Tree objects.10:22
xorg62 joined10:23
xorg62 hi :)10:23
Ilari The index format would also need to be modified so it could store directory entries.10:23
The problem one runs with current versions is that git tree-to-index conversion just plain ignores mode bits in type 4 (Directory) entries.10:24
g3d left10:24
cemerick joined10:25
CardinalNumber left10:25
Ilari And as result, the written-back trees would convert it to ordinary (auto-tracked) directory entry (or just strip it off entierely if its empty).10:25
kahmalo sounds like you'd need a multi-year transition plan10:26
Fullmoon_ joined10:26
Modius_ left10:28
Modius joined10:28
Ilari Submodules could be added in one X.Y.Z release because unknown entry types are errors (submodules are type 14, directories type 4, regular files type 8 and symlinks type 10).10:29
Maybe define type 20 (outside the normal valid type range which goes up to 15) for such entries. Should definitely cause tree reading to blow up...10:32
plasticine joined10:32
Ilari Fun: I told --cacheinfo to add mode 240000 entry. It added mode 160000 entry...10:35
chris2 joined10:36
thiago_home there are more bits left10:36
Fullmoon__ joined10:36
thiago_home besides, this is not a set of flags10:36
Ecco left10:38
khmarbaise left10:39
sea-gull Ilari: where can I read more about index format? I can't understand why gitlink is needed?10:39
memiux left10:40
Ilari Except that mode 240000 (type 20) entry doesn't make it blow up enough.10:40
sea-gull: gitlink is another name for submodule.10:40
PuffTheMagic_ joined10:40
CardinalNumber joined10:41
ProperNoun left10:41
sea-gull Ilari: Linus says: it's a directory link.10:42
Ilari: but I don't understand why it's needed10:42
Ilari sea-gull: Entries of that type store the revision submodule is at.10:42
Trying to add mode 150000 entries results mode 100644...10:43
Fullmoon left10:43
reprore joined10:44
PuffTheMagic left10:45
drizzd gitlinks are mode 16000010:46
g3d joined10:48
drizzd which is not a filetype currently in use AFAICS10:48
Ilari Eww... It seems that invalid entry types don't currently cause git to blow up. I tried with mode 13, which is definitely invalid.10:49
drizzd what does the file system say about that?10:50
Fullmoon_ left10:51
toxx__ kahmalo: the rr-cache problem with old wrong merges is also of interest to me. did you find any solution?10:52
hyperair left10:52
gruff left10:52
Ilari drizzd: Apparently checking it out, git removes it from working tree. Index considers it to be regular file.10:53
sea-gull Ilari: what does comment "more" mean?10:54
wgaffa left10:54
drizzd odd. I wonder if one could cause something nasty by tampering with a repo like that10:54
Ilari drizzd: Tree entry: "150000 blob 543a4f23aea1b9c603e40954b2b07d080f648440 foog", index entry: "100644 543a4f23aea1b9c603e40954b2b07d080f648440 0 foog"10:54
sea-gull: "more"?10:54
ProperNoun joined10:55
sea-gull Ilari: it's after -> char name[FLEX_ARRAY] /* more */10:55
Ilari sea-gull: FLEX_ARRAY is presumably 1. That comment means that more space can be allocated for the name than FLEX_ARRAY.10:56
Fun message from 'git fsck --full': "broken link from blob unknown".10:57
And it doesn't complain about mode 240000.10:57
kahmalo toxx__: so far, grepping seems the easiest way.10:59
toxx__ kahmalo: mkay... thanks :)10:59
legnaleurc left11:00
Ilari The reason that message is odd is because blobs can't be sources of references.11:00
drizzd Ilari: what you're seeing probably happens because of create_ce_mode. If it's not a symlink, a directory or a gitlink, it assumes it's a regular file11:02
sitaram left11:04
aziz joined11:04
DrFrasierCrane joined11:11
jony joined11:12
CardinalNumber left11:16
doener Ilari: IIRC FLEX_ARRAY should be (empty) for C99, 0 as a GNU extension and 1 otherwise11:19
fridim_ joined11:19
MisterN joined11:23
ProperNoun left11:24
felipec joined11:25
mbroeker joined11:27
JEEB joined11:35
aslakhellesoy left11:37
girishr left11:38
gitte joined11:42
ashH left11:46
mbroeker left11:49
mithro joined11:51
Yuuhi joined11:55
cemerick left11:56
elpargo_ joined11:58
Flathead left12:02
elpargo left12:04
glommer joined12:09
cemerick joined12:13
kahmalo left12:15
reprore left12:16
farbing joined12:16
MisterN left12:17
flaguy48 joined12:17
MisterN joined12:18
memiux joined12:24
j416 joined12:25
Radar left12:25
cemerick left12:27
mbroeker joined12:28
igli joined12:30
igli what would be the use-case for a tracking branch which didn't autorebase?12:30
s/the/a12:31
hmm guess a user can always set that up themselves if they want it12:31
bremner_ joined12:32
moonese1 left12:33
patrikf joined12:37
farbing left12:38
Ilari igli: Firstly tracking is from time before git pull got its rebase mode IIRC. And in case the branch is published, rebasing it is really inapporiate.12:39
igli ah ok. yeah i get you on the published bit, thanks Ilari12:40
memiux left12:40
igli hmm makes things a bit more awkward if we can't rebase from upstream12:41
Ilari igli: If you have two remotes, all the more reason to be much more careful about using rebase.12:42
igli hehe fair enough :) I guess we'll soon see what happens (will test in closed env first)12:42
drewr joined12:42
Weiss two remotes + git-svn + rebase makes my head hurt (but it great for making yourself REALLY understand how git works..)12:43
ereslibre joined12:43
igli idk if i could cope with git-svn on top of all the other stuff ;)12:44
Ilari igli: If you use rebase in any sort of nonconventional ways, one needs to investigate "not fast forward" errors VERY carefully.12:44
igli ok will bear that in mind, thanks Ilari12:44
Ilari igli: Useful way is to first fetch (not pull!) the remote and then do 'gitk foo...bar/foo' (note the three dots).12:45
mike_m left12:45
igli hmm yeah i know to use fetch. i tend to use gitk --all and let it give me a diff12:46
for automation, tho, that sounds useful for git-diff12:47
Ilari igli: If you want to try to automatically detect errors, its more like log-type than diff-type operation.12:48
igli hmm i was just thinking to present to user first, but that'd be more useful, Ilari12:49
Ilari igli: --left-right to rev-list is useful for extracting the commits involved.12:50
igli takes notes12:50
Ilari igli: For auto-detection, grab all commits user has but remote doesn't and try to match them against commits remote has but user don't. There shouldn't be matches.12:52
igli ah that's lovely, Ilari :-)12:53
Ilari igli: commit messages matching is quite bad. Patch ids matching is even worse.12:54
igli hehe well it can't be worse than some of the situations i've had to awk my way out of ;) i should get some time to play with this properly later in the week12:54
rittyan joined12:55
jony left12:57
bx2 joined12:58
aziz left12:58
Ilari igli: Patch IDs matching would mean user is trying to push change that already exists in upstream, but with new commit ID.12:58
igli hmm yeah, idea is that they'd rebase from upstream themselves before pushing, Ilari. not sure how it'll work out in practise (was thinking might need to ensure upstream and origin/upstream are at same point)13:00
memiux joined13:00
Ilari igli: One problematic thing is that you can't alias push, it has no local-side hooks, and AFAIK non-fast-forwards are rejected on client side.13:01
__iron left13:01
igli hah13:01
__iron joined13:02
igli hmm well i'm happy to use shell scriptlets and aliases where appropriate. ultimately if others don't want to use same setup (assuming i get it working ok) then it's up to them13:02
Ilari igli: Rebasing from upstream is safe if 1) The branch current branch is rebased on is the only one what current branch is pushed to or 2) the branch isn't published.13:02
igli: Otherwise, one needs to be a lot more careful.13:03
igli ok.13:03
yeah i think we'll have to try and mandate 1) for people with rw13:03
jceb left13:03
Ilari igli: Also, rebasing branch that has been merged somewhere screws things up.13:04
jceb joined13:04
jceb left13:04
igli hmm not merged from, just if i merge in that branch? hmm13:05
Ilari igli: Isn't there local-side hook for rebasing?13:05
igli dunno yet lemme see13:06
Ilari igli: Yes, pre-rebase.13:06
ProperNoun joined13:06
igli yes13:06
interesting13:06
xorg62 is there an website applet to read git CSS and show it ?13:06
Ilari xorg62: 'git CSS'?13:07
igli ew perl. should be able to awkify that13:07
xorg62 RSS13:07
sorryu13:07
:)13:07
gitte left13:08
xorg62 or just new commit13:08
snitko joined13:09
igli man that's lovely functionality13:09
This sample hook safeguards topic branches that have been published from being rewound.13:10
bremner__ joined13:10
j416j416-test13:12
xorg62 Oo13:12
j416-testj41613:12
squentin joined13:14
sfwc left13:14
igli xorg62: http://git.or.cz/gitwiki/GitTips see Web13:16
sdiz-afksdiz13:16
xorg62 thanks13:17
igli and next time try google like i just did ;)13:17
yw13:17
xorg62 i already tried13:17
igli git rss feed howto # wfm13:17
have to admit we do ours via trac.13:19
Bass10 joined13:19
xorg62 Hmm13:21
not i what i meant13:21
igli left13:22
dodo_the_last left13:23
dodo_the_last joined13:26
sfwc joined13:27
j416Takechan_13:27
Takechan_Takechan13:27
Takechanj41613:27
bremner__ left13:28
kumbayo left13:29
radarek left13:33
bremner_ left13:33
sfwc left13:37
romao joined13:41
fujin left13:42
sfwc joined13:44
fujin joined13:45
icwiener joined13:45
Octalot joined13:46
Leemp joined13:55
MisterN left13:57
WinterWeaver joined13:58
markelikalderon joined14:01
thiago_home how can I find the date of reflog entries?14:01
Ilari thiago_home: 'git reflog show HEAD@{now}' shows it.14:02
sdizsdiz-afk14:03
jrmuizel joined14:04
thiago_home how can I make it show actual dates?14:05
cods left14:05
Ilari thiago_home: 'git log --walk-reflogs <something>'?14:11
markelikalderon left14:12
rudi_s joined14:13
tokkee left14:14
jrmuizel left14:14
bdiego joined14:15
thiago_home Ilari: no dates14:16
I have the dates of the commits, not the dates of the reflog14:16
jrmuizel joined14:17
name joined14:18
ereslibre_desk joined14:18
wirt joined14:21
laj_ joined14:21
altrux joined14:22
wirt left14:25
lhz joined14:26
laj left14:26
wirt joined14:26
wirt left14:26
sfwc left14:27
sfwc joined14:27
Serg_penguin joined14:29
Ilari thiago_home: For me, that displays dates like 'Date: Thu May 21 19:32:44 2009 +1000'. And timezone Kilo definitely doesn't look right for local time...14:29
thiago_home: Whereas that reflog show showed dates with timezones Bravo and Charlie, which are much more reasoable for local ops.14:30
thiago_home exactly14:30
it shows the date of the commit, not the date of the action that created the log entry14:31
I know it keeps the date in the log (your earlier command showed that)14:31
I can parse it out of .git/logs/refs/heads/branchname, but I was wondering if there's anything in Git already14:31
Ilari thiago_home: Probably no reliable way to parse it out using standard tools...14:32
thiago_home it's just a Unix time14:32
$ tail -1 .git/logs/refs/heads/last-make-install14:33
a697385cd7929976808072d218ac2abe92fc3537 eb04785f8ac2a033bd32594be2fb037541c5dbf9 Thiago Macieira [email@hidden.address] 1242909289 +0200 make install in /home/tmacieir/src/kde4/KDE/kdelibs14:33
Ilari thiago_home: Yeah, but no reliable programmatic way to get it into say ISO standard time using standard git tools.14:33
thiago_home ah, I see what you mean14:34
ereslibre left14:34
moonese joined14:38
scientes joined14:39
laj_laj14:42
aziz joined14:42
davi ciabot_git.pl e7b8da210fcf2f6462e87db5f474b23455dbba9c stable-00114:44
Executing ciabot_git.pl by hand works.14:44
However placing the below line in the post-commit hook create log of processes when I execute git-commit, which even hang.14:45
post-commit hook:14:45
/var/www/gnuherds-app/.git/hooks/post-commit $commit_sha1 $branch_name14:45
mintux joined14:45
dodo_the_last1 joined14:46
ereslibre_desk left14:47
elpargo joined14:47
knittl left14:49
Ilari davi: Usually you announce pushed commits not when they are made...14:50
sfwc left14:51
__iron left14:52
sfwc joined14:53
__iron joined14:55
jatt joined14:56
Ilari davi: Commit is purely local operation.14:56
jatt left14:56
jatt joined14:57
targion joined14:58
davi Ilari, So, what hook should I use?14:59
post-receive?14:59
Ilari davi: Probably.14:59
jatt I'm starting git-daemon but I do get:15:00
fatal: unable to allocate any listen sockets on host (null) port 941815:00
Ilari davi: And that gets invoked in repository that's pushed to.15:00
davi Is there a event directly associated to git-push?15:00
jatt why does git think my host is (null)?15:00
Ilari jatt: Git-daemon already running?15:00
jrmuizel left15:00
jatt Ilari: yes :), thanks that was it.15:00
Ilari jatt: (null) in practice means IP 0.15:00
davi Ilari, The problem is that Savannah does not allow it. That is because we have to do it in our local development repositories15:00
dodo_the_last left15:01
Ilari davi: There's no hook that runs on push on local side. Also, you can't alias push subcommand.15:01
snitko left15:01
davi Ilari, so you advise try with post-receive hook in the Savannah central repository?15:02
elpargo_ left15:02
seangrove left15:03
jrmuizel joined15:03
Ilari davi: I don't remember if push is bultin or not. If it is, it isn't even possible to replace the subcommand executable.15:03
davi: Yes, it is....15:04
davi: So if you need hook for local side, you need to hack the git source.15:04
davi Is it developed in C, Python?15:05
Ilari davi: That part is in C.15:05
davi I would just need be able to execute ciabot_git.pl with the sha1 and branch name15:05
cYmen I already asked last night but is there any way to debug a fatal: The remote end hung up unexpectedly? I have full access to the machine I'm cloning from I just don't know where to look or turn it on15:06
kosh[0] joined15:08
memiux_ joined15:08
Ilari davi: Or make your own command that invokes git push.15:08
kosh[0] hi, I am just about to pull my hair out here15:08
and I aint sure why this is happening, so I was wondering to ask someone before I do it :D15:08
Ilari cYmen: What protocol? git://, ssh://?15:08
cYmen: And note that git@foo is NOT git://15:09
kosh[0] if I git checkout master, it changes all the files to master, exactly the way I expected it15:09
I want to clone a branch from a git repo I have on a usb, which originally was a clone of this local git repo15:09
cYmen Ilari: ssh://15:10
kosh[0] but the local git repo doesnt have this branch, only the cloned usb repo does15:10
davi Ilari, I see, just an script which be able to get the sha1 and branch name and execute the ciabot_git.pl script with such parameter for each commit done. Such commits done will be the ones which are going to be pushed.15:10
Ilari cYmen: Any other errors?15:10
cYmen Ilari: just a warning that I'm cloning an empty repo15:11
kosh[0] now, whenever I create a new branch and check it out, I have a copy of what was in master at the time15:11
|kukks|kukks15:11
kosh[0] so I created a branch of master into original15:11
cYmen Ilari: is ssh://user@pc/path/to/file the right syntax? I'm suprised there's no colon in it.15:11
scarabx joined15:11
kosh[0] but I want to create original as a clone of a external repo's branch, not the local branch I currently have checked out15:11
Ilari davi: You should do it AFTER pushing them out.15:11
cYmen: Watch out, IIRC, that syntax is relative to ROOT directory (/).15:12
cilly joined15:12
parasti kosh[0]: man git-fetch15:12
Gitbot parasti: the git-fetch manpage can be found at http://git.or.cz/man/git-fetch15:12
kosh[0] aha, so for this we use git fetch, not git pull15:12
I was using git pul15:12
pull15:12
davi Ilari, But If I do it after how I know what I have pushed? If I do it before I just to do a look for the commit-already-done but not pushed?15:12
cYmen Ilari: I know that's how I wanted it and the repo is indeed empty I just created it with git init --bare15:12
memiux left15:12
parasti kosh[0]: git pull is git fetch + git merge15:13
kosh[0]: I guess you want the fetch part, but not merge15:13
xyz left15:13
Ilari davi: Look up the ranges before but do the actual notification after?15:14
kosh[0] parasti: ah okkk, thanks15:14
I didnt really get that until now15:14
thx15:14
davi Ilari, why do it after? To avoid problem if it fails?15:14
To avoid problem if git-push fails?15:14
Ilari davi: For instance for that reason. And the notifications only make sense after the commits are available.15:15
davi I see.15:15
Is there any example which I can look to know how to get such sha1 and branch names to committed but not pushed?, so I can pass the parameter to the Perl script?15:16
jrmuizel left15:16
Serg_penguin left15:16
Ilari davi: Parse the refspecs, update remote mirrors and use these two to find out what commits are pushed?15:17
cilly left15:18
soulinx joined15:21
cYmen Is there any way to get verbosity or debug output?15:21
soulinx hello..How can I go back to a previous revision in a repo?15:21
I want to revert all the repo to commit commit 2662783e9ca60f1bcba7d6efaba814da4764d8d215:23
Ilari soulinx: man git-reset15:23
davi Ilari, Thanks for the Hint. I think I am going to delay this hack15:23
Gitbot soulinx: the git-reset manpage can be found at http://git.or.cz/man/git-reset15:23
Ilari cYmen: The standard way of populating bare repo is by pushing to it.15:24
elpargo_ joined15:24
Ilari cYmen: Does 'git ls-remote ssh://user@pc/path/to/file' complain or just no output?15:25
soulinx hmm I am confused..What's the argument?git reset 2662783e9ca60f1bcba7d6efaba814da4764d8d2 ?15:26
Ilari soulinx: Also see what --soft/--mixed/--hard mean.15:26
altrux left15:28
cYmen Ilari: it does not complain; no output15:29
elpargo left15:30
Ilari cYmen: That's valid repo URL then. So make some commits (if you don't have already) and push them there.15:30
cYmen: One would think that cloning empty repo is easy thing. Its not. Its quite of an special case.15:32
cYmen: And ls-remote on empty repo produces no output.15:33
cYmen Ilari: apparently...because now that there is something in the repo the error message is gone15:33
rshann joined15:34
cemerick joined15:35
Ilari cYmen: Cloning repo that doesn't have on any commits on current/default branch is bad enough.15:35
cemerick left15:35
rshann Can anyone tell me if there is an ftp server for git repositories on Savannah?15:36
stuffcorpse left15:39
stuffcorpse joined15:39
aspotashev_ joined15:39
cYmen Ilari: then how am I supposed to set it up?15:41
Ilari cYmen: Create repo, push commits to it?15:41
cYmen What I wanted to do what just set up a quick repo where me and a friend could share some code15:42
Ilari: so I don't need to clone?15:42
memiux_memiux15:42
summerbug joined15:42
the_zeno left15:43
Ilari cYmen: Multi-user repos are bit more involved than single-user as permissions/access control need to be right.15:43
Arafangion left15:44
Ilari cYmen: And clone does stuff like setting up remotes, fetching remote and creating local branch for it and checking it out. Nothing special.15:45
rshann_ joined15:45
cYmen Ilari: branches I haven't completely figured out yet15:46
kosh[0]_ joined15:46
kosh[0]_ ok, I have read the git fetch man page15:47
hyperair joined15:48
Ilari cYmen: In git, pretty much the only thing git needs to know about a branch is its name and ID of newest commit on it.15:48
robinr joined15:48
kosh[0]_ but I can't figure out how to clone a remote branch into my local repo15:48
summerbug_ joined15:48
kosh[0]_ git fetch /Volumes/N85/Documents/affilaites.git original-branch doesnt work15:48
Ilari kosh[0]_: 'git fetch <URL> original-branch:save-branch-as'.15:49
kosh[0]_ I dont end up with a branch called original-branch (it's not actually original-branch) thats what I call it so you know what it is15:49
ahhhh ok15:49
__iron left15:50
stuffcorpse left15:50
__iron joined15:50
stuffcorpse joined15:50
Ilari kosh[0]_: push has that replicate left-side-to-right-side, but fetch doesn't.15:50
thiago_home it does15:51
oops, I see what you mean15:51
if you just name "original-branch", it saves as FETCH_HEAD15:51
kosh[0]_ yeah, it seems to fetch into the current branch, not create a new one15:52
summerbug left15:52
Weaselweb left15:53
kosh[0]_ AHA!!!15:53
ok, bloody hell, at the end15:53
precision left15:53
targion left15:53
precision joined15:54
aspotashev left15:55
rshann left15:57
kosh[0] left15:59
aslakhellesoy joined16:01
ericindc left16:02
glommer left16:05
WinterWeaver left16:07
bobmcw_ left16:10
bobmcw joined16:10
qhoxie_ left16:10
laj_ joined16:12
knittl joined16:14
laj left16:20
elpargo joined16:23
joshthecoder_afkjoshthecoder16:23
sfwc left16:24
sfwc joined16:25
knittl left16:26
cYmen is there a way for me to have a local patch that will be applied automatically but never checked in?16:27
I have a different include path then all the others... :)16:27
Ilari cYmen: Create local branch, make the change on it and don't push this branch (and don't merge it into any branch either)?16:29
thiago_home that's called "rebase"16:29
cYmen hm..anybody happen to have step-by-step instructions? :)16:29
thiago_home git pull --rebase16:29
and be careful about what you push16:30
gitte joined16:32
dodo_the_last1 left16:33
cYmen hm...I need to fix this first...so I checked it out and changed my include...the author changed something else now obviously I can't check it out again because it's not up-to-date...how do I fix this?16:33
Ilari cYmen: And be carefult what branch you do it on. And install git command completion and configure prompt to show the current branch.16:34
cYmen Ilari: yeah my zsh config already has that16:35
Ilari cYmen: 'git checkout -b localchanges', commit your changes, fetch (not pull!) and rebase your changes on top of new upstream.16:35
cYmen uh...what? :)16:36
dodo_the_last joined16:36
priidu joined16:36
cYmen ok...I'll try to figure out what that means ;)16:36
Ilari cYmen: First creates new branch and checks it out.16:36
cYmen thanks though!16:36
Ilari cYmen: The second step is to commit your changes for local system to new branch.16:36
Handcrafted joined16:36
Ilari cYmen: That branch is for local config changes ONLY. For changes that are applicable for others, use other branches.16:37
abstrusething joined16:38
elpargo_ left16:38
akitada joined16:39
Ilari cYmen: In git, the standard workflows tend to involve many branches.16:40
Handcrafted I don't know if this is a stupid question, but: I'm going to use Git for keeping track of some of my personal projects, I got it recommended by a friend. So now I'm reading the Git Community book and I got to the part on the difference between Git and SVN. I was confused when I read "Git does not use delta storage". Instead Git uses a snapshot of the tree.16:40
My question is, doesn't this mean that the size of the repository will increase a lot everytime I commit a change? If it has to store both the version before and after?16:40
hagna joined16:41
gitte thinks it is "who can write the longest lines" day again.16:41
g3d Handcrafted: this is a different thing. git can store things in both ways.16:41
cYmen Ilari: but I build from the localchanges branch then?16:41
Ilari cYmen: Yes.16:42
gitte Handcrafted: the thing is: after a "git gc" (which is also automatically started from time to time), you have a _more_ efficient packing than your common delta packing.16:42
hagna so what do you do when you can't pull in changes and you have to push them but the repo you push to is not bare. seems like I read you can push to a branch on that repo and then merge is that so?16:42
g3d Handcrafted: to switch to "delta based storage" use git-igc16:42
Ilari Handcrafted: On object layer, it uses snapshotting, but lower layers use delta compression.16:42
g3d s/git-igc/git-gc16:43
Handcrafted Okay, thanmks everyone16:43
:)16:43
gitte Handcrafted: would be nice if you provided a patch to the community book.16:43
Ilari hagna: Yes, push is safe as long as the branch isn't checked out.16:43
cYmen Ilari: ok, I did "git checkout -b localchanges", made the change, ran "git commit -a"...now what's next? my other branch was master...16:43
Handcrafted gitte: Might do that when I understand Git better :)16:43
gitte Handcrafted: don't wait too long, or you will no longer be able to do it.16:44
Handcrafted: and doing it would be a nice way of saying "thank you".16:44
Ilari cYmen: Maybe check out master, 'git pull --rebase', then come back to localchanges and 'git rebase master'.16:44
hagna Ilari: so i just need to create a branch on this remote machine's repo or can I even do that from the client I will push from?16:44
Handcrafted gitte: Okay, I'll be looking into this git-igc thingy16:45
cYmen Ilari: "maybe"?16:45
Ilari hagna: Push will create new branch if the target doesn't exist.16:45
g3d Handcrafted: sorry, I meant git-gc16:45
Ilari cYmen: Or 'git pull --rebase origin master'...16:46
Handcrafted g3d: thanks16:46
Ilari cYmen: Directly from localchanges.16:46
gitte Handcrafted: I said "git gc".16:46
cYmen Ilari: what is origin in this case?16:46
Ilari cYmen: Ah yeah, it probably isn't a clone, so do 'git remote add origin <URL>'.16:47
hagna Ilari: ok so I have a remote named foobar then I do git push foobar mybranch?16:47
Ilari hagna: No.16:47
hagna dang16:47
Ilari hagna: 'git push foobar mybranch:incoming' (name the branch on remote side 'incoming') or something like that.16:48
hagna ahh ok16:48
I dno't use the : much16:48
if the remote happens to be origin can I do git push mybranch:incoming?16:50
Ilari hagna: No.16:51
hagna: If you specify refspecs, then specifying target is required.16:51
knittl joined16:51
Ilari hagna: Target can only be omitted if one uses the default specs for default repository.16:51
hagna Ilari: uh oh error: dst refspec incoming does not match any existing ref on the remote and does not start with refs/.16:52
cYmen Ilari: isn't it strange that i'm supposed to work on the master branch but build the localchanges branch?16:53
markelikalderon joined16:53
stuffcorpse left16:53
Ilari hagna: Old version? Then maybe 'mybranch:refs/incoming' (that's not local branch 'incoming', but close enough).16:53
stuffcorpse joined16:54
Ilari hagna: local branch foo is refs/heads/foo.16:54
hagna old version on the local or the remote16:54
ahh it's the local16:54
remote is 1.5.3.716:54
davi left16:55
hagna local is 1.5.5.116:55
Ilari cYmen: The localchanges is supposed to hold the non-distributable local configuration changes.16:55
cYmen: While master contains the distributable stuff.16:55
voker57__ joined16:56
cYmen so what does git pull --rebase origin master do exaclty?16:56
Ilari cYmen: Rebasing localchanges on top of master ('git rebase master' on localchanges) will rebuild your local changes on top of updated master.16:56
cYmen I mean there's three branches involved now right? origin, master and localchanges16:56
Ilari cYmen: Fetch branch 'master' from remote 'origin' and rebase current branch on top of that.16:57
abstrusething left16:57
cYmen Ilari: I get a lot of 'trailing whitespace' messages....mean anything?16:57
And what do you do with a branch if you rebase it on top of another?16:58
Ilari cYmen: Probably just warnings by default. Trailing whitespace means there are whitespace characters on line between last-non-ws character and the LF that ends the line.16:59
cYmen: Rebase essentially tear down the branch and rebuilds it from patches.16:59
*tears16:59
cYmen so I should basically make a script now that checksout the localchanges branch now and builds?17:00
hagna Ilari: ! [remote rejected] masvbotlappy -> refs/incoming (funny refname)17:00
anyway I guess I'll make a patch and apply it on the remote17:01
Ilari hagna: 'mybranch:refs/heads/incoming' then.17:01
hagna: That's actual local branch 'incoming'.17:04
cYmen Ilari: now after all that rebasing do I still pull as usual?17:04
Ilari cYmen: Master is updated as usual, localchanges is updated by rebasing it on master.17:06
galderz joined17:07
cYmen so my build script should git checkout localchanges; git rebase master; ...build...; git checkout master ?17:07
akitada left17:07
Ilari cYmen: Except that rebase can fail due to conflicts...17:07
cYmen well I only added one include so chances are slim17:07
Ilari cYmen: Then It exits waiting for conflicts to be resolved.17:07
cYmen mh...can I get in trouble if I try to checkout again or build?17:08
the_zeno joined17:09
Ilari cYmen: Best to check wheither the rebase succeded so one can intervene before the rest of script does any damage by running stuff with faulty assumption (in practicular, running checkout <branch> while rebase is in progress is no-no).17:09
ashleyw joined17:10
ashleyw left17:10
cYmen hm...how would I check for that?17:11
does it return 1 or something?17:11
rudi_s left17:11
Ilari cYmen: At least the HEAD is detached on conflict exit.17:13
voker57_ left17:13
Ilari cYmen: Can be checked by using symboilic-ref to query HEAD.17:13
robomalo joined17:14
cYmen Ilari: hm...problem...I change something in master nothing major and would like to try it out by building but it won't let me change branches because I have changes -> am I supposed to commit everything not knowing if it even compiles?17:14
jefftriplett-afkjefftriplett17:14
ashleyw joined17:15
Ilari cYmen: Stash the changes?17:15
cYmen Ilari: mh...can I build from a stash? or what are you suggesting?17:16
sfwc left17:17
cYmen simple scenario: I change a parameter, want to try how it works...but my build script doesn't work because it's not allowed to change branches :)17:17
memiux left17:17
Ilari cYmen: Well, maybe you could commit directly on localchanges. But you need to cherry-pick (not merge!) the change to master.17:18
memiux joined17:18
Sho_ joined17:18
sergiodj joined17:18
cYmen any other way?17:18
moonese1 joined17:19
ericindc joined17:19
kumbayo joined17:19
Ilari cYmen: On next rebase, the localchanges branch should drop its version of the change and use the one from master instead.17:19
cYmen could I use a third branch for local editing?17:19
Ilari cYmen: The main limitiation is that you can't merge anything that contains those local config fixes to anything else or your changes "escape".17:20
fujin left17:20
tokkee joined17:21
ashleyw left17:21
cYmen I don't understnad17:21
oh I think I do now17:22
moonese left17:22
cYmen well that's why I suggest using that branch only for building17:22
and having one for local editing17:22
Ilari cYmen: This follows from branch model. Branches are essentially sets of commits, and merge corresponds to set union (may make extra commit in order to bind the histories).17:22
cYmen the question is if I have an editing branch where I commit every bullshit...can I later only merge the final change to the master branch?17:22
Ilari cYmen: Except that unles you clean it up before merging, your bullshit will become part of the master branch.17:23
cYmen exactly so is there a good way to clean it up or to only commit the diff between the current version and the last commit to master?17:24
rshann_ left17:24
legnaleurc joined17:24
Ilari cYmen: The standard way to clean up commits is 'git rebase -i'.17:24
jatt left17:24
ilteris__ joined17:25
cYmen now what does that do now?17:25
Ilari cYmen: Its interactive rebase.17:25
cYmen so what do you suggest?17:25
create another branch? edit in localchanges?17:25
Ilari cYmen: Allows splitting, editing, dropping and combining of changes.17:25
cYmen: Also, 'git commit --amend' is handy if you note you need to edit the last commit.17:26
the_zeno left17:27
Ilari cYmen: Maybe read 'Git for Computer Scientists' and 'Git from the Bottom Up'.17:28
cYmen: Those two are really useful understanding how git really works.17:29
gitte left17:29
cYmen ok...well thanks so far17:31
It's nice to be tutored17:31
Ilari cYmen: Basically, when you merge in a branch, it "pulls in" ALL commits from that branch.17:32
galderz left17:32
willb1 joined17:33
cYmen hm...what does "file needs update" mean?17:33
Ilari cYmen: The file has uncommitted changes.17:34
WinterWeaver joined17:36
cYmen "rewinding head to replay your changes on top of it"?17:36
Ilari cYmen: That's just progress message.17:37
cYmen mkay :)17:37
Ilari cYmen: Also, if you didn't use commit -a, it would be possible to keep that include line uncommitted.17:39
redondos left17:39
Ilari cYmen: But rebase definitely doesn't like such uncommitted lines.17:39
redondos joined17:39
Ilari cYmen: Maybe stash such lines for duration of rebase?17:40
cYmen hm...I could have a stash with local build patches17:41
sounds like it's worth trying out17:41
altrux joined17:42
Ilari cYmen: Hint: git gui17:42
g3d cYmen: I'd say better have a branch, branching is cheap17:42
Ilari cYmen: From RMB context menu for diff pane: "Stage hunk for commit", "Stage line for commit".17:42
cYmen: Yes, selecting changes to commit with line granularity.17:42
g3d or git add -i, it works for hunks too :)17:42
willb1 left17:42
cYmen uh...don't know what a hunk is :)17:43
g3d cYmen: a fragment17:43
willb1 joined17:43
Ilari cYmen: It is (part of) changes. Hunks are delimited by sufficient number of non-changed lines.17:44
cYmen ok...17:45
g3d: so what do you mean by git add -i?17:45
komplex left17:45
naeu joined17:45
g3d cYmen: it's a console-based "gui"17:46
moonese joined17:46
g3d cYmen: some people (including me) prefer it to the real gui17:46
bolle joined17:46
willb joined17:48
summerbug joined17:48
cYmen ok17:49
I don't have the basics down enough to get picky. But it will happen at some point ;)17:49
willb2 left17:50
cpg joined17:50
willb1 left17:51
kuadrosx joined17:53
Dashkal joined17:55
Ilari cYmen: When you get them down, you probably understand how to do it properly.17:56
HG` joined17:56
ashleyw joined17:57
moonese1 left18:02
Chani how do I undo a git add?18:02
I always had trouble with htis in svn...18:02
Ilari Chani: 'git reset -- path/to/file'?18:03
the_zeno joined18:03
Chani Ilari: will that delete things?18:03
I don't want to elete any files, just make git forget that I added them. I haven't committed anything18:03
Chani forgot to delete the .svn folders before adding18:03
AkumaStreak joined18:03
bremner left18:05
Ilari Chani: Then there is 'git rm --cached -r .svn'.18:05
bremner joined18:05
Chani oh. hmmm.18:05
although hte man page for git reset shows how to undo add :)18:05
g3d Chani: git will never delete or otherwise make you loose data unless you add arguments like "--force or --hard". So no worries.18:06
forgot some "" in there but you get the point hopefully18:06
Ilari Except that git rm by default deletes stuff from working tree as well.18:06
Chani g3d: except git rm ? :)18:06
g3d well ok, you got me there18:07
Ilari rm also has some safety checks, but I don't know if it prevents deletion in current case.18:07
summerbug_ left18:07
Chani huh.18:08
g3d I'd say this really should be changed...18:08
Chani Ilari: fatal: pathspec '.svn' did not match any files18:08
g3d Chani: -r ?18:08
Chani g3d: yep18:08
Ilari Chani: Was anything under it even added?18:08
willb1 joined18:09
willb left18:09
markelikalderon left18:09
Chani Ilari: yes. just not committed18:09
Ilari Chani: git staus should show what .svn dirs have tracked stuff under it.18:09
Chani yep.18:09
ohhh18:09
Ilari: it only works if I first cd into one of the folders that has a .svn18:10
maybe -r isn't working correctly18:10
Ilari Chani: It is.18:10
hagna left18:10
HG` left18:11
Ilari Chani: It means recurse from specified. -r to grep means the similar thing.18:11
Chani yabut, it's not recursing18:11
memiux left18:11
Chani hmm. looks like I don't have many subfolders anyways. I can do them manually18:12
cloudhead joined18:12
Ilari Chani: Its recursing to that .svn.18:12
Chani ohhhh18:12
yeah, I just got it18:13
duh.18:13
it's not recursively looking for .svn folders :)18:13
Ilari Chani: Neither would 'grep -r foo .svn'.18:14
Chani yeah.18:15
HG` joined18:17
rittyan1 joined18:18
cemerick joined18:18
ashleyw left18:20
aslakhellesoy left18:21
agib left18:23
sunoano joined18:23
HG` left18:23
ashleyw joined18:24
bremner_ joined18:24
AkumaStreak left18:24
ProperNoun left18:24
markelikalderon joined18:25
bremner_ left18:25
willb1 left18:26
bremner_ joined18:26
ashleyw left18:26
memiux joined18:27
radarek joined18:29
bremner_ left18:29
rittyan left18:30
sako anyone here using git for web development projects?18:33
bremner_ joined18:34
memiux_ joined18:35
Ilari sako: What's so special about them? Making deploy-on-push work?18:36
jatt joined18:37
rittyan1rittyan18:37
DrFrasierCrane left18:37
rittyan left18:38
rittyan joined18:38
__name__ joined18:39
name left18:39
__name__name18:40
sako elliottcable: so i cloned my git repo on my laptop18:40
bdowning_ joined18:40
sako when i do changes and do commit -a18:40
that commits to my local repo?18:40
angerman left18:41
bobesponja joined18:41
Ilari sako: Yes.18:41
sako hmmm18:41
so when i commit changes and i want them to go live18:41
do i have to push>18:41
memiux_ left18:41
sdboyer left18:42
Ilari sako: Push transfers commits between repositories. To make it live, you need something else (unless your webserver can read directly from git repos).18:42
bdowning left18:42
elliottcable sako: if django is anything like Rails, you can easily set up a git remote that will reload when you push to it.18:43
sako i see18:43
elliottcable sako: I personally keep a "staging" remote, and push to that when I want to try some changes on the development server.18:43
sshc joined18:43
bdowning_bdowning18:43
sshc what's wrong with git pull?18:43
memiux_ joined18:43
memiux_ left18:44
sako elliottcable: so the "staging18:44
is that like a development copy of your server? so you can test and then go live?18:44
moonese1 joined18:45
Ilari sshc: git pull is either fetch + merge or fetch + rebase...18:45
sshc Ilari: so I cane git fetch && git merge instea of git pull?18:46
Ilari sshc: Yes.18:46
memiux left18:46
the_zeno left18:47
sako http://joemaller.com/2008/11/25/a-web-focused-git-workflow/18:47
patrikf left18:47
impulze left18:47
sako Ilari: does that link look good?18:47
im gonna follow the setup for a repo like that..18:47
LCID_Fire joined18:48
LCID_Fire Hi18:48
cYmen What's the default way to solve a merge conflict anyway? I just replace the broken file with what I want to be the merge result?18:48
Dashkal left18:49
LCID_Fire cYmen: IMO you should manually check the rejected changes!?18:49
Ilari sako: The update-server-info is only needed for fetching via protocols like http:// and ftp://, so presumably not necressary.18:50
LCID_Fire Is there a way to turn a fetched svn directory structure (branches, tags, trunk) into git branches?18:51
Ilari cYmen: 'git add <file>'.18:51
elpargo_ joined18:51
Ilari cYmen: Was it merge or rebase that conflicted?18:52
Chani sighs18:52
Chani I have a problem.18:52
sako Ilari: so if i just follow that and remove the exec update-server-info ill be fine?18:52
cYmen Ilari: rebase18:52
LCID_Fire has a bunch18:52
Ilari sako: Well, it isn't necressary but doesn't hurt that much (some CPU usage & disk usage).18:52
WALoeIII joined18:52
Ilari cYmen: Then after adding, 'git rebase --continue'.18:53
kukks left18:53
ibolmo joined18:53
camwest joined18:53
Chani our translators need to read the doc/ subfolder of every single kde module. since kde is big, it's probably not feasible for them all to check out all of kde. but git doesn't seem to offer a way to download only a certain folder. --depth gives a way to only get part of the *history*, but that's not useful for this. :(18:54
sako hmmm i gotta read a good book or something :)18:54
any suggestion?18:54
cYmen Ilari: Is there any tool to resolve conflicts?18:54
Chani isn't there *any* way to download only part of a git repo?18:54
impulze joined18:54
Ilari sako: For some really insightful stuff, google "Git for Computer Scientists" and "Git from the Bottom Up".18:55
LCID_Fire Chani: AFAIK not18:55
Chani :(18:55
Ilari cYmen: There's git mergetool.18:55
cYmen Ok, right now I can't even see the new file so that's sort of weird.18:55
LCID_Fire Chani: Personally I'd say it's a bug not a feature ;)18:55
Chani this is kinda blocking KDE from switching to git.18:56
WinterWeaver left18:56
summerbug left18:56
jatt hi, how would someone do:18:56
scp -rp .git [email@hidden.address]18:56
git push --all18:56
? I found this in a guide about git, without explanation...18:56
It's possible to pull changes for such a repository?18:56
LCID_Fire Chani: Do they need to change the files?18:56
Ilari jatt: Don't use scp to copy git repositories.18:58
g3d jatt: a bare repository is just that, the contents of .git/ dir in normal repository18:58
Chani LCID_Fire: no.18:58
LCID_Fire Chani: why don't you then provide a web interface?18:58
Chani LCID_Fire: our translators hate web interfaces18:58
with a passion18:58
plus, when I say they need to read them, I mean they need to run a script which reads all of them18:59
khmarbaise_ joined18:59
jatt g3d: it's possible to pull changes for such a bare repository? I cloned the repostory and I want to have those changes back in the bare repository I created.18:59
Ilari jatt: Instead, init the repo on remote side and push needed branches there.18:59
cYmen Gna, I accidentally git add blafile.orig - what do I do? :)19:00
Chani if they had to read them directly I'd have an even bigger problem, because right now those folders are automagically fetched as svn externals, and with git there'll have to be a script to fetch them even if I find a way to do this19:00
LCID_Fire Chani: what about using git for normal development and using svn for translation stuff?19:00
ibolmo left19:00
jatt Ilari: yes you are right, I think using scp is a pretty bad idea, I was following the following guide: http://vafer.org/blog/2008011501132019:00
Chani LCID_Fire: the translator *are* going to stay on svn, at least from now. but projects want to move to git. and each group of projects has its own doc/ folder.19:01
Ilari cYmen: 'git rm --cached blafile.orig'.19:01
moonese left19:01
Chani LCID_Fire: I have to design a hybrid system here, and I almost had it until I came across this folder full of svn externals :(19:01
g3d jatt: what do you mean by "pull for"? pull to? if so, you can't, as it's bare repository. better do it right as Ilari said.19:02
Ilari jatt: There are lot of crap guides about git. Hopefully those guides that teach the use of update-index (git 1.4.X, really obsolete) have already disappeared.19:02
LCID_Fire Chani: you should probably talk to some of the git developers since your request is something I heard a lot of people complain about19:02
sergiodj left19:03
Chani the only other solution I can see right now is to have someone run a server that checks out every kde git repo every day, copies the doc folders into one folder, and offers that folder up on the interwebs for the translators' script to download or rsync or whatever19:03
jatt as far as I understood the guide did19:03
scp -rp .git [email@hidden.address]19:03
because gitweb probably needs the .git file only. I don't know I think I will start from scratch again19:03
this time without scp...19:03
ibolmo joined19:03
cYmen Ilari: I called git add blafile and git rebase --continue but it says nothing new :/19:03
ibolmo are hooks committed to the repo or are they just local?19:04
Ilari ibolmo: Local.19:04
cYmen: Ah that. 'git rebase --skip'-19:04
g3d jatt: as I said before, a bare repository is basically contents of .git/ on normal repositories, i.e. repo without the working dir.19:04
cYmen Ilari: but won't that skip my patch?19:04
Chani LCID_Fire: what's the best way to contact the developers? irc, mailing list?19:04
ibolmo ah ok, so i don't have to worry about putting in sensitive information?19:04
abstrusething joined19:04
LCID_Fire Chani: I'd say mailing list19:04
Ilari cYmen: If the conflict resolution is identical to what existed before, that patch should be skipped, no?19:05
fujin joined19:05
Chani LCID_Fire: [email@hidden.address] ?19:05
aslakhellesoy joined19:05
Ilari ibolmo: Actually, hooks can be quite dangerous, so they aren't copied by any git tool.19:05
ibolmo hehe gotcha19:05
Ilari ibolmo: Hooks can cause enough security problems already in shared repos.19:06
elpargo left19:06
LCID_Fire Chani: might be - I unsubscribed a long time ago ;)19:06
cYmen Ilari: Why? I mean I still want my local changes applied, right?19:06
hyperair sandsmarK: which represents 'undefined' better? NaN or inf?19:06
ugh shit wrong channel19:07
jatt g3d: I see, but how is the workflow when working with bare repositories? For instance I import a project to it and another user makes a clone of it. If that user wants to upload his changes, how can he do it? git push?19:07
Ilari cYmen: Rebase tries to detect already appiled patches, but when that fails, you need to manually drop the duplicate.19:07
g3d jatt: yes, by pushing usually. you could update it by fetching for example. just not pull, as it does merge.19:08
jatt: although normally you just push19:08
jatt g3d: thanks, I think I understand now19:08
Ilari jatt: Pushing to non-bare repos is possible, but one needs to be careful.19:09
g3d jatt: and yeah, your repository is still not bare, edit its config19:10
hyperair what are the implications of pushing to a non-bare repo?19:10
ibolmo Ilari: perhaps a hook is not something i'd want to do.. i'd like to have a %%variable%% in a .cfg file that i'd like to change depending on the branch name..19:10
jatt I expect to use the bare repo only for gitweb purposes. I have been using git for a while but only used git pull until now.19:10
ibolmo anyway to have the same file appear different on both branches? basically removing the need of the %%variable%%19:10
jatt g3d: how did you recognize that the repo wasn't bare yet?19:10
ibolmo without worrying about conflicts on merges19:10
g3d jatt: because you just copied your non-bare one19:11
jatt: at least that's what I understood19:11
jatt: see in config core.bare19:11
Ilari ibolmo: Ugh. Can't be sanely done.19:11
ibolmo haha19:12
aslakhellesoy left19:12
jatt g3d:19:12
bare = false19:12
19:12
npmccallum joined19:12
jatt hm. that crappy guide got all wrong then :)19:12
Ilari ibolmo: Its even worse issue than the one with keywords.19:12
npmccallum can I have a single git repo with other git repos inside of it?19:13
Ilari npmccallum: Its possible to put git repo inside other, either as untracked or submodule.19:13
g3d jatt: yep19:13
ibolmo what do you mean Ilari?19:13
bx2 left19:13
npmccallum Ilari: basically, there are a 5 other git or svn repos out there I want to track in a single repo, along with some other local files19:14
Ilari: are there instructions anywhere to do this?19:14
Ilari ibolmo: Similare strategies at resolving it could work as in case of keywords.19:14
bremner_ left19:14
ashleyw joined19:14
ibolmo left19:15
cYmen Ilari: How does it detect already applied patches? I mean none of my patches are already applied...19:15
bremner_ joined19:15
elliottcable sako: sorry, had to run out19:16
sako: did you get it working?19:16
sako not yet19:17
icwiener_ joined19:17
bremner_ left19:17
sako im trying to figure out if i should use the method described in that url..19:17
http://joemaller.com/2008/11/25/a-web-focused-git-workflow/19:17
Ilari cYmen: Compute patch IDs (distinct from commit IDs).19:17
archis joined19:18
Ilari cYmen: But conflict resolution winding up being identical to previous commit is good sign of patch that should be dropped.19:18
sako: Seems fair workflow.19:18
WALoeIII left19:18
bremner_ joined19:20
scarabx left19:21
LCID_Fire left19:22
eletuchy joined19:24
bgerber left19:25
Chani >.<19:25
I did a search on the mailing-list archive, and found some results, but I only get individual emails with no navigation links19:26
without a way to read the whole thread the messages I found aren't much use :(19:26
I can't figure out how to get back to the frames view that had navigation buttons19:26
camwest left19:28
Chani n/m. figured it out.19:28
Handcrafted Okay, remeber me from before, the guy with the problem in the Git Community Book. Well, I just submitted my commit. Thank you all for telling me to do that. I don't think I could've learned to use Git in a better way :)19:29
camwest joined19:30
radarek left19:30
Handcrafted left19:31
aslakhellesoy joined19:32
icwiener left19:33
djgera joined19:34
cYmen Ilari: I don't get how the patches are not applied but my changes are still gone19:34
Chani so, uh, stupid question. how do I subscribe to [email@hidden.address] ?19:35
legnaleurc left19:36
rjc left19:36
rudi_s joined19:39
moonese joined19:39
rjc joined19:40
Ilari cYmen: You screwed up the conflict resolution?19:40
aslakhellesoy left19:40
cYmen hm...I don't know my change weren't in my local file either I mean they are in the patches...19:41
ashleyw left19:43
kosh[0] joined19:46
archis left19:47
bremner_ left19:47
soulinx left19:51
kosh[0]_ left19:51
melvinram joined19:55
ashleyw joined19:55
lvh joined19:55
lvh hi :-)19:55
Ilari ...19:56
moonese1 left19:56
sunoano left19:56
ashleyw_ joined19:57
melvinram left19:58
melvinram joined19:58
Sho_ left20:00
danielnewman joined20:02
ashleyw_ left20:05
memiux joined20:05
jatt I've setup a bare repository and did a push of my local repository to populate it. gitweb shows the bare repository correctly and I can clone it with:20:06
git clone ssh://myserver.com/var/git/myapp.git20:06
however with20:06
git clone http://localhostgitweb/myapp.git20:06
the clone fails20:06
rolfb joined20:06
jatt with20:06
fatal: http://localhost/gitweb/ubnt-hal-0.7.379.git/info/refs not found: did you run git update-server-info on the server?20:06
Ilari jatt: Read that error message.20:07
jatt I did run git update-server-info on the server, but the same error happens. The strange thing is that git clone works (giving the path of the repository on the server0.20:08
JEEB left20:08
ShadeHawk joined20:08
Ilari jatt: ssh://, git:// and file:// don't need that extra info.20:08
[AndrewR] joined20:08
ShadeHawk Today is (according to GSoC timeline) time for GSoC students to start working on projects. Shouldn't they present themselves on git mailing list?20:09
ashleyw left20:13
ShadeHawk there is quie a bit of "foreign" GSoC projects which touch git more or less; I think we 'touched base' with SuSE Build System (to be on top of Git) and GitFS for Plan920:14
jatt Ilari: sorry which extra info do you mean?20:14
cYmen is there a default "always remote" or something for merging?20:15
jatt now that I have gitweb working I wanted just to clone the repository using the URL, i.e.: git clone http://localhost/gitweb/ubnt-hal-0.7.379.git20:16
rjc left20:16
ShadeHawk I wonder how it is with git# people from Mono, from PyVCAL VC Access Library from Python, hg-git (Mercurial over Git) from Mercurial20:17
rjc joined20:17
jatt it is possible to do it with a bare repository?20:17
rudi_s left20:17
angerman joined20:18
ShadeHawk jatt: gitweb has nothing to do with cloning; moreover you need to do extra to have the same URL for gitweb and for HTTP fetch20:18
jatt: There is I think something in Documentation/howto about that20:18
jatt ShadeHawk: I understand. I thought it would happen automatically :).20:19
mintux left20:19
bobesponja left20:20
ShadeHawk jatt: and you shoulr run git-update-server-info (perhaps from hooks) to be able to serve via HTTP20:22
pasky: Something broken on Git Wiki with upgrade20:23
jatt ShadeHawk: ok I will take a look. I just want that once I say my colleagues to pull that they can use just the URL and that they don't need to ask for the path of the respository on the server. thanks!20:23
pasky ShadeHawk: what broke?20:23
lvh left20:23
KuSuRSuz-yok joined20:23
ShadeHawk pasky: check out RecentChanges (I see two gray boxes, no changes lis, no images), and e.g. SoC2009Projects page, with excessive vertical whitespace for single {{BR}}20:23
KuSuRSuz-yok hii20:24
KuSuRSuz-yok left20:24
ShadeHawk jatt: and gitweb has configuration which allow to state on projects summary page where to find repositories to fetch / clone from (see gitweb/README or gitweb/INSTALL)20:25
pasky ShadeHawk: hmm, i'm clueless on what broke :(20:25
Ilari jatt: HTTP is inferrior. And you can have clone URLs anyway on the gitweb page.20:25
bdiego left20:26
jatt Ilari: really, wow that sounds like the feature I'm looking for. I don't see that option in the gitweb page I got per default... do I need to configure gitweb for it I guess?20:27
ShadeHawk pasky: what's more, it looks like RecentChanges page has box or iframe or frame or something, which has link to itself... which if you position scrollbars right lead to funny recursive page20:27
jatt: yes, you need20:28
memiux left20:29
ShadeHawk pasky: By the way, were you thinking about replacing MoinMoin by something else? (ikiwiki, SocialText, MojoMojo, FosWiki <-- all in Perl; or it it is to be mved to git-scm.com, perhaps something in Ruby...)20:29
s/it it/if it/20:30
jatt I see now that the kernel.org gitweb page has the link and has a message informing the user how to clone the repository, so yes using HTTP to clone them is probably not the right thing.20:30
cpg left20:30
rjc left20:31
ShadeHawk jatt: I think gitweb/INSTALL or gitweb/README has it well explained; if not, tell me what were not clear enough, please...20:31
ashleyw joined20:32
ShadeHawk is still reading git wiki via proxy; damn TP S.A. and its blackholing / null route firewall (misconfigured MAPS?)20:34
wezyde joined20:34
rjc joined20:36
ashleyw left20:37
pasky ShadeHawk: frankly, i have no time or resources to take care about the wiki at all - someone else must do all the work20:37
actually, i have no idea how to fix the totally borked wiki *now*20:38
i don't have another few hours to fiddle with that :(20:38
ShadeHawk pasky: Can you ask Scott Chacon (of git-scm.com) to move and take care of git wiki?20:40
pasky i think we talked briefly20:44
i will try to prod him20:44
memiux joined20:44
icwiener_ left20:45
rjc left20:45
icwiener joined20:46
ShadeHawk pasky: I wonder what wiki software would he prefer20:46
rjc joined20:46
ashleyw joined20:46
Ademan left20:48
ashleyw left20:48
ShadeHawk perhaps git-wiki or Jekyll (~= ikiwiki)?20:48
Aeroforce joined20:50
Aeroforce left20:51
blink joined20:54
blink Anyone up for answering some questions relating to git push?20:55
ashleyw joined20:58
rshann_ joined20:59
jatt I tried to find the gitweb feature that turns the "git" links on (as in http://git.kernel.org) but couldn't find it. I even checked the gitweb.perl source code for clues ;) (git v1.6.3.1). Do you know how to enable this feature?21:01
blink I have an origin repo and an official repo, both with a master branch. I have official/master in a tracking branch canonical. When in my local master branch push will push to origin branches as expected, but when I am in canonical git push does not simply push it's objects to official/master. Is there a configuration option to prevent myself from accidentally pushing local master to official/master when pushing from inside canonical?21:01
cpg joined21:02
sea-gull left21:02
loincloth joined21:03
markelikalderon left21:04
rphillips left21:04
rphillips joined21:05
aslakhellesoy joined21:08
kennethlove joined21:09
pano joined21:09
rjc left21:12
rjc joined21:12
cpgcpg|lunch21:17
gitte joined21:18
jatt left21:19
melvinram left21:24
pasky now the goddamn thing has locked me out by surge protection and i don't know why21:24
camwest left21:25
jrmuizel joined21:27
ShadeHawk Do you think it would be useful to have "Git User's Survey 2009" (this time without that many free-form questions)? How many responses would there be? The sequence 100 (2006), 600 (2007), 3000 (2008) hints at 15000,..21:30
rshann_ left21:32
Pieter ShadeHawk: yes, but tone down the # of questions.. less than 20, I'd say, with 2-3 open max21:33
ShadeHawk Pieter: what questions would you like to see in survey?21:34
aspotashev_ left21:34
aspotashev joined21:34
Pieter why people use git (artist/programmer/..), if it's for fun or profit, what system they run git on21:34
Ademan joined21:34
Pieter and GUI use, use of cgit,jgit,or something else21:35
Cowmoo joined21:35
Cowmoo How can I list all files in my git repo?21:36
Pieter git ls-tree -r HEAD21:36
nh2 joined21:36
Cowmoo thanks21:37
nh2 how do I disapply some patches (e.g 3 out of 100)?21:37
thiago_home nh2: git show patch1 patch2 patch321:37
Pieter pasky: is repo still b0rken?21:37
gitte pasky: you were talking about repo.or.cz, I guess.21:37
ShadeHawk well... implementation (git, jgit, grit, Dulwich, git#, ObjectiveGit,...) / GUI (git-gui, gitk, qgit, GitX, GitNub,...) / tools (gitweb, jgit, StGit, Guilt, TopGit, ...) -- that are three questions21:37
pasky Pieter: it seems so21:38
gitte pasky: can you connect from another IP?21:38
ShadeHawk nh2: disapply?21:38
pasky gitte: no, about gitwiki21:38
anyway21:38
i'm giving up on fixing gitwiki21:38
nh2 ShadeHawk: I mean reverse them21:38
pasky i just don't know what's wrong with it, and i've just wasted another hour on it21:38
gitte pasky: gitweb is broken, too...21:38
pasky i know :/21:38
i wanted to fix gitwiki first21:38
nh2 there is a feature I do not like in a current Branch21:38
gitte pasky: what is the symptom?21:38
pasky gitte: look at GitFAQ or RecentChanges21:38
ShadeHawk nh2: applied comits? man git-revert21:38
nh2 and I want to take it out again21:38
Gitbot ShadeHawk: the git-revert manpage can be found at http://git.or.cz/man/git-revert21:38
Pieter ShadeHawk: you can probably dump them all together though.. most people won't know what implementation they use I guess21:38
pano is anyone here that knows about git? :-D21:39
I've got this strange problem21:39
setting up a personal clone on gitorious...21:39
gitte pasky: you mean the gray boxes?21:39
pano already tried to ask in #gitorious but got no response yet21:39
pasky gitte: yes, and missing toc and large spacings...21:40
ShadeHawk pasky, gitte: After upgrade problems... why it always hits git wiki?21:40
pasky gotta travel from work to home now21:40
ShadeHawk: because moinmoin is a piece of crap21:40
thiago_home pano: you haven't asked a question yet21:40
pasky awful one, too21:40
Cowmoo left21:40
gitte pasky: looks like a css problem to me.21:40
pano can I just paste the stuff I wrote in #gitorious?21:40
ShadeHawk pasky: probably moin4wiki doesn't help, either...21:41
gitte pasky: are you sure that it reads from the correct place?21:41
thiago_home if it's less than 4 lines21:41
pasky gitte: i'm not sure about anything anymore, but it should21:41
ShadeHawk gitte: RecentChanges doesn't show recent changes21:41
pano thiago_home: this means I can't :-D21:41
gitte pasky: have you looked into the access.log?21:41
pano k21:41
ShadeHawk pasky, gitte: And SystemInfo didn't work even before upgrade21:41
pano I created an account on gitorious21:41
gitte pano: there is a wonderful link in our topic to a pastebin IIRC.21:41
pano gitte: I'll just describe my problem again^^ thanks though21:42
scientes_ joined21:42
pano I then added a newly created ssh key to it, and created a clone of a project21:42
pasky gitte: what should i look for there?21:43
pano if I try to do git clone ssh://pano@gitorious.org/and/so/on I always get some errors as output21:43
Permission denied (publickey).21:43
fatal: The remote end hung up unexpectedly21:43
gitte pasky: for the path of the css files, I guess.21:44
pano My guess is, that there is some ssh configuration issue on my side, but I can't figure it out21:44
nh2 ShadeHawk: great, it seems to work21:44
pasky 212.198.82.134 - - [23/May/2009:23:37:10 +0200] "GET /wiki/modern/css/print.css HTTP/1.1" 200 775 "http://git.or.cz/gitwiki/GitFaq" "Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.0.7) Gecko/2009030814 Iceweasel/3.0.9 (Debian-3.0.9-1)"21:44
stuff like that21:44
afk back in 1 hour21:44
thiago_home pano: when you go to your project's page, what does it say under Push url?21:44
nh2 but can you tell me why one has to git add the changed files manually after reverse?21:44
ShadeHawk pano: 1. Try "ssh [email@hidden.address] 2. do you have gitorious key in "ssh-add -l"?21:45
gitte pasky: hmm.21:45
pasky: it looks as if a text-only browser does not see recent changes, either.21:45
British0zzy left21:46
pano pano@arch ~/Projekte/rekonq % ssh [email@hidden.address]21:46
Bad owner or permissions on /home/pano/.ssh/config21:46
wtf?^^21:46
thiago_home pano: how about my question?21:46
pano: when you go to your project's page, what does it say under Push url?21:47
pano thiago_home: hmm, can't seem to find what you mean21:47
ShadeHawk gitte: I read git wiki through proxy (because of my ISP blackholing repo.or.cz for some reason or other), and on RecentChanges I have nice, recursive gray boxes (i.e. there is box with scrollbar, in which is the same page with box with scrollbar, inside which...)21:47
thiago_home if you don't understand me, tell me. Don't ignore me.21:47
pano: go to http://gitorious.org/~pano/rekonq/pano-clone21:47
pano: what do you see under Push url21:47
gitte pasky: it looks as if the RecentChanges template got fscked up.21:48
pano thiago_home: [email@hidden.address]21:48
thiago_home pano: what URL did you try to clone?21:48
pano I entered "git clone ssh://pano@gitorious.org/~pano/rekonq/pano-clone.git"21:49
thiago_home do you see that they are not the same?21:49
pano thiago_home: yeah... sry It now asks me for my passphrase, I guess it'll work now. Thanks!21:50
ShadeHawk thiago_home, pano: I think they should be equivalent (there is scp/ssh like way of writing SSH URLS, and there is URL-like way of writing SSH URLs)... but might not be21:50
jrmuizel left21:51
thiago_home ShadeHawk: the username is not the same21:51
ShadeHawk: that was pano's error21:51
ashleyw_ joined21:52
cemerick left21:52
Shinu joined21:52
ShadeHawk ah, sorry, I didn't notice21:52
gitte pasky: This is a wrong link, it seems: /gitwiki/TableOfContents%282%29?action=content21:53
pano thiago_home: thanks again for your help, and sry for my blindness :-)21:53
ShadeHawk I just copied the URL they gave to config file and forgot about it...21:54
for my gitorious project...21:54
gitte pasky: sorry, the linked file is empty...21:57
kate21de left21:58
scientes left21:59
wezyde left22:00
g3d left22:00
hyperair left22:02
schlort left22:04
rjc left22:05
ashleyw__ joined22:05
rjc joined22:05
nh2 what does git want to tell me saying "CONFLICT (delete/modify): [file] deleted in 8421f29... blabla and modified in HEAD. Version HEAD of [file] left in tree." after a git revert?22:07
sorry _in_ a git revert22:07
ashleyw left22:07
ShadeHawk nh2: that the file was added in commit you want to revert, and was modified since (I think)22:08
lhz left22:09
nh2 ShadeHawk: so the revert wants to remove it again, right?22:09
Ademan left22:10
aslakhellesoy left22:10
ShadeHawk nh2: yep, revert of addition is removing... and meanwhile you have modified the file22:12
nh2: if you want to remove addition of file (i.e. remove a file), just "git rm <file>" and commit change22:12
nh2 ShadeHawk: ok, then it is clear to me22:13
ShadeHawk: thank you22:13
ShadeHawk nh2: you are welcome22:14
jrmuizel joined22:14
ShadeHawk I see that somebody is asking on git mialing list about partial checkouts. I wonder what is happening on this front.22:16
There are a few issues which were started, and never finished...22:16
Fullmoon__ left22:16
khmarbaise_ left22:16
ShadeHawk * pack v422:16
* "smart" HTTP protocol22:16
* partial checkout22:16
* detecting rename of directory as a whole22:17
dt_101 joined22:17
ShadeHawk Have I forgot anything?22:17
ashleyw_ left22:20
__iron left22:20
loincloth left22:23
knittl left22:23
rittyan left22:23
jspiros left22:23
loincloth joined22:24
jrmuizel left22:27
cYmen after using mergetool and git add how do I finish the process?22:29
__iron joined22:31
melvinram joined22:32
robomalo left22:32
ShadeHawk cYmen: git-commit I think22:34
bremner_ joined22:34
d0k left22:34
AkumaStreak joined22:36
blink left22:36
__iron left22:37
__iron joined22:38
nh2 I have just reverted all the commits I wanted to revert, but in my files there is still something like <<<<<<< HEAD:src/mumble/mumble_pch.hpp and after this line, somethin from the original state before reversion22:40
dreiss left22:40
thiago_home edit and fix22:41
nh2 thiago_home: you mean just per editor?22:41
thiago_home yes22:42
nh2 OK22:42
djgera left22:42
ShadeHawk or use git-mergetool (if you have some favorite GUI merge tools)22:42
bx2 joined22:44
angerman left22:44
bremner__ joined22:45
Octalot left22:45
bremner__ left22:46
muhoo joined22:47
bremner__ joined22:48
muhoo i have two machines: A and B. both used to be tied to CVS but got out of sync. i converted machine A (and all its commit history from CVS) to git a while ago, and have been using git on it. i have a bunch of untracked changes on machine B that I need to merge in. BUT NOT ALL OF THEM! i need to cherry-pick them, but they are in the form of one massive patch.22:50
ph^ left22:50
muhoo in other words, i've cloned machine A's git repo onto B, and branched to a "B" branch, and now a git diff shows a massive amount of changes, some i want to keep, and most that i don't.22:51
but they're not in the form of individual git commits since machine B has had no version control for a while.22:51
any advice on how to get out of this mess?22:52
cemerick joined22:52
bremner_ left22:52
cemerick left22:52
muhoo it should never happen again now that i have git :-)22:53
offby1 muhoo: "git add -p", or perhaps "git add -i"22:53
naeu left22:54
__iron left22:54
muhoo nice!22:55
it'll let me pick hunk by hunk. awesome22:55
jdahm left22:55
muhoo can i do that from a merge too?22:55
pasky i know what'sw the problem with the wiki22:56
macro syntax changed22:56
i overlooked that22:56
so i'll just mass convert {{...}} to <<...>>22:56
also i replaced underlay22:56
that fixed recentchanges22:56
offby1 muhoo: I don't know what you mean by "can I do that from a merge too"22:56
muhoo offby1: ah. maybe: is there a -p or -i option to git merge?22:56
__iron joined22:57
muhoo so that i can pick my merges hunk by hunk as well?22:57
offby1 gosh, I don't think so22:57
gitte pasky: gitfaq is still an issue...22:58
cpg|lunchcpg22:58
pasky gitte: i used future tense :)22:58
muhoo offby1: would it be sensible to commit all the current state of machine b to a branch first, then go back and use git add -i to cherry pick what i actually want to keep?22:59
or would that even be possible22:59
offby1 it'd be possible, I think.22:59
But I don't think you'd use "git merge"22:59
ashleyw joined22:59
offby1 instead I'd check out one branch, then plop the other branch's contents "on top of it", probably with git-archive, then do the "git add -p" thing again23:00
muhoo i'm really close to wrapping my brain around this, but not quite.23:00
icwiener left23:00
muhoo thanks23:00
icwiener joined23:00
muhoo sorry for being dense, but i want to make sure i'm understanding this before hosing up my production system :-)23:01
i was going to first git clone machine a into a scratch directory, then branch to "b", rsync over machine b's files to it,23:02
dreiss joined23:03
muhoo then do {the part i'm not quite clear on yet, git add, git merge, etc},23:03
then copy the .git directory from machine B's scratch area, over to the production directory on machine B.23:03
AkumaStreak left23:04
muhoo so it sounds like that {} section of the process would be to git add -p/i the changes, then commit it.23:04
[AndrewR] left23:04
muhoo my question would then be: how would i save the current "untracked" state of machine B into a commit somewhere so i could reference it later?23:06
or a branch, mayb23:06
oh wait, i think i got it23:06
branch to "b-old", rsync over B's state into scratch directory, commit it,23:07
then branch back to master,23:07
offby1 yep yep23:07
muhoo rsync over B again23:07
ShadeHawk pasky: thanks for work on it23:07
offby1 no real need to rsync again23:07
muhoo then do the git add -p/i23:07
offby1 you've already got those bits23:07
but otherwise, yes, that's what I was picturing23:07
muhoo offby1: don't they disappear once they're committed and i change branches?23:07
ShadeHawk still... incompatibile change if a a lightweight formatting language in a wiki ?!?23:08
offby1 disappear?!23:08
ShadeHawk WTF they thought !?23:08
offby1 of course ot23:08
not23:08
ShadeHawk see you later23:08
ShadeHawk left23:08
offby1 muhoo: now, if the rsync is cheap, go ahead and do it, since it's obviously clear23:08
muhoo offby1: yeah. i've noticed that. when i switch branches, uncommitted changes stay put, but any committed changes are now part of the branch they were committed to.23:08
offby1 but just know that you don't really have to do it. You could run "git archive" to get the stuff back from the other branch23:08
muhoo offby1: oh, but would git add work then?23:09
fynn joined23:09
muhoo i'm having a brain-lock on the "git-like" way to do it, apparently.23:09
maybe i'll stick with rsync, but i'd like to understand how i'd do it with git-archive too23:10
fynn So we have a team using git, and an integration server. We also have a test suite that takes all-in-all a full hour to run.23:10
offby1 muhoo: it's pretty easy -- "git-archive" just spews the content of your favorite commit to stdout, in the form of a tar file23:11
in your case, your favorite commit would be old-b23:11
fynn What's a good URL about getting a setup where each developer pushes his changes to the integration server, which runs the tests, and then merges the commits to a central server if the tests pass?23:11
muhoo offby1: ah, cool, so i could untar it into the working dir23:11
offby1 sure23:11
bremner_ joined23:11
muhoo perfect23:11
this is a fucking awesome system23:11
it's like i've been hitting myself over the head for 10 years with CVS, and now the pain finally stopped.23:12
offby1 well, not to put too fine a point on it, but: duh.23:12
dt_101 left23:12
muhoo offby1: thanks, i'm excited to try this now.23:14
sping joined23:14
ashleyw__ left23:14
sping any ideas where to find/contact repo.or.cz admins?23:14
DavidKlein left23:15
sping the site is broken, webmaster@ doesn't work23:15
gitte sping: look through the irc log and you'll find out soon enough.23:15
sping gitte: irc log of what?23:16
gitte sping: IOW if you think he does not know, you're mistaken.23:16
Fissure he sent a mail to the list saying he's upgrading the machine to lenny23:17
sping Fissure: oh my :-)23:17
okay, thanks guys23:17
marvil07 joined23:19
fynn OK, I'll simplify the question:23:20
Joe pulls revision 1 from the central server, works on it, and creates revision 1'. Then he would like to commit it, but central is now on revision 2.23:20
muhoo offby1: -p is tha shizznit. awesome23:20
git add -p, just what i wanted.23:20
fynn is there an automatic way to merge the changeset 1 => 1' with revision 2?23:20
offby1 muhoo: supposedly "-i" is even slicker, but I've never been able to figure it out23:21
marvil07 muhoo, yeah, -p rocks23:22
pasky sping: what's broken?23:23
sping pasky: parts of the site deliver perl source code instead of executing it23:23
pasky ah23:23
indeed23:23
muhoo heh, and git-gui's staged-changes/unstaged changes section is even slicker still :-)!23:25
if only there were an emacs mode for this instead of using git add or git-gui...23:25
muhoo waits for it23:25
[AndrewR] joined23:26
muhoo hmm, git-gui kind of sucks, though, it doesn't let me pick hunk by hunk23:26
git add -p is much nicer. still poking around on emacswiki looking for a emacs mode for this23:27
idletask joined23:27
bx2 left23:27
fynn OK, I'm pretty sure there's an answer to my question =)23:28
sping fynn: you want to merge the first two commits ever?23:28
pasky sping: fixed23:29
fynn sping: not exactly. basically, someone pulls from a server at revision 1, and makes a bunch of changes, that create branch 1'. now I want to merge 1' with master, which is at 2.23:29
sping pasky: sure? i tried reload on http://repo.or.cz/, same as before.23:29
pasky it looks fixed from here23:30
sping pasky: now it's working for me too23:31
kumbayo left23:31
bremner__ left23:31
fynn to put another way, we have revision X. from this revision, two child revisions were created: Y and Z. Z is the current HEAD. how do I merge Y and Z?23:31
muhoo now, i can push a branch too, and that'll create a branch on the remote side, right?23:32
jjuran joined23:32
muhoo i.e. git push fubarbranch remote fubarbranch ?23:32
sping fynn: i'm thinking of git fetch and git merge $remotename/$branchname, not sure if i understand you correctly23:33
fynn (i.e. how do I have the X => Y changes included in Z)23:33
drizzd left23:33
sping muhoo: should be <git push remote fubarbranch>, branch name only once23:33
fynn sping: maybe my phrasing makes it seem too complicated, since reflecting on it, it seems like a classic merging scenario.23:34
I just need to merge two changesets, both based on the same revision.23:35
sping fynn: cherrypick also comes to my mind23:35
fynn right, but that's not automatic, right?23:35
gitte pasky: I still have the error with the empty table of contents.23:35
sping fynn: no, you pick cherries by hand :-)23:35
LiamH joined23:35
sping left23:36
aziz left23:36
fynn sping: yeah, I'll try to clarify: let's say rev X is an empty file foo.txt. rev Y adds the line 'bar', and rev Z adds 'baz'.23:36
what I'm asking is how I end up with foo.txt looking like 'bar\nbaz'23:36
I need it to be done automatically.23:37
blink joined23:37
gitte pasky: It seems that GitLink() is also not handled correctly.23:38
muhoo spuk-: thanks23:38
picking cherries is a young man's sport23:39
pasky please be patient:(23:39
perl -i -pe 's/(^|[^{]){{($|[^{])/$1<<$2/g; s/(^|[^}])}}($|[^}])/$1>>$2/g;' */revisions/*23:39
theeere23:39
gitte pasky: basically, when I delete the "?action=content" part of the URLs, nothing is substituted, but the space also does not appear.23:39
pasky: another incompatibility in markup?23:39
Pieter pasky: yugh23:39
muhoo pasky: you have written a teco session23:39
pasky now wiki should work as usual23:40
gitte pasky: yes!!!23:40
muhoo http://en.wikipedia.org/wiki/Text_Editor_and_Corrector23:40
Radar joined23:40
loincloth left23:41
blink left23:41
mbroeker left23:42
kuadrosx left23:43
cpgcpg|biab23:43
TheGrudge_2 joined23:44
fridim_ left23:45
djgera joined23:45
ashleyw_ joined23:46
TheGrudge_2 Hi, I have a question about the bisect command. When I "land" on a commit that doesn't compile, can I go one commit forward or backward so that it compiles again? Using git bisect good / bad is no good idea, because I might miss the corrupting commit23:46
pasky /dev/md2 255G 234G 22G 92% /srv23:46
hmm23:46
pano left23:46
ashleyw left23:46
uau TheGrudge_2: see the manpage, that situation is explained there23:46
FreakGuard TheGrudge_2: hm. you don't get a binary, therefore bisect won't be a help?23:47
oh, sorry :)23:47
gitte pasky: how did _that_ happen?23:47
TheGrudge_2 uau: Oh ok... I must have missed this23:47
uau: thanks!! :)23:47
schlort joined23:47
pasky gitte: i'm running a du -s now :)23:47
i will make use of the fact that no mirroring etc. jobs are running and do some grand mainenance on the repos23:48
gitte pasky: sounds good...23:49
pasky ideally, i would get rid of the raid5 there now, and instead do raid 0+1 with bigger disks23:49
i think the performance would be much better23:49
gitte pasky: did mugwump not have a mirror of repo.or.cz?23:49
pasky i think he did23:50
no clue about its status or even an url now, though23:50
muhoo so i'd use git reset to discard changes once i'm done, yes?23:51
orafu left23:51
TheGrudge_2 uau: so I guess it is git bisect skip... ok will try this23:51
djgera left23:54
sshca23:54
Jinzhu joined23:55
thiago_home left23:55
Tuomas left23:55
gitte left23:55
TheGrudge_2 left23:58
^Azerthoth joined23:59
parasti left23:59

Logs Search ←Prev date Next date→ Channels Documentation