IRCloggy #git 2008-05-19

Logs Search ←Prev date Next date→ Channels Documentation

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

2008-05-19

halorgium git push origin --all00:00
Ilari corporeal: Shared flag is for overriding too restrictive umasks. It also forces newly created directories to have setgid bit set...00:00
halorgium that will push all the local branches00:00
Dreamer3 ah00:00
thanks00:00
halorgium also, --tags00:00
Ilari corporeal: You know how groups work in Unix and what setgid bit does to directories?00:00
halorgium setgid is the suck for trying to be awesome00:01
if only setfacl was more awesome00:01
p28301016 left00:02
corporeal Ilari: um, well i know how groups work of course but im unaware of what setgid is00:02
Ilari corporeal: Basically, if directory has setgid bit set, all files created in it will inherit the group of directory they are created to.00:03
corporeal Ilari: well, that's useful...00:04
Ilari corporeal: Without it, most systems will use user's EGID (FSGID on Linux) as group for the newly created file.00:04
corporeal aye00:04
felipec if I have two totally unrelated repos, let's say "main" and "john", and I want to merge "john" into "main", but I already have the conflicts solved in a working directory00:05
corporeal been using and administrating linux for... god knows how long and i never came across that00:05
felipec is there any easy way to do that?00:05
gef joined00:06
Ilari corporeal: After using 'git --bare init --shared' to create the repo, do recursive chgrp on it to change it to proper group. I once tried to first set the directory group and then create the repo, but the result was pretty much a mess...00:07
corporeal Ilari: okiedoke. i typically do a recursive chgrp after doing any major changes to a directory like that anyyway00:07
halorgium felipec: look at subtree merge00:09
Ilari 'pretty much a mess' meaning that some files had inherited the group, and some not...00:09
osamu2001 joined00:10
fhobia left00:10
radarek joined00:11
ruediger left00:11
fhobia joined00:12
osamu2001 left00:12
markkalderon left00:12
felipec I'm doing git fetch "john.git"; git merge FETCH_HEAD; rm *; cp -r merged_wd/* .00:13
mtodd joined00:14
felipec halorgium: I don't think I want a subtree00:14
halorgium felipec: that'll get the tree into the repo00:14
are you not concerned about the second repos history?00:14
felipec halorgium: yes00:15
halorgium oh, i see00:15
i like history :)00:15
felipec halorgium: I mean, I'm concerned00:15
halorgium oh, you are ...00:16
so you want to have 2 repos (their contents and history) merged into one repo?00:16
overlayed00:17
felipec halorgium: yes, after that I don't care about the second repo00:17
radarek left00:17
felipec halorgium: there will be only one00:17
halorgium i believe it is "there can only be one" :)00:17
felipec halorgium: yes, but there will be no more merges00:19
markkalderon joined00:20
halorgium felipec: are the repos downloadable?00:22
felipec halorgium: what do you mean? you want the repos?00:23
halorgium: actually, I'm creating all the repo history manually (converting from monotone)00:24
but some branches don't have any parent00:25
halorgium felipec: haha, i see00:26
yer, i was gonna try it for ya00:27
i would get it all into git first00:27
then join the 2 repos00:27
felipec halorgium: like this? git fetch "john.git"; git merge FETCH_HEAD;00:28
musix joined00:28
halorgium you can't merge a commit which doesn't have a common ancestor ..00:28
sbeyer left00:29
Mikachu sure you can00:31
sgrimm left00:31
felipec yeah, I think I just did00:31
Mikachu you'll get a mix of the files00:31
musix left00:31
sgrimm joined00:31
Mikachu there are even some of those merges in git.git (gitk and git-gui)00:31
felipec the problem is that if there are conflicts I don't want to manually fix them, since somebody already did00:32
sgrimm left00:32
Mikachu 5569bf9bbedd63a00780fc5c110e0cfab3aa97b9 is the first such merge00:32
felipec: if someone merged and resolved the conflicts you want to pull from them00:33
sgrimm joined00:34
felipec Mikachu: in monotone00:34
Mikachu then i don't know :)00:34
you could run the merge, then dump the files in the workdir and add everything and commit?00:35
felipec Mikachu: yeah, that's what I'm doing, but for some reason the body of the merge is null00:35
kanru left00:36
doener_ felipec: body of the merge?00:36
igorgue_ joined00:37
felipec doener_: the diff00:37
Mikachu the diff of what?00:37
mugwump does 'git-whatchanged -1 -m' on that merge commit show anything?00:37
doener_ felipec: against which parent?00:37
Mikachu more specifically00:37
isn't -1 quite new?00:38
mugwump no00:38
felipec mugwump: yeap, lots of changes00:38
Mikachu oh, i only saw the commit for adding the bash completion recently00:38
felipec mugwump: but git show isn't showing anything00:39
Mikachu felipec: were there any conflicts?00:39
felipec: do any of same files exist in both branches before merging?00:39
felipec Mikachu: yes, lots00:39
Mikachu i see00:39
i don't know if diff --cc works when there's no common parent00:41
heythisisdave_ joined00:42
heythisisdave left00:42
goibhniu left00:43
felipec git show 5569bf9bbedd63a00780fc5c110e0cfab3aa97b900:43
that is not showing any body (git repo)00:44
Mikachu that was a subtree merge so it didn't have any conflicts00:44
felipec ah, true00:44
Mikachu i guess even if there are conflicts, a --cc diff might be empty depending on the resolution00:45
felipec Mikachu: if you do a git show on the initial commit you still see contents00:46
a diff from /dev/null00:47
bdiego left00:47
mugwump I think without specifying -m you don't get diffs00:47
ok, so, if git-whatchanged on the commit is showing changes, it's showing you the way that the merge was resolved00:47
saintdev joined00:47
tomtt left00:47
mugwump in this case, files were cleanly picked from one side it looks like00:48
felipec mugwump: :100644 100644 824f7bb... da4d52d... M libpurple/debug.c00:48
mugwump: I've always used git show to see the diffs00:48
jeffpc left00:49
mugwump well, a diff with two bases is a bit tricky. GNU diff never handled that00:49
you might get something with git-show -m for a merge00:49
doener_ mugwump: depends, eg. eafa29b7cb27fa0e14d9629e66d6866292620113 gets a diff with "-p -c" but not with -m00:49
... and neither with -p -m00:49
felipec ah, yeah, -p -c works here too00:50
mugwump ok. well, at least gitk can display them pretty well :)00:50
Mikachu if you do a merge and the resolution requires you to change some surrounding code, you'll see the diff for that change since it wasn't in any of the parent branches00:50
mugwump or you can use diff and specify which parent you want to diff against, ^1 to mean the left one or target branch, and ^2 to mean the right one or merged in branch00:50
Mikachu or if you actually do something completely unrelated, but that's a bit silly to do in a merge commit00:50
ekidd joined00:51
sgrimm left00:52
felipec a merge has two parents, but it's executed in only one of them, right?00:52
sgrimm joined00:52
doener_ wonders how many svn "merge foo and ..." commits exist00:52
doener_ felipec: "executed"?00:52
igorgue left00:53
felipec doener_: ah, nevermind, I was going to say that git show should display the diff from the main parent00:53
Mikachu git doesn't really care about "main" parents00:54
doener_ except for --first-parent ;-)00:54
though that's pretty unrelated to diff display00:55
BabelO left00:57
Mikachu i guess if you use git log -p --first-parent it could default to diffing against the first parent ;)00:57
jeffpc joined00:59
retroj left01:01
felipec is it possible to add some custom field? I would like to add the sha1 from monotone01:03
bootie joined01:05
ekidd_ joined01:06
bootie left01:06
gitte left01:09
holycow left01:15
felipec left01:16
igorgue_igorgue01:17
fujin left01:20
osamu2001 joined01:22
fujin joined01:23
ekidd left01:25
sgrimm left01:25
sgrimm joined01:25
jmworx joined01:27
jmworx is it possible to change the timestamp of a commit?01:27
ekidd_ left01:28
sgrimm left01:28
sgrimm joined01:30
geezusfreeek left01:32
bdiego joined01:35
jerbear left01:46
ekidd joined01:48
ggeecko left01:51
ggeecko joined01:51
spearce joined01:55
zdennis left01:57
flaguy left02:06
ajonat left02:08
ajonat joined02:08
Zyclops i've got two git repositories, is there an easy way to merge them? or do i push from one to the other?02:19
spearce pull from one into the other; the one you are pulling into should have a working directory so we can merge the files and you can fix conflicts (if any).02:20
Zyclops i'm going through git gui.. there does not seem to be a pull option02:21
is it command line only?02:21
spearce fetch, then use merge->local merge02:21
Zyclops right ok :)02:21
thankyou02:21
spearce pull on the command line is the same as those two gui actions, strung back to back. :)02:22
Zyclops there does not seam to be a fetch either.. i'm checking in the command line utisl02:23
spearce remote->fetch from->origin ?02:23
Zyclops not on my version.. doesn't matter i'll try using the command line02:25
spearce oh, you must not have a remote configured. or are using a pretty old git-gui and don't have a remote configured. yea, command line it is.02:25
heythisisdave_ left02:26
geckosenator joined02:27
daaku joined02:31
osamu2001 left02:32
ec left02:32
ajonat left02:34
krawek joined02:37
kewark joined02:41
threeve left02:41
doener_ left02:42
garrin joined02:45
ekidd left02:46
ajonat joined02:48
ekidd joined02:48
ajonat hi! does anyone know if there are any plans to support resumable git-clone?02:50
spearce not really. its actually harder to implement then it sounds.02:50
ajonat shawn pearce?02:51
spearce yes02:51
ajonat I read your email and gsoc entry :)02:51
I was actually looking more info if you're doing it :)02:52
madewokherd left02:52
spearce no, we aren't. we received project proposals for it for gsoc, but other ideas seemed to be higher priority and were pushed up higher in the stack, and we ran out of slots for students.02:52
i'm also not working on it myself; most of my "git time" goes into jgit these days.02:53
ajonat oh :(02:53
jmworx Anyone knows how to either set a date in a commit or change the date of a commit?02:53
spearce one reason it wasn't given a slot is gittorrent was given a slot. someone should be able to resume a clone easier through gittorrent, once that project is implemented. and resumable clone is mostly wanted on the really big projects, which are also ideal candidates for distribution by gittorrent. so we felt two-birds-one-stone approach was acceptable for this year given our limited slot allocation.02:54
krawek left02:55
igorgue jmworx: trying to cheat at work?, but seriously, I believe that's the timestamp of the commit object itself02:55
spearce jmworx: you have to rewrite the commit to change the date; that changes its SHA-1 and all SHA-1s of all commits after that. but in general you can force a different date by setting the GIT_COMMITTER_DATE or GIT_AUTHOR_DATE environment variables when you invoke git-commit.02:55
jmworx igorgue: no, trying to copy data from another repository while preserving history the best I can02:56
spearce igorgue: no, its not the date of the object. its the date the object was created.02:56
spearce assumes igorgue was thinking modification date of the loose object file in .git/objects/??02:56
igorgue ahh I'm sorry I'm wrong02:56
spearce: yeah I was thinking on that02:56
ajonat spearce, gittorrent sounds nice for resuming clones.. thanks for the info!02:56
jmworx I don't mind if it means I need to undo the commit and do it again02:56
spearce jmworx: yea, you'll have to recreate the commit. set GIT_COMMITTER_DATE to change the committer date; GIT_AUTHOR_DATE to change the author date.02:57
kewarkkrawek02:57
jmworx spearce: Those are env variables or fields in a file?02:58
spearce env vars02:58
jmworx also, what's the format?02:58
spearce email rfc blah blah blah. whatever the email date format is.02:58
jmworx I mean for the date02:58
ah, OK02:58
mordaunt left02:59
spearce it'll accept a lot of weird crap, but in general we set GIT_AUTHOR_DATE using the "Date:" field of an email message during git-am, and internally its the same code to parse both _DATE vars.02:59
fujin rfc2822, isn't it?03:06
blix_ joined03:07
blix_ in git-rebase, what are the reset and tag commands for?03:08
there doesnt seem to be any info in the man pages03:09
LiamH left03:10
fujin blix_: I'd go so far to assume that they reset (to) or tag that commit03:10
naut but speculation, though;03:11
blix_ well, yeah, but there isn't any documentation. should it be a hard, soft or mixed reset? what are the parameters to the tag command?03:11
can tag only do simple tags or can they get annotated/signed etc?03:12
if a chicken in a half laid an egg and a half in a day and a half, how long would it take a monkey with a wooden leg to kick all the seeds out of a dill pickle?03:12
there needs to be more documentation on this stuff03:12
:p03:13
fujin no way! just read the code!03:14
fujin smirks03:14
brosner left03:14
spearce blix_: those reset and tag commands were only very recently added to git-rebase--interactive.03:18
the reset is _only_ a hard reset, as its meant to allow the rebase process to switch to another branch and rebuild that branch, prior to issuing a merge to connect two just-rebased branches together.03:19
blix_ ok, cool03:19
fujin goes crosseyed03:20
fujin and how about the tag command, spearce ?03:20
spearce the tag is meant to allow recreating an annotated tag if the commit one points at is being rewritten. which is sort of nuts, but someone wanted it and added code for it.03:20
blix_ that one's easy03:20
fujin ah03:20
blix_ ok, i guess ill have to look up the syntax for that one, its not straight forward03:21
or maybe i just wont do it03:21
i have that option at this point03:21
thanks03:22
kukks left03:24
markkalderon left03:24
Sonderblade left03:26
saintdev left03:26
csc` left03:29
brosner joined03:36
schacon_ left03:43
mithro joined03:43
cmarcelo left03:43
schacon joined03:47
ekidd left03:58
bdiego left04:00
p28301016 joined04:00
uhop joined04:01
uhop @Tv: after upgrading ubuntu from gutsy to hardy gitosis started to ask for a password, fresh install of gitosis didn't help --- how to troubleshoot? maybe you know the solution already...04:04
brosner left04:06
spearce maybe the /etc/ssh/sshd_config file isn't allowing public/private key authentication and is forcing password authentication only?04:08
halorgium or the permissions on the .ssh directory in the git user is broken now04:08
uhop @spearce: good idea. let me check...04:08
halorgium or it decided to eradicate your authorized_keys file cause it had a whole bunch of weak keys04:09
uhop @halorgium: it is possible too --- some ssh security hole was found and fixed before hardy...04:09
tjafk2 joined04:10
halorgium uhop: yes, that is what i was referring to04:10
spearce is that a new feature? now that they have shipped broken key generators they now ship broken key eradicators? "since your key is broken due to our patch-everything process you now must drive 500 miles to your remote server to generate install a new admin account key. hope you have a nice drive."04:10
uhop :-)04:10
fujin ssh remoteserver 'ssh-keygen -t dsa'04:11
qq04:11
halorgium spearce: haha, probably04:13
heythisisdave joined04:15
Judofyr left04:21
priidu joined04:22
brosner joined04:24
tjafk1 left04:26
a-priori_ joined04:27
statim left04:27
uhop yep, authorized_keys got hosed somehow...04:27
thx spearce and halorgium!04:28
halorgium uhop: no problem04:28
p28301016 left04:29
csc` joined04:30
osamu2001 joined04:36
osamu2001 left04:36
jmworx How do I manually fix merge conflicts instead of using git-mergetool?04:40
a-priori left04:43
manveru jmworx: maybe using git-update-index ?04:47
jmworx ah04:48
phillips left04:48
tflsh is there a way to see if there is anything to pull, without having to change the current working files?04:50
DrNick fetch and then diff04:50
tflsh DrNick: but what if i want to get rid of those fetched files (eg if i didnt really want to pull the files)04:51
DrNick then delete that branch and let garbage collection take care of the objects04:51
statim joined04:52
tflsh what is the name of a fetch'ed branch04:53
i thought it didnt get a name04:53
hm04:53
DrNick depends on how you invoke fetch04:53
kewark joined04:54
pasky 295304 files to consider04:54
that many files in repo.or.cz's /srv/git :)04:54
schacon left04:55
ajonat_ joined04:55
krawek left04:55
kewarkkrawek04:55
pasky root 16023 0.0 0.0 4764 820 ? Ss 2007 18:39 /sbin/sshd05:00
it hurts my heart to kill this now :)05:00
I mean, "2007", aaw ;)05:00
spearce left05:01
comp pasky: well .. it can't run forever ...05:02
igorgue left05:04
pasky yeah, such is the circle of life i guess ;)05:05
broonie left05:06
pasky hmm i guess i can leave it still running for the first rsync pass though :)05:06
broonie joined05:06
mediogre joined05:07
Tv pasky: for atomicity? you could just kill -STOP it05:07
pasky: or firewall it05:07
blix_ whats the proper syntax for a push line in the .git/config file (for a remote). is it "push = refs/heads/*:refs/heads/*"?05:08
pasky Tv: well once it's down it won't go up again, since i'm moving repo.or.cz to another machine05:09
Tv ah05:09
ph^ joined05:09
ajonat left05:11
blix_ when i push to this repo, i want one branch to be a force, and the rest to be FF only05:12
pasky okay05:12
it seems the new machine is kinda broken05:12
the rsync is stuck in sync_buffer(); the other processes stuck in D are kjournald and pdflush, but I don't know if that isn't okay since these are kernel threats, who knows what is going on...05:13
any tips on how to find out what's going on?05:13
npmccallum left05:15
nkallen i have a particular revision that I want to make be HEAD... how do i do that?05:16
Tv nkallen: git checkout foo05:16
nkallen Tv: did that05:16
but i want that to be HEAD on a certain branch05:16
pasky (echo -n 'w' > /proc/sysrq-trigger works nice - looks like it's stuck in raid_release_stripe)05:16
Tv git checkout -b branchname foo05:16
pasky :/05:16
ajonat_ left05:17
pasky i'll try to upgrade to newer kernel maybe05:17
nickh_ joined05:17
nkallen Tv the branch already exists05:17
basically.. i was mucking around on master. i checked out a previous revision and made commits on top of that05:17
i want these latest commits to be the new HEAD of master.05:17
Tv nkallen: many would say git checkout branchame && git reset --hard foo05:18
nkallen: i tend to say git branch -D branchname && git checkout -b branchname foo05:18
nkallen the reset worked. i actually kinda understand why that works05:19
what does -D do?05:19
oh you destroy master?05:19
Tv man git-branch05:19
nkallen i guess it doesn't matter they're all just pointers right?05:19
brosner left05:20
danlarkin left05:25
jmalonzo left05:25
Overshard joined05:26
ph^ left05:27
ph^ joined05:28
saintdev joined05:31
mstormo joined05:33
angasule_ joined05:34
freshtonic joined05:39
uhop left05:43
angasule left05:51
aarapov joined05:52
Modius__ joined05:55
nud_ joined05:56
Tux32 left05:59
Ilari pasky: I see that a lot. Maybe some suboptimal settings?05:59
robinr joined06:01
spearce joined06:02
pasky well, by "stuck" i mean pretty much deadlocked06:02
unless it's supposed to get stuck there for 20 minutes :)06:02
Ilari pasky: How did you see the time since last run?06:02
pasky huh?06:03
oh.. i know i sent it SIGKILL 20 minutes before ;)06:03
blix_ left06:03
Ilari pasky: You SIGKILL'ed rsync, and after 20 minutes it hasn't died?06:04
pasky yes06:04
blix_ joined06:04
Ilari pasky: Sound like some kernel bug then...06:04
pasky now it's back up with newer kernel06:04
well yeah, that's the point ;)06:04
rsync is running again now, hope it owrks realiably now06:04
and /me is off to the city06:04
Modius left06:06
heythisisdave left06:08
chrisb left06:13
deavid joined06:13
dwave left06:16
_zack joined06:16
kewark joined06:19
krawek left06:21
jones- Hello. How can I have git-status be automatically piped to less just like git-diff and git-log?06:22
(preserving colors, as well)06:22
spearce left06:23
a-priori_ left06:23
robinr left06:32
Modius__Modius06:34
etnt joined06:35
kewarkkrawek06:37
Ademan left06:42
bentob0x joined06:45
statim left06:45
thiago_home left06:54
blix_ left06:54
vbgunz joined06:58
krawek left06:59
aarapov left07:01
SuttoL left07:03
cypher23 joined07:03
devogon joined07:06
mediogre left07:07
pasky joined07:23
alenoosh joined07:23
goibhniu joined07:23
alenoosh hi all , is there any git command to avoid tracking some system specific folders or files ( like config files or cache folders )07:24
maio alenoosh: man gitignore07:26
alenoosh for example , when I work with the system , some changes happen to cache folder of my repository but I don't need to commit them but I need the folder cache itself , how can I avoid tracking its contents ?07:26
maio, ok I'll check that07:26
maio, why do I get "command not found" by running gitignore ?07:32
jengelh folders are windows.07:32
etnt left07:33
hliusv561 alenoosh: It is not a command, it is a file...07:33
maio alenoosh: I said 'man gitignore'07:34
alenoosh hliusv561, where is07:34
maio, yes I did that but sorry I thought it's a command07:34
hliusv561, I don't have .gitignore file07:37
reel_ joined07:38
statim joined07:39
mugwump alenoosh, create it - see the examples on the man page you were referred to07:40
aarapov joined07:40
angasule__ joined07:41
redondos joined07:41
TuxCM- left07:42
ruediger joined07:42
_zack left07:43
etnt joined07:48
angasule_ left07:55
nominolo left07:59
lirit joined08:02
_zack joined08:04
seanius left08:04
seanius joined08:04
koke joined08:10
fhobia left08:14
angasule_ joined08:17
visik7 joined08:17
redondos_ joined08:19
Ace_NoOne joined08:19
Ace_NoOne is there something like "git svn status" - i.e. comparing local working copy with the SVN repo?08:20
visik7 is git good to merge a part of a branch into another ? ppl on bzr told me that bzr is not really good in this kind of work08:20
Ace_NoOne because git status just compares to the latest local commit, right?08:21
jmspeex_ Ace_NoOne: well, you can always "git svn fetch" first08:21
Ace_NoOne jmspeex_: not sure I follow08:21
redondos left08:24
redondos_redondos08:24
namenlos joined08:28
nud_ visik7: what do you mean with "a part of a branch" ?08:29
visik7 nud_: for example I've some features developed on a branch and I want to port to the other branch only some of those08:30
context ace_noone. uhh it compares to local HEAD and local index08:30
visik7 left08:30
context git-svn is simply a tool used on top of the local git repo, not some magical tool that makes the local git repo look exactly like svn08:31
visik7 joined08:31
nud_ visik7: then you can08:31
visik7 ops08:31
context even svn status only relates to the last update...08:31
nud_ visik7: you can cherry-pick every commit you want from one branch to another08:31
Ace_NoOne context: true - but if I do a local git commit, that will be the head - will fetch use the SVN head?08:32
context ace_noone. git-svn will add to trunk, which is a 'remote tracking branch08:33
you will want to rebase your local master branch08:33
Ace_NoOne I don't understand08:33
context before dcommit'ing08:33
maybe learn/use git a little more before trying to use git-svn08:33
Ace_NoOne I guess I should08:33
Sho_ joined08:33
angasule__ left08:34
Ace_NoOne problem is, I have no projects using Git - just used it for local versioning so far08:34
context ace_noone. when you git-svn fetch it does not touch your local repo what so ever08:34
err08:34
your local checkout08:34
just like when you git-fetch from another git repo, it does not touch your local checkout08:35
Ace_NoOne hmm08:35
goibhniu left08:36
Judofyr joined08:37
markkalderon joined08:38
hendry left08:39
freshtonic left08:43
koke left08:44
nud_ visik7: does it answer yr question?08:45
visik7 nud_: I dunno what "cherry-pick" means :)08:46
trochala joined08:46
nud_ it means you can take a bunch of commits from a branch and apply them on another08:47
visik7 nud_: seems to be my case08:47
jones- Hi, I get this error from git-svn: what can I do? http://rafb.net/p/OmwnQm66.html08:48
broonie left08:48
broonie joined08:49
nud_ visik7: cherry-pick works one commit at a time, but I think git-rebase --interactive allows you to do that with an interactive interface, saying "I want this one" or "I don't want that one"08:49
GyrosGeier joined08:51
foucist joined08:52
gitte joined08:53
sverrej left08:53
anotherjesse joined08:54
pasky left08:54
nickh_ left08:54
csc` left08:54
CodeOfficer left08:54
lydgate left08:54
lwhacker left08:54
pasky joined08:54
nickh_ joined08:54
csc` joined08:54
CodeOfficer joined08:54
lydgate joined08:54
lwhacker joined08:54
foucist how do i revert a file to it's previous commit (not necessarily the last commit)08:54
context visik7. the man page explains it08:55
nud_ foucist: git-checkout $file ?08:55
or git-reset $commit $file08:56
tonyj left08:56
context jones-. i use git-svn but never touched git-svn rebase. maybe try normal rebase08:56
tonyj joined08:56
jones- context: I found out. There were two "fetch" lines in .git/config08:56
lamont left08:56
lamont joined08:57
foucist nud_: git checkout wouldn't do it, as that only returns the current commit08:57
how about just doing a git cat or git diff on the file08:58
Kbyte joined08:58
foucist but seeing the previous revision of it?08:58
nud_ foucist: git-reset HEAD^ $file should do it, wouldn't it ?08:58
nickh joined08:59
madduck nud_: git-reset does not work on files08:59
use git checkout HEAD^ -- $file08:59
foucist i mean, two revisions ago08:59
madduck use git checkout HEAD~2 -- $file08:59
foucist not necessairly two commits ago though09:00
two commits ago relative to that file ;)09:00
heh09:00
madduck well, find the commit, using packaxe09:00
pickage09:00
pickaxe09:00
wow. :)09:00
or blame or whatever09:00
KiBi_ joined09:01
Malesca joined09:02
Slashbunny left09:02
nickh_ left09:03
Slashbunny joined09:03
pasky repo.or.cz gitweb and git.or.cz back up09:03
git wiki and ssh jail still to go09:03
sbeyer joined09:05
nud_ madduck: actually, git-reset HEAD^09:06
madduck: actually, git-reset HEAD^ $file seems to set the index to what was in $file in the last commit09:07
it just doesn't update the working tree accordingly09:07
madduck well, you need to pass --hard for that to happen09:07
nud_ so using git-checkout is definitely better anyway ;-)09:07
madduck anyway, i wouldn't use reset --hard without being *relaly* careful09:07
nud_ yes, indeed09:08
ebel joined09:09
lamont left09:11
lwhacker left09:12
pasky left09:12
lydgate left09:12
csc` left09:12
CodeOfficer left09:12
pasky joined09:13
csc` joined09:13
CodeOfficer joined09:13
lydgate joined09:13
lwhacker joined09:13
lamont joined09:14
radarek joined09:16
ckknight left09:19
ckknight_ joined09:20
lamont left09:24
grasshopp joined09:26
lamont joined09:28
markkalderon left09:29
KiBi left09:33
koke joined09:34
foucist how do i get that nice little report that 'git pull' gives with the ++--- stuff, but for the combined last 2-3 revisions09:35
Dreamer3 left09:36
nud_ foucist: see git-diff09:37
something like git-diff --stat HEAD^^..HEAD should do09:37
mithro left09:40
foucist thanks09:40
pasky # apt-get install git-core09:40
The following NEW packages will be installed:09:41
git-core libcurl3-gnutls liberror-perl rcs09:41
amusing :)09:41
shd :p09:41
janm joined09:44
koke_ joined09:44
pasky ok, everything but git wiki should be back up now09:47
sverrej joined09:49
AlexB pasky: Heh, rcs?09:53
foucist left09:54
radarek left09:55
lwhacker left09:55
pasky left09:55
lydgate left09:55
csc` left09:55
CodeOfficer left09:55
radarek joined09:55
pasky joined09:55
csc` joined09:55
CodeOfficer joined09:55
lydgate joined09:55
lwhacker joined09:55
markkalderon joined09:55
lwhacker left09:58
pasky left09:58
lydgate left09:58
csc` left09:58
radarek left09:58
CodeOfficer left09:58
radarek joined09:59
pasky joined09:59
csc` joined09:59
CodeOfficer joined09:59
lydgate joined09:59
lwhacker joined09:59
koke left10:00
pasky even wiki should run now10:06
so if anything wrt. git.or.cz or repo.or.cz is broken please tell me - all should work now10:06
visik7 left10:08
Antiarc left10:11
geckosenator left10:11
madduck pasky: only git 1.4.4.1 in debian depends on rcs. i'd suggest using backports.org, which has 1.5.5.110:15
nud_ pasky: out of curiosity, how much disk space does repo.or.cz take on the server?10:16
lwhacker left10:17
pasky left10:17
lydgate left10:17
csc` left10:17
radarek left10:17
CodeOfficer left10:17
radarek joined10:17
pasky joined10:17
csc` joined10:17
CodeOfficer joined10:17
lydgate joined10:17
lwhacker joined10:17
pkufranky joined10:18
Modius left10:20
Modius joined10:21
jelmer left10:26
jelmer joined10:27
deavid left10:34
deavid joined10:35
sverrej left10:38
sverrej joined10:38
pasky okaaaay10:38
now things broke a bit :)10:39
meandtheshell left10:40
telmich good morning10:40
alenoosh left10:42
alenoosh joined10:43
Modius left10:47
Modius joined10:48
Malesca left10:49
hliusv561 pasky: Define "broke a bit"? :-)10:53
pkufranky left10:55
pasky hliusv561: as in "default gw was not set on the server" ;)10:56
Yuuhi joined10:56
CodeOfficer left10:57
trochala left10:57
Modius left11:07
Modius joined11:07
Modius__ joined11:11
Ademan joined11:11
Modius__ left11:12
ruediger left11:12
charon joined11:13
pkufranky joined11:13
Modius__ joined11:13
ruediger joined11:13
GyrosGeier left11:14
pilif joined11:18
pkufranky left11:19
godog joined11:22
adante left11:22
adante joined11:23
te left11:23
comp pasky: well, if you have a remote serial console ... it shouldn't be a problem ..11:24
traceroute ends at aorta.net11:24
pasky i don't have remote serial console :)11:25
but i fixed that11:25
now the whole thing went down and i have no idea why11:25
comp some "monkey" on a telephone line?11:25
pasky someone in the server room is looking at it right now11:25
comp ah11:25
gerhardlazu joined11:25
kukks joined11:26
Overshard left11:27
Modius left11:27
Modius joined11:28
gerhardlazu how do I update a submodule after changing its path in .git/config?11:29
pkufranky joined11:29
Modius left11:29
Modius joined11:29
Modius left11:32
dwmw2_gonedwmw211:32
Modius joined11:32
anotherjesse left11:34
koke_ left11:40
ekidd joined11:42
redondos I was on a detached head, I din't notice and switched to master. how can I go back to the previous state?11:44
(assuming I don't know the commit id)11:44
hliusv561 redondos: 'git reflog'? It prints abbrevated commit IDs and symbolic names for recent states.11:44
redondos ah, right. thanks hliusv56111:45
Modius__ left11:45
pasky great11:48
kernel panic11:48
:/11:48
Modius left11:50
hliusv561 pasky: Killing interrupt handler, killing init or something even more exotic? :-/11:50
pasky i unfortunately wasn't able to get much details from the person rebooting it :/11:50
I'll setup netconsole not11:51
*now11:51
Modius joined11:51
comp pasky: but if you can't connect to it ..11:52
pasky well it's rebooted now :)11:55
but i can't figure out how to setup the damn syslog-ng to accept log messages by udp11:55
hliusv561 pasky: 'netcat -u -l -p <port>'? Or use plain 'syslog'?11:56
lirit left11:57
pasky i have syslog-ng, not syslog11:57
and i don't want to waste a screen window just for this, who know when does it oops again11:57
Mikachu are screen windows expensive?11:57
comp (or make a C forking program)11:57
hliusv561 Mikachu: I have hit a limit of 40 per session... :-)11:58
pasky Mikachu: I rent one for 30 cents per day11:58
Lemurnomicon joined11:58
hliusv561 And running nested screen sessions is not fun...11:58
pasky i actually do that a lot :)11:59
telmich hliusv561: well, just ctrl-a-a-a-a it ;-)11:59
charon left11:59
lcapitulino joined11:59
hliusv561 telmich: Use higher branch factor? If one uses ten of sessions in master for secondaries, one gets 430 ptys...12:00
pkufranky left12:00
telmich pasky: udp();12:00
madnificent joined12:00
lirit joined12:01
telmich hliusv561: well, I use nested screens only over different hosts12:01
pasky: I got that in source s_all { ... };12:01
hliusv561 telmich: I have actually used nested screens on the same host... :-)12:01
madnificent what must I add to .gitignore to ignore all files that end with ~ ?12:01
hliusv561 madnificent: '*~'?12:01
telmich is a big syslog-ng-fan, although metalog is nice, too12:02
wgaffa joined12:02
pasky telmich: i needed custom port, but now I figured out that I have to write it like udp(port(1234))12:02
and I firmly believe syslog-ng is infinitely stupid12:02
telmich pasky: jep12:02
pasky :)12:02
Modius left12:02
madnificent hliusv561: would that ignore those files in all subdirectories too?12:02
hliusv561 madnificent: Yes.12:02
Modius joined12:03
madnificent thanks! I must've done something stupid... didn't work last time I tried it12:03
comp I can't figure out what are you trying to do :)12:03
Modius left12:03
comp remote logging is possible with syslog-ng ..12:03
pasky yes but the syntax is too ugly12:05
hliusv561 comp: That was about figuring out how to do UDP remote logging with syslog-ng. With non-default port. And, no, using TCP was not an option.12:05
telmich comp: he already fiexd it12:05
comp ah .. :)12:05
wgaffa does gitk work in a cygwin/windows environment?12:06
deavid left12:07
comp I thought that syslog-ng is using UDP for it by default ..12:08
doener joined12:08
Mikachu wgaffa: i think i heard it does12:09
telmich comp: no, not if not enabled12:10
madnificent left12:10
pkufranky joined12:10
cyclist joined12:11
bentob0x left12:14
Modius__ joined12:16
pkufranky left12:23
cyclist left12:25
wgaffa I've read a few pages on git and svn and git seems good, but as a single programmer for personal VCS is git better than svn or no difference?12:27
cehteh git is better :)12:28
Mikachu with svn i think you'd need to set up a server too12:28
ehamberg git is much easier to set up12:28
nud_ wgaffa: git is better for a single reason: no need for a server ;-)12:29
git-init in your project directory and you're done12:29
wgaffa ah, git seems to get better and better for each moment :)12:30
hliusv561 Also, Git is usually much more space-efficient..12:30
telmich if I want to merge all changes from origin/master, but want to omit merging of file_a, which I know is good, which conflicts with the merge, what is the best reason to resolve it?12:31
wgaffa yeah, read something about 30x space efficient12:31
telmich wgaffa: git is useful for offline working, compared to central systems (which I use alot)12:32
wgaffa telmich, I'm never offline so that isnt that big deal to me but a good point if I will go offline sometime12:33
Mikachu telmich: if it's just one file, just do the merge and then git checkout master -- file_a and commit (assuming other conflicts are resolved)12:33
pkufranky joined12:33
telmich Mikachu: argh, that was way too easy12:33
Mikachu telmich: (and that master is the branch you're merging into)12:33
i guess HEAD would be fine too actually12:34
redondos_ joined12:34
telmich not sure where HEAD points to in a merge, but maybe yes12:35
Mikachu since it can only point to commits and the merge isn't committed yet, it should be pointing to the commit before the merge that has the file you want12:35
hliusv561 HEAD during merge points to the branch one is merging to (i.e. the one that was HEAD immediately before the merge command was issued).12:36
Mikachu in other words, it doesn't change at all until you commit the merge12:37
alenoosh left12:37
BabelO joined12:43
mabs29 joined12:43
sbeyer left12:44
pkufrank1 joined12:44
redondos left12:45
redondos_redondos12:45
pkufranky left12:45
gitte pasky: any progress on the pubkey front?12:48
mabs29 Hello everyone. I'm just replacing my Mercurial system with Git and there are a few hurdles I'm tripping over. My biggest one is private access with minimum control: Gitorious user keys don't see to permit password-less login no matter what sshd_config says12:48
d0k joined12:48
mabs29 Oh god, that sounds hauntingly familiar territory. :(12:48
gitte mabs29: probably a PAM problem; I had the same (but without Gitorious)12:48
Modius joined12:49
mabs29 gitte: aha! That makes sense. How'd you fix it? Also, what's your set up for SSH access without Gitosis (whoops, getting a bit fried I think)12:49
gitte mabs29: in particular, I had to edit /etc/pam.d/common-auth, and change the "nullok_secure" to "nullok".12:49
mabs29: I have regular non-chrooted access to that machine.12:50
mabs29: my users are real non-chrooted users, too ;-)12:50
cbrake_awaycbrake12:50
mabs29 gitte: I tried that at first but it never found it like hg seemed to12:50
mcella joined12:50
mabs29 gitte: in fact, that's my setup already, so I'd prefer to use that12:50
gitte mabs29: did you study the system logs? (I.e. everything in /var/log/?)12:51
mabs29 gitte: yeah, I managed to take care of most of the issues, until fixing Gitosis seemed like a quicker solution (wasn't). I'd just like to get to a working point. I'm just making the PAM change you suggested and see if that turns the lights on.12:53
gitte mabs29: could be that it has to be somewhere else, too...12:53
ckknight_ckknight12:53
mabs29 gitte: nod - any other tips for attack around the /etc/ jungle?12:54
gitte Well, best hint for me was in the /var/log/messages, IIRC.12:54
cmarcelo joined12:54
gitte Or .../auth12:54
cmarcelo left12:59
mabs29 gitte: nod. Whole heaps of things in there, but still not getting to grab a Git repository using SSH. Hmm. It is possible, right? :)13:00
gitte mabs29: the thing is: you want password-less access, right?13:01
cmarcelo joined13:01
mabs29 gitte: nod13:02
Modius left13:04
mabs29 gitte: from a remote computer anywhere (with priv/pub keys shared), this to work smoothly: git clone ssh://user@host/path/to/repo.git repo-cloned13:04
gitte Yes, yes, I understand.13:04
Exactly the thing I tried to.13:04
Try to find out what sshd says about your attempts.13:04
Modius joined13:04
hliusv561 mabs29: Maybe just 'ssh user@host' could be useful for troubleshooting. To get it work or at least abort after authentication completes...13:05
Modius__ left13:06
pkufrank1 left13:06
gitte Oh, and you need an empty password in /etc/passwd.13:06
mabs29 gitte: it's been operating at debug3 just to be sure. The main complaint now for real user access is perhaps the following isn't right: sshd[xxxx]: git-upload-pack '/git/repo.git13:06
hliusv561 mabs29: For account with full-powered shell, 'ssh user@host git --version' is usually a good test...13:07
mabs29 hliusv561: oh I can definitely login without a password, it's the same account13:07
gitte So you can connect interactively, and it says "Go away! Do you think I am a shell?"?13:07
mabs29: then it is not an issue with the password-less account.13:07
mabs29: it is an issue with your git installation.13:07
hliusv561 gitte: Has it changed? IIRC, it was 'What you think I am? A shell?'...13:08
telmich hmm, using git-svn rebase and dcommit really screws up workflow, when using git-push/fetch to a normal repo, too13:09
hliusv561 mabs29: And if command like that suceeds, it should ONLY print 'git version <something>', possibly preceded by password prompt. NOTHING ELSE.13:09
mabs29 hliusv561: I get a version back13:09
hliusv561: yup, that's all it does. Git 1.5.5.1 by the way.13:10
hliusv561 mabs29: On the server, is 'git-upload-pack' in the same directory as 'git'?13:10
mabs29: Most probably in something like /usr/local/bin, or /usr/bin...13:12
Inviz joined13:12
Inviz Hey guys. Is there a way to search local repo for the line? I mean, i want to know when the line was added13:13
ekidd left13:13
hliusv561 Inviz: -S to git log?13:13
pkufranky joined13:14
mabs29 hliusv561: Right you are! Didn't have its location in /etc/profile when setting PATH. Now I get a different error and I think that's fixed now, actually. Thanks a lot!13:14
Inviz hliusv561: can you please be more specific? :)13:14
hliusv561 Inviz: git log has -S option (pickaxe), which can be used to search when some string appeared in source. See git-log(1). Also, there is command called 'blame'.13:16
telmich Inviz: git-log '-Syour line'13:16
koke joined13:16
Inviz many thanks, will try13:16
dwave joined13:18
entropy joined13:21
WorkingGeier joined13:21
entropy hi everyone, how do I "uncommit" my most recent commit? I've not pushed it yet and I've changed my mind and want to obliterate it13:22
WorkingGeier remove completely, or change?13:23
doener you can amend it with "git commit --amend" (stage the desired changes before that)13:23
to totally get rid of it (as far as your current branch is concerned): git reset --hard HEAD^13:23
hliusv561 entropy: Or just 'pop' it off: 'git reset --soft HEAD^'.13:24
doener or, if you prefer that over amending it, you can pretend that you did not do the commit yet, with "git reset --soft HEAD^"13:24
entropy i have many commits though, I don't want to lose all commits not yet pushed, only the most recent13:24
doener entropy: thus HEAD^, that resets your branch to the parent of HEAD13:24
entropy ah13:25
pkufranky left13:25
doener IOW, one commit earlier13:25
entropy thanks doener, hliusv56113:25
doener to go five commits back, that would be HEAD^^^^^ or HEAD~513:25
entropy oh, nice13:25
will that change my working directory source?13:25
will my working source also be "reset" or just the commit log13:26
doener only with --hard13:26
entropy awesome13:26
ok13:26
doener see git-reset(1)13:26
entropy thanks13:26
entropy nods13:26
doener and for an explanation of HEAD^, HEAD~23, foo^! and so on, see git-rev-parse(1)13:26
LiamH joined13:29
eternaleye left13:30
devurandom joined13:32
charon joined13:33
pkufranky joined13:33
mdales joined13:33
threeve joined13:34
krh joined13:35
threeve_ joined13:35
mdales how do I find the object id for a tagged object if I know the tag?13:35
Tv git show13:36
but every command should just accept the tag name13:36
Modius left13:36
Modius joined13:37
mdales well, I wanted to inspect back in the tree programmatically to find the last point I tagged, and then work out how many commits there are between me and it, as a sort of way of generating a build number13:37
hliusv561 mdales: If you really need the object ID of object pointed by tag (recursively peeled): 'git rev-parse tag^{}'...13:37
doener mdales: git describe13:37
mdales thanks all13:38
schacon_ joined13:39
mabs29 left13:41
janm left13:41
mdales then I can sort of do a git-rev-list [tag object id]..HEAD to get a number to tag a particular build made from the central repo13:42
actually13:42
just noticed I can put the tag in13:42
doh13:42
git-rev-list "tag"..HEAD | wc -l :)13:42
zeenix joined13:42
telmich apropros git-describe, anyone a good hint why it returns "fatal: cannot describe 'da5a9fadb6aa13e9d3f4e98aff1baefab35cb508'"?13:42
hliusv561 Actually, 'tag..'. HEAD is impiled there.13:43
telmich there are annotated tags, but maybe it broke because of git-svn rebase13:43
janm joined13:44
heythisisdave joined13:44
pkufranky left13:45
EmilMedve joined13:45
hliusv561 telmich: It returns that kind of error (with default options) it there are no annotated/signed tags in past of current commit.13:45
devurandom Hello.13:47
telmich hliusv561: git tag -n shows them13:47
devurandom Can I do what git-format-patch does in email format with just plain patches? A patch of a range of commits, each one prefixed with the commit message, etc?13:48
ph^ left13:48
doener mdales: what's wrong with just using what "git describe" gives you?13:48
hliusv561 devurandom: Huh. If you don't specify anything 'exotic', like --binary, -M or -C, those patches should be patch-compatible.13:48
devurandom Yes, they are. But they have all the email metadata in them.13:49
Like Subject, and so on.13:49
jpeeler joined13:49
hliusv561 devurandom: AFAIK, They still are patch-compatible.13:50
devurandom: Modulo misbehavior from 'patch'... IIRC, commit messages containing what looks like diff output can cause problems...13:51
Modius__ joined13:51
cannonball joined13:51
Ryback_ joined13:51
threeve left13:52
gerhardlazu I have changed the path of a submodule in .git/config . How do I force my already initialized submodule to re-download from this new path?13:52
Sho_ left13:52
devurandom git-show cannot output multiple patches? I find it looks better.13:52
garrin left13:53
doener devurandom: git rev-list start..end | xargs git show13:53
maybe with --topo-order13:53
hliusv561 gerhardlazu: You also probably need to alter the URL in both .git/config files (of supermodule and submodule)... And perhaps even in .gitmodules of superrepo... As one can see, submodules utilities are still a bit work in progress...13:54
doener and --reverse13:54
Mikachu git log -p?13:54
Modius__ left13:54
doener ehrm, yeah... for a consecutive row of commits that makes more sense...13:54
I've been testing with random commits13:54
Modius__ joined13:54
gerhardlazu hliusv561: I thought .gitmodules was for other devs on the project as well. I only want to use a different path for a submodule locally. Can it be done or is it just a "feature" at this time :D?13:55
hliusv561 gerhardlazu: Then just editing both config files should be enough...13:55
gerhardlazu nope13:56
after editing both of them && git submodule update, nothing happens13:56
hliusv561: maybe because the submodule already exists...13:57
because if I go into that dir and do a git remote show origin, I get the initial path...13:57
hliusv561 gerhardlazu: In supermodule, do 'git rev-parse HEAD:path/to/submodule'. In submodule, do 'git rev-parse HEAD'.13:57
gerhardlazu: That path comes from .git/config of submodule...13:58
gerhardlazu: Those two commands should dump 40 hex numbers each? Are those the same?13:58
Judofyr left13:58
gerhardlazu yes they are13:58
hliusv561 gerhardlazu: Then no wonder 'git submodule update' did nothing.13:59
gerhardlazu an origin on the remote in the submodule still points to the other URL13:59
Judofyr joined13:59
gerhardlazu ok, so how should I go about it?13:59
delete and then re-add & init?13:59
is it at all possible to have a certain path for a submodule locally and a different path in the checked in repo?14:00
hliusv561 gerhardlazu: Checkout proper version of submodule, and add it to superproject (WARNING: do not put trailing '/' to the submodule path in add command).14:00
gerhardlazu hliusv561: yes, that caught me only 1, the / :D14:00
doener devurandom: if you only want the patches, without messages, this works as well: git rev-list --reverse --topo-order HEAD~5.. | nl | (while read num hash; do git diff-tree -p $hash^! > $num; done)14:00
Mikachu so git doesn't mind if the superproject has files in the same directory as the submodule?14:01
(as long as the submodule doesn't have a file there of course)14:01
pkufranky joined14:01
Modius left14:02
hliusv561 Mikachu: 'git add submodule' on submodule adds the submodule. 'git add submodule/' adds the files from submodule (which almost invariably is unwanted)...14:02
Modius joined14:03
Sho_ joined14:06
lamont left14:08
devurandom Git manual says about git-send-email: "If a username has been specified (with --smtp-user or a configuration variable), but no password has been specified (with --smtp-pass or a configuration variable), then the user is prompted for a password while the input is masked for privacy.14:08
Is that correct?14:08
Modius__ left14:09
devurandom I have a smtpuser specificed in ~/.gitconfig, but I am not prompted for any password...14:09
zeenix_ joined14:10
ekidd joined14:11
zeenix left14:11
comp how can I print a commit message of a certain commit? let's say I want "medium" output (the git-log default) .. but after reading through manpages of git-rev-parse and git-rev-list, I still don't know how to do that14:13
git-log can display ranges14:14
cedricv git show <commit> ?14:14
comp that will print it with a diff14:14
doener comp: git log -1?14:14
comp doener: this prints only the latest one..14:15
nud_ comp: depends on the --pretty you give it (for git-show)14:15
doener well, add the commit-ish after the -1... git log -1 HEAD~53414:15
nud_ you can also git-log HEAD~5 --pretty=oneline -114:15
pkufranky left14:15
Mikachu comp: you can use either git log -1 sha1 or git show -s sha1, git log -1 is faster14:16
lamont joined14:16
comp doener: works :)14:16
yeah, I thought that git-log -num display only a range of HEAD..commit14:16
zeenix_ left14:18
pkufranky joined14:18
zeenix joined14:18
pdherbemont left14:19
pdherbemont joined14:19
lamont left14:19
lamont joined14:20
etnt left14:20
ceez joined14:21
ruediger left14:25
graywh|work joined14:26
reel_ left14:28
pkufranky left14:28
reel_ joined14:30
bdiego joined14:32
leitgebj joined14:34
mdales doener: perhaps my ignorance of git describe :)14:36
mdales looks14:36
deavid joined14:37
lirit left14:37
Kbyte left14:38
pkufranky joined14:39
cehteh how do i reset another branch to my current HEAD without checking it out? git fetch HEAD:other_branch ?14:40
gitte git push . +HEAD:other14:41
devurandom left14:41
cehteh heh .. fetch with . did it14:41
mdales doener: even better - thanks for that pointer14:42
cehteh but ok :) push sounds more intuitive14:42
shoe joined14:45
warthog9 left14:46
peeja left14:49
devurandom joined14:51
ph^ joined14:51
devurandom Does git-send-email work with ssmtp?14:52
tcoppi left14:52
devurandom It does not seem to authenticate to the server, no matter what I pass as --smtp-user, etc.14:52
cehteh devurandom: never tried, but i would expect that14:52
retybok joined14:52
devurandom Isn't ssmtp expected to be sendmail compatible?14:52
retybok is there a way to configure a repo so that git push pushes to multiple remote repos?14:53
cehteh well yes .. but with *most* features beeing nops14:53
devurandom cehteh: If I pass -au and -ap manually, it works though...14:54
cehteh devurandom: well i cant say, i use ssmtp often for servers without bigger MTA's .. but not for git14:55
namenlos left14:56
lolage0 joined14:56
tcoppi joined14:57
wgaffa left14:59
devurandom If I see this correctly then it is the fault of Net::SMTP and not Git's own?14:59
entropy left15:00
balrok joined15:03
brosner joined15:07
EmilMedve1 joined15:07
EmilMedve left15:08
EmilMedve1EmilMedve15:08
ph^ left15:09
balrok my "git clone" sends nearly all its output as stderr.. but everything works fine.. is there a way to tell the program, that it should send only stderr-output if its a real fault?15:11
i've uploaded an example what comes to stderr: http://rafb.net/p/eGlPEB47.html15:11
dwave left15:13
ekidd left15:16
aarapov left15:19
ekidd joined15:21
ekidd left15:21
nud_ left15:24
a-priori_ joined15:27
schacon_ left15:29
Inviz left15:29
pkufranky left15:29
devogon_ joined15:32
mando joined15:33
ekidd joined15:35
stouset joined15:36
mmsc joined15:40
mmsc Hi. I just installed msysgit, and I used the option that let's me use git with the Windows command line. Problem is when I enter 'git' or any of its commands, I see some text flash across the screen and then the command prompt immediately shuts down15:41
doener start the command prompt with "cmd" and enter the commands there?15:42
s/start/when starting/15:44
devogon left15:44
halfline joined15:46
mmsc doener: I must have missed that. Is there a reason it works that way and you cannot just open up a command prompt and have 'git' work?15:46
Ilari mmsc: Well, if you could make the command prompt wait explicit close...15:47
doener mmsc: by "open up a command prompt" you mean "Start->Run", right?15:47
mmsc doener: yeah15:48
doener mmsc: that won't even have the right working directory, so it's kinda pointless15:48
taq joined15:48
chris2 joined15:48
peeja joined15:49
mmsc I've always done it that way, didn't know any better15:49
taq Hey, is there an option to ignore symbolic links with git ?15:49
krawek joined15:50
markkalderon left15:53
kewark joined15:54
stouset left15:54
ph^ joined15:55
ph^_ joined15:55
doener mmsc: maybe you got confused by the install option. It most likely meant that you can run the commands from cmd or similar, not "Start -> Run"15:55
peeja left15:57
ph^ left15:58
pkufranky joined15:58
ph^ joined15:58
cedricv is there an option equivalent for git apply --whitespace=fix for git commit?15:58
leitgebj Tv, any idea why the authorized_keys file for the git user wouldn't be updated on a push of the gitosis-admin repository?15:58
charon left15:59
mdales hmmm. I seem to be able to do a git-rev-list tag..HEAD on a branch where tag is on another fork. is this normal?16:00
devogon joined16:01
mdales in the other branch it is one after the fork16:01
devogon left16:02
devogon joined16:02
devogon left16:03
mdales indeed. if I do it to the head of the other fork I get the same result - it seems to take me down as far is the fork point and stop16:03
Tv leitgebj: first thing to check, are there extra lines16:05
leitgebj: if there are, it might be updated ok, but you're just not using the gitosis-managed lines16:05
leitgebj Tv, do you mean that there should be no extra lines in the authorized_keys file?16:05
peeja joined16:06
taq would be a good idea to include the symbolic links dirs on .gitignore so? :-)16:06
Tv leitgebj: not unless you know what you're doing16:06
leitgebj: if you have trouble, you don't ;)16:06
leitgebj The problem is that when I add a new key to gitosis, an entry isn't added to the authorized_keys file.16:06
Tv leitgebj: then the postupdate hooks isn't run, or is failing16:07
leitgebj: any output on the push?16:07
leitgebj Tv, no output on the push16:07
Tv, the postupdate hook wasn't running at first on a debian system, so I had to change a symlink16:07
Tv leitgebj: huh16:08
leitgebj: what symlink?16:08
leitgebj Tv, from the hooks dir for post-update to the correct script on my system... at first the symlink didn't point to a valid file16:08
Tv uh-huh16:09
you broke it16:09
you get to keep both halves16:09
leitgebj :-(16:09
Tv leitgebj: ls -l ~git/repositories/gitosis-admin.git/hooks/post-update16:10
taq left16:10
leitgebj Tv, lrwxrwxrwx 1 git git 97 2008-05-19 10:56 /home/git/repositories/gitosis-admin.git/hooks/post-update -> /usr/share/python-support/gitosis/gitosis-0.2-py2.5.egg/gitosis/templates/admin/hooks/post-update16:10
Tv ls -l /usr/share/python-support/gitosis/gitosis-0.2-py2.5.egg/gitosis/templates/admin/hooks/post-update16:11
leitgebj ls: cannot access /usr/share/python-support/gitosis/gitosis-0.2-py2.5.egg/gitosis/templates/admin/hooks/post-update: No such file or directory16:11
krawek left16:11
Tv leitgebj: what do you mean "at first"?16:11
it's currently broken16:11
leitgebj Tv, I see now...16:11
Don't know how I missed that. I thought that I fixed it...16:12
devogon_ left16:12
ruphy left16:12
Tv now, as to why it would be wrong in the first place -- either your python, distutils, or the debian "helper" libs are buggy16:13
i template=resource_filename('gitosis.templates', 'admin')16:13
the path i use comes straight from pkg_resources, aka setuptools/distutils16:13
gotta walk the dogs, eta 50 min16:14
leitgebj Thanks for the help Tv!16:14
fhobia joined16:15
kumbayo joined16:16
kewarkkrawek16:16
johan-s joined16:19
mmsc left16:21
ph^_ left16:27
peeja left16:27
aporetic left16:27
aporetic joined16:28
SRabbelier left16:28
SRabbelie1 joined16:28
mcella left16:28
SRabbelie1SRabbelier16:28
_zack left16:29
schacon joined16:31
plediii joined16:31
gitte left16:31
koke left16:33
koke_ joined16:33
redondos left16:33
roylee17 joined16:35
jacobat left16:35
redondos joined16:37
nud joined16:37
charon joined16:39
koke_ left16:43
angasule_angasule16:44
fhobia left16:48
deavid left16:48
statim left16:50
WorkingGeier left16:51
Chairos joined16:52
kanru joined16:52
ajonat joined16:55
broheem joined16:56
tvachon joined16:57
cliffstah joined17:00
eMBee good evening17:00
if i clone a repo with git svn, but include only the trunk, how can i add branches later?17:01
^Beket| joined17:05
retybok left17:05
doener eMBee: add a branches entry to the svn-remote section in the config17:05
eMBee ok17:05
eternaleye joined17:06
alley_cat joined17:06
eMBee then i have a different problem. the branches thing only handles branches in one directory level. unfortunately thos repo has got branches in almost random places17:06
chrisb` joined17:07
Chairos that's kind of stupid17:07
eMBee it certainly is17:07
Ilari "This is your brain on SVN" :->17:07
doener you can also just add the branches in separate svn-remote, "git svn init svn://url/to/branch17:07
chrisb`chrisb_17:07
eMBee but that'swhat you get when your revision control interface looks like a filesystem and allows people to move things around randomly17:07
doener or multiple svn-remote, each using --branches17:07
eMBee ahh17:08
doener last time I tried, git-svn still correctly found parent/child relations17:08
chrisb_chrisb17:08
doener might depend on the fetch order though17:08
timocratic joined17:09
eMBee i think the fetch order should not matter, if it fetches the branch first and then the trunk at the worst case it will import the same commits multiple times17:09
Chairos I have a different kind of git-svn problem. There's a commit I made which predates my move to git-svn, so it exists in the 'master' aka remotes/trunk branch. I need to revert it. But I have a local branch that depends upon that commit. Can I revert it in master, while still somehow keeping it in that local branch?17:09
ph^ left17:09
eMBee you want to remove the commit from the master and rewrite the whole branch?17:10
doener Chairos: hm? git revert will just add a new commit that reverts the introduced changes. Your other branch won't magically get that commit17:10
eMBee i'd just fix the change it introduces (ie the reverse of the commit) and put that on top of the master17:11
yeah, exactly what git-revert does17:11
Chairos yeah, but then I want to re-add the commit at the 'bottom'17:11
of the branch17:11
Tv Chairos: what you want is a rebase..17:12
Chairos that's what I thought, but I'm not sure how to do it.17:12
guess i should go reread the man page17:12
eMBee did others clone your repo?17:13
Chairos I'm the only one using git-svn; everyone else is using regular svn.17:13
so, yeah, other people have that commit I'm reverting.17:13
eMBee then don't rebase17:13
Tv oh it went to svn? then don't touch it17:13
eMBee because you won't be able to push commits back to svn after that17:14
Chairos great17:14
Tv Chairos: please explain "There's a commit I made which predates my move to git-svn, so it exists in the 'master' aka remotes/trunk branch."17:14
Chairos: commit was made with svn?17:14
Chairos yes.17:14
Tv and the local branch?17:14
ph^ joined17:15
Chairos that commit SHOULD have been in the local branch instead of 'trunk', but I wasn't using git-svn at the time.17:15
eMBee if you rebase your master branch then it is no longer the same branch as the trunk on svn17:15
Tv Chairos: just revert that commit in your master17:15
Chairos tv: yeah, but I have a local branch that needs that commit.17:16
Tv that can be fixed afterwards17:16
Chairos that's what I'm asking how to do.17:16
cedricv why not cherry-pick that commit then from your local branch that needs it?17:16
koke joined17:16
Tv Chairos: go ahead with the revert first17:16
eMBee so the local branch does not contain the commit yet?17:17
Chairos eMBee: no.17:17
eMBee ah, ok17:17
Tv Chairos: git checkout -b temp the_original_mistake_commit && git rebase --onto master HEAD~ && git checkout your_local_branch && git rebase --onto temp master && git branch -d temp17:18
Chairos tv: ah, thanks.17:18
Tv oh one more thing17:18
Chairos goes to read the manpage to figure out exactly what that will be doing.17:18
eMBee hehe17:19
Tv Chairos: git checkout -b temp the_original_mistake_commit && git rebase --onto master HEAD~ && git commit --amend # remove any git-svn id, if there17:19
then continue with the previous17:19
eMBee HEAD~ is the reverse of a commit? why not just use git revert?17:21
Tv eMBee: huh?17:21
eMBee what does git rebase --onto master HEAD~ do?17:22
Tv eMBee: man git-rebase17:22
eMBee wait17:22
eMBee needs sleep17:22
eMBee hmm17:22
kewark joined17:23
balrok left17:23
ekidd left17:23
krawek left17:24
kewarkkrawek17:24
eMBee is still confused: git rebase --onto master HEAD~; would rebase the_original_mistake_commit on top of master, but the_original_mistake_commit is already in master, why put it there again? does that cause the commit to be reverted?17:25
Tv eMBee: it was reverted17:27
eMBee: that undoes the revert in temp17:28
s/undoes the revert/redoes the original/17:28
Chairos Tv: I get a conflict in the git rebase --onto temp master stage17:29
Tv Chairos: well rebases are merges, merges can get conflicts. resolve it.17:29
arwed joined17:31
mdales left17:31
ebel left17:31
Chairos I just ran git checkout -b temp the_original_mistake_commit && git checkout your_local_branch && git rebase --onto temp master your_local_branch && git branch -D temp and it seemed to have worked.17:31
koke left17:33
aarapov joined17:33
WorkingGeier joined17:34
alley_cat left17:35
Chairos thanks guys17:38
yann left17:39
deavid joined17:39
robinr joined17:40
gerhardlazu left17:45
arwed left17:45
ruediger joined17:48
hagna joined17:48
bugfux joined17:48
bugfux I am using submodules, and when I try to change branches I get a fatal: Untracked working tree file 'vendor/plugins/will_paginate/LICENSE' when will_paginate is a submodule17:49
(so all of that is the submodule, which ofcourse its is untracked)17:49
hagna in my svn repo I have a bunch of projects but when if I switch to git I'll make a git repo for each project since I don't ever want to branch the whole collection of projects17:50
is that correct thinking?17:50
Tv hagna: most likely yes17:50
hagna Tv: ok good17:50
bugfux anyone have any ideas?17:51
hagna bugfux: what's a submodule?17:51
bugfux git submodules17:51
statim joined17:52
ekidd joined17:54
hagna Tv: it's all because we really use svn for copying and backing up but not for branching or doing scm things17:55
eMBee doener: if i run git svn init again on a repo that is an svn import than i get an error17:56
threeve joined18:02
Chairos left18:02
arwed joined18:02
ajonat left18:02
threeve__ joined18:03
cedricv left18:05
cedricv joined18:06
cedricv left18:07
EmilMedve left18:07
doener eMBee: ah, you need to pass a unique name for the new svn remote18:08
IIRC as the last parameter, after the url18:08
git-svn(1) probably knows18:08
Ace_NoOne are there any public SVN servers (anon write access) I could test my git-svn skills on?18:10
doener just create one locally?18:10
Ace_NoOne I've never set up an SVN server, and have no intention of learning obsolete stuff ;)18:11
madduck Ace_NoOne: svnadmin init or so18:11
doener svnadmin /path/to/repo;18:11
hagna Ace_NoOne: it's two lines18:11
madduck then just use the file path18:11
doener then just use the file:/// protocol18:11
Ace_NoOne oh cool - thanks18:12
eMBee doener: yeah, figured it out, thanks18:12
aarapov left18:13
doener eMBee: if you use "git svn fetch" you might want to add --all now18:13
EmilMedve joined18:13
ruediger left18:13
eMBee doener: yeah, got that too, even though --fetch-all is only hinted at in the manpage, it is not documented (neither is --all)18:16
hagna is anyone using git for their whole machine?18:17
Mikachu i sure hope not18:18
threeve_ left18:18
threeve left18:18
arwed left18:20
eMBee if you want revision control for your whole machine, take a look at foresight/rpath/conary18:20
arwed joined18:20
hagna eMBee: ok I'll do that, and why not git?18:20
Mikachu you can use git if you want all your files to be 644 or 75518:20
hagna Mikachu: ahh18:21
eMBee git is for source managment. conary is for packages18:21
Mikachu there are probably some other issues too18:21
nud_ joined18:21
nud left18:22
hagna git seems like high quality stuff is conary similar in that way?18:24
^Beket| left18:24
a-priori_ left18:25
eMBee not sure, but conary is the only package managment system that works like revision control that i am aware of18:28
cnk joined18:28
graywh|work is there a reason gitk wouldn't show the files added in the first commit when "Patch" is selected?18:28
devurandom left18:29
dwmw2dwmw2_gone18:29
drizzd joined18:30
Ilari graywh|work: Probably it tries to invoke 'git diff' without the --root option, so taking diff won't work...18:30
graywh|work just making sure I'm not crazy18:31
Ilari graywh|work: It even seems to be case. Gitk source does not contain '--root'.18:32
graywh|work is it possible to squash the second commit into the first?18:34
thannoy joined18:35
netoman joined18:35
Ilari graywh|work: That might not be so trivial if the branch contains more than two commits. Third to second would have been easier...18:35
grahal joined18:36
Ilari graywh|work: Normally that sort of squashes would be done via interactive rebase, but rebase doesn't seem to work very well when initial commit is involved...18:37
graywh|work what about just changing the message on the first commit?18:38
cnk is there a way to see what has changed in my remote submodule without fetching it? Or is it ok if I fetch and then chicken out merging it because I can just do a variant of 'git reset'?18:38
david_koontz joined18:38
Ilari graywh|work: One could use filter-branch... I don't know working good ways to mess with initial commit after more commets have been made on top of it...18:39
arwed left18:39
dave_h_d left18:40
graywh|work what about interactive rebase from the first commit, edit second, do a reset and commit --amend, then re-commit the second?18:40
drizzd_ left18:40
Ilari graywh|work: Well, you can try. Maybe do backup of old branch first (git branch foo-backup foo)...18:41
netoman Hello! Git newbie here... How can I undo an 'accidental' rm * wich is followed by some commit? Example: edit file1.txt ; edit file2.txt ; rm *; save file2.txt (which recreates file2.txt), then commit.18:41
david_koontz left18:41
david_koontz joined18:42
netoman I ended up with a commit that "removed" every file, except for file2.txt... Now I want to recover all my lost files..18:42
Ilari netoman: Modifications to file1.txt is probably lost (unless you added it, and then it is pretty nasty to recover).18:43
netoman: Maybe something like 'git rev-parse HEAD' (get ID for current commit). 'git reset --hard HEAD^', 'git checkout <ID from parse-rev> -- file2.txt'...18:44
SRabbelier left18:45
SRabbelie1 joined18:45
SRabbelie1SRabbelier18:45
netoman Ilari: I've tried with 'git revert', but when i give it a 'commit name' (SHA1) it complains...18:46
Ilari netoman: Git revert? Did I say revert? To me that looks like 'reset'.18:47
netoman Mmmmh... maybe I'm not understanding well 'git-revert' and 'git-reset'... I'm going back to documentation...18:48
goibhniu joined18:49
Ilari netoman: That command sequence basically first grabs handle to current commit, then removes the current commit and finally restores that one file from the commit pointed by handle.18:49
tehPope joined18:49
shaftyy joined18:50
Ilari Actually, not just removes, but also reverts the working tree to state before that commit.18:50
markkalderon joined18:52
ftehw joined18:53
netoman Ilari: So supose I'm an idiot and accidentally deleted 100 files... so I haven't got their names anymore... Wores, i've made a commit... Is it possible to restore to the state of the commit previous to the deletion of the files?18:53
Worse*18:53
mjc joined18:53
alley_cat joined18:53
netoman (My english is horrible, sorry)18:53
mjcmjc_18:54
mjc_mjc218:54
doener Ilari: btw, instead of using the rev-parse there, is it ok to rely on ORIG_HEAD being set by reset --hard, or is that an implementation detail?18:55
Ilari netoman: 'Popping' the last commit and reverting working tree to commit-before-that state would be one reset with suitable arguments. But if you want to preserve changes to file2.txt...18:56
sbeyer joined18:56
doener oh, nvm, the manpage has an example with ORIG_HEAD, so I guess I can rely on that18:56
lamont left18:57
comp it is possible to make a branch diff in gitweb .. I can't figure it out ...18:58
lamont joined18:59
comp ?18:59
Ilari Yeah, 'git reset --hard HEAD^', 'git checkout ORIG_HEAD -- file2.txt' would probably be nicer...18:59
comp I mean a diff from one certain commit18:59
sgrimm left19:01
cnk OK I am very confused about git submodules. I just tried a pull + commit for my rails submodule. And now, even though I see the listing for it in my .gitmodules file, when I do 'git submodule status', it isn't listed. What have I done?19:04
comp -- never mind, used URL editing :)19:04
netoman Ilari: Thanks! =)19:04
etnt joined19:05
Lucine left19:05
shoe cnk: did you: git submodule init ?19:06
alley_cat left19:07
ph^ left19:08
cnk shoe: when? when I first added the submodule? or jsut now?19:08
I don't recall either19:08
but before I did the 'git pull', rails showed up in my submodule list19:08
now it doesn't19:08
Sho_ left19:09
felipec joined19:09
ph^ joined19:09
roylee17 left19:10
Judofyr left19:10
Sho_ joined19:10
Judofyr joined19:11
Ilari cnk: You did pull of submodule and it has disappeared from submodule list of parent?19:12
cnk yes exactly19:12
I have a sneaking suspicion that it isn't a submodule any more but perhaps checked into my repository19:13
Ilari cnk: Does 'git ls-tree -r | grep 160000" list it?19:13
cedricv joined19:13
cnk I apparenly need another arg for this19:14
Ilari cnk: Oops. 'git ls-files -s | grep 160000"19:14
cnk: (mode of 160000 means submodule).19:14
cnk Ilari: no, the only things listed are the same things now appearing in my 'git submodule status' output19:15
Ilari cnk: Then it looks like the submodule entry got removed somehow. :-/19:15
cnk: Then do 'git ls-files -s | grep <submodule-mountpoint>' (where <submodule-mountpoint> is where it should be). Does it list files?19:16
FunkeeMonk left19:17
bugfux left19:17
cnk Ilari: that command gives me everything that is below the mountpoint. This means my submodule isn't a submodule any more but is committed to my repository as if it were my code, right?19:18
Ilari cnk: You did 'git add submodule/'? That does not do the right thing...19:19
cnk oh. hmmm so what is the right thing?19:19
shoe Ilari: 'git add submodule' (no trailing slash)19:20
er: cnk ^^19:20
_zack joined19:21
Ilari cnk: If you committed the supermodule, perhaps first remove the last commit (git reset --soft HEAD^).19:21
markkald_ joined19:21
cnk I am pretty sure I did exactly what is on this blog post http://daniel.collectiveidea.com/blog/2008/4/9/git-submodules19:21
Ilari: good plan19:21
markkalderon left19:21
cnk --soft leaves the file system as it was, yes? perhaps I should reset everything to before I did the pull, with git reset --hard HEAD^ ??19:22
Ilari cnk: It also leaves index as is.19:23
alley_cat joined19:23
Ilari cnk: May be handy if you also had other changes...19:23
cnk Ilari: I was just doing that one thing.19:24
Ilari cnk: Then maybe 'git reset HEAD^' (reset commit and index, but not working tree)?19:24
cnk So after reset --soft, I see deleted: vendor/rails and then lots of new file: vendor/rails/.gitignore, etc19:24
Ilari cnk: Does 'git add vendor/rails' complain?19:25
priidu left19:25
cnk no it is fine - but changes the list of deleted + add to just "modified: vendor/rails"19:26
hagna left19:26
Ilari cnk: Did you use 'git add' or 'git commit -a' (as contained in that blog post) to update the reference. If 'commit -a', then it is pretty worrying...19:26
cnk: Then probably 'git commit -c ORIG_HEAD'?19:27
ruediger joined19:27
cnk oh, I didn't read carefully. I just did git commit - no -a but there were already a ton of files added. How the heck did I get there19:28
ahhh there it is19:28
Ilari That 'submodule/' bug/misfeature is pretty nasty...19:29
cnk I did the pull - down in the vendor/rails directory. Then I moved up to the main part of my repository. Then did 'git add vendor/rails' then committed.19:30
So clearly git add vendor/rails wasn't what I wanted19:30
Ilari cnk: Note that if you hit tab to autocomplete the name, bash autocompletes that as 'vendor/rails/' (which does nasty things).19:30
cnk but how could I get the update recognized w/o the git add?19:30
ohhhhhh19:30
doener_ joined19:30
Mikachu (in zsh the / is removed if you press enter or type a space)19:31
cnk so it is the trailing slash. 'git add vendor/rails' would have been OK but 'git add vendor/rails/' is what killed me, yes?19:31
Ilari cnk: Exactly.19:31
EmilMedve1 joined19:31
cnk OK all better now. I used the correct git add and now I just have updated vendor rails as a submodule.19:33
Ilari cnk: Also, if the submodule is already there (and you don't need to update anything else), 'git commit vendor/rails' should also work (but watch out for that trailing slash).19:35
cnk So what is everyone's favorite set of git docs? I have the peepcode PDF (and screencast). Have tried the users manual on kernel.org (but kept falling asleep). I have been using git for a month now and am still struggling. I want the git equivalent of the Red Bean books for CVS and SVN.19:35
EmilMedve left19:36
cnk Ilari: thanks for the help. I really appreciate it - but am frustrated that I need so much help after having used git for nearly a month19:36
Ilari cnk: That thing was pretty much a gigantic trap, really surprising and easy to trigger.19:37
cnk: And submodule UI is still somewhat work-in-progress (just try to remove submodule. Fun.).19:39
lcapitulino left19:39
tehPope left19:39
_zack left19:41
cnk Ilari: is that possible? The last big rescue I got from the list (quite possibly from you again) was when I tried to remove a submodule that I thought was in the wrong place by rm'ing the files and removing the submodule from my .gitmodules. That was a lovely adventure in missing blob references and a trip through ls-tree, etc.19:41
_zack joined19:41
doener left19:41
Beket joined19:42
Ilari cnk: It should be possible. There are multiple places to deal with...19:43
lcapitulino joined19:44
alley_cat left19:45
MarcWeber joined19:45
Ilari cnk: Missing blob references? Broken links?19:45
redondos_ joined19:45
Chairos joined19:45
cnk something I did when I just whacked files gave me dangling references that I needed ? git fsck and some removing to clear up.19:46
mostly what I learned from the experience is that, while git has lots of files of metadata, I can't just edit them by hand like I do when I make a mistake in CVS19:46
MarcWeber Is it possible to define arbitrary svn directories to track when using git-svn ? In my case I have this layout: A/{trunk,server} B/{trunk,server} C/{trunk,server} where A,B,C are very similar versions of the the same project, trunk is the development version which is merged to server19:47
Chairos what do the follows/precedes lines in gitk mean?19:48
I can't find anything by googling.19:49
robinr cnk: sure you can, it's just not encouraged19:49
Mikachu Chairos: it means which tag is the next/previous closest one19:49
cnk robinr: well my fingers are still feeling a little burnt from the whole experience. It came out ok but...19:49
robinr editing CVS files can hurt too19:49
Ilari For some kinds of mistakes, handediting some files is pretty much the only way to recover without great data loss...19:50
Such as mistakes with symbolic-ref19:50
Mikachu i don't really understand why all git tools fall over saying it's not a git repo when .git/HEAD doesn't start with "ref: refs/heads/"19:51
especially git-symbolic-ref should allow you to write a new value19:51
alley_cat joined19:53
sgrimm joined19:54
Sonderblade joined19:54
d0k left19:55
mando left19:59
threeve__ left20:01
redondos left20:02
redondos_redondos20:02
EmilMedve1EmilMedve20:03
markkald_ left20:05
ebel joined20:05
netoman left20:07
peeja joined20:09
plopix how do I clone a repository more than a master branch to another dir on the same host?20:10
s.more.with more.20:11
I can use git-branch -r to seee the origin branches, but I want a clone of all branches...20:12
mando joined20:12
ph^_ joined20:12
shaftyyy joined20:14
LetoTo joined20:15
a-priori joined20:15
jast plopix, i don't know to do it in a fully automated way, but you can use git branch localname remotename for each additional branch you want set up for automatic merging etc.20:16
janm left20:17
jast uh, you might have to sprinkle in a --track there20:17
unless you do "git config branch.autosetupmerge true" before20:18
robhudson joined20:19
doener_ plopix: that is a full clone, you have all history locally now. Just no local branches (except for master) yet, on which you would do local work20:20
alley_cat left20:20
markkalderon joined20:26
PNC joined20:26
Beket left20:30
shaftyy left20:30
Chairos left20:32
LetoTo Is it wrong to do a 'git fetch' on a remote repo and then use git checkout -b branchname?20:33
eg git init ; git-remote add foo git+ssh://somewhere/something.git ; git fetch foo ; git checkout -b branchname20:34
thiago_home joined20:34
Beket joined20:34
LetoTo because running 'git pull' or 'git fetch' after that seems to give an error20:35
doener_ LetoTo: AFAIK that should git ssh:// not git+ssh://20:36
LetoTo: and the checkout command misses a starting point for the new brenach20:37
s/brenach/branch/20:37
LetoTo well, it picked up all the branches on remote20:37
and i can 'git checkout' them fine.20:38
_zack left20:38
_zack joined20:38
doener_ s/should git/should be/20:39
LetoTo using git-remote add remote ssh:// instead of git+ssh:// throws an error20:39
doener_ LetoTo: git+ssh gives me an error here20:39
LetoTo: which git version is that?20:39
madewokherd joined20:39
LetoTo git version 1.5.4.520:39
(or rather git-1.5.4.5-3.fc9)20:40
doener_ oh, wait, had three slashes in the git+ssh form20:40
shaftyyy left20:42
thannoy left20:48
lcapitulino left20:53
johnreilly joined20:55
p4tux joined20:57
threeve_ joined20:59
devogon joined21:01
SRabbelier left21:04
SRabbelie1 joined21:04
SRabbelie1SRabbelier21:05
robinr left21:08
amrox joined21:09
aroben joined21:10
bwwww joined21:12
ebel left21:12
ebel joined21:12
Sonderblade left21:14
ajonat joined21:15
vmiklos is there something in the git C api to store a list of sha1s? path_list seem to be a no-go since it expects the strings to be null-terminated.21:15
ajonat left21:15
markkalderon left21:16
ajonat joined21:16
krh left21:16
tflsh left21:16
sgrimm left21:17
kumbayo left21:17
radarek left21:17
sgrimm joined21:17
eikonos joined21:19
robinr joined21:20
deavid left21:23
ekidd left21:23
ajonat left21:26
ZycZyclops joined21:27
Zyclops left21:27
Ace_NoOne left21:28
mjc2 left21:29
aroben left21:31
johnreilly left21:33
aroben joined21:34
dave_h_d joined21:35
rolfb joined21:39
rolfb how does one read the url for git?21:40
i've started to read it as git or seize21:40
broheem left21:43
niki joined21:43
Mikachu i have never read it out loud21:43
dave_h_d left21:43
Ramune sieze?21:43
er, seize?21:43
Mikachu cz21:43
nud_ http://kubasik.net/blog/2008/05/19/bazaar-and-its-rockage/#comment-32823 <-- what do you ppl think of this?21:44
bdiego left21:44
nud_ “Git is only faster if you don’t count the time it takes to GC and repack - tasks that the other tools do automatically. Once you factor those in it is substantially slower [than bzr].”21:45
pygi left21:45
LiamH left21:45
tflsh joined21:46
rolfb git or seize [to exist]21:47
thiago_home nud_: depends on your work pattern, I guess21:47
nud_ thiago, could you elaborate?21:48
Mikachu nud_: but you can pack when you don't have to wait for git to finish doing it21:50
nud_ Mikachu: that's a wise point indeed21:50
thiago_home depends on which operatiosn you do more21:51
and how often you repack21:51
pilif I wonder why everybody keeps constantly comparing the different systems. Each has its advantages. Why can't everyone just settle with a system and stop bitching about the others?21:51
Ramune pilif: because it's not as entertaining21:51
pilif entertaining? It feels annoying.21:52
Ramune scm flamewars are our outlet for aggression -- without it, we'd go postal21:52
and geeks with guns going postal isn't a pretty sight21:52
nud_ eheh21:52
pilif guns? I don't actually have guns - despite calling myself quite geeky21:52
nud_ pilif: actually, my point commenting that post was just that it was easy to take exactly the same arguments for the other system, thus making it useless to argue21:53
Ramune that's okay -- if you're a geek, you can build WMDs :)21:53
pilif just not geeky enough to participate in flamewars (only in flamewars about flamewars)21:53
nud_ I was just interested by the gc argument21:53
robinr I almost never run gc21:53
pilif me neither21:53
Beket left21:53
pilif though I'm not what you might call a heavy user21:53
Mikachu i usually repack "manually"21:53
nud_ same here21:54
old habits, etc21:54
robinr I hardly even repack21:54
pilif still... I went from zero knowledge to using-git-daily in about 30 minutes, so I don't understand the fuss about it being difficult to use either21:54
and... boy... I love it21:54
it completely changed the way I do work21:54
Mikachu pilif: it depends on your intelligence level probably :)21:54
Ramune mikachu: and how long you've used other scms in the past21:55
pilif git-svn was a bit fiddly at first21:55
comp .... and tutorial you find :)21:55
robinr well mastering everything git can do is hard21:55
Mikachu Ramune: the less the better, possibly21:55
pilif but I adapted21:55
robinr fortunately one only needs ten per cent21:55
cypher23 left21:55
Ramune having been using cvs/sccs professionally for over 10 years, it was a bit of a pain unlearning things21:55
pilif robinr, exactly. I'm very happy with my 10% for example21:55
Ramune took a while to "click"21:55
pilif working at multiple features in parallel, taking work from home to the office and back again, sharing patches, discussing ideas, cherry-pick bugfixes... I LOVE it21:56
comp unfortunately, not everyone share this kind of software development21:57
I tried to "apply" git to one open source project21:57
pilif well.. thankfully, me and my collegues do :-)21:57
comp made a fork and tried to show git in action21:57
pilif at least those not insisting on using windows :-)21:57
comp well .... no one showed interest21:58
pilif unbelievable21:58
it's so easy. so useful.21:58
comp I made a nice "banner"21:58
(on that forum)21:58
people came, people went21:59
pilif I guess you need an itch to scratch to get hooked21:59
comp someone complained about advanteges in merging21:59
as tortoisemerge can do almost the same as vimdiff/kdiff3 interface21:59
pilif huh? Complain about stuff working better? Sounds like my coworker :-)21:59
robinr if it's easy to merge people will loose themselves in all branches ?22:00
s/lose22:00
_zack left22:01
comp it's like ... pushing democracy where is dictatorship in charge22:01
pilif not sure... everyone should know *their* branches. Then it's just a matter of communication ("hey... I have this cool stuff x in my branch y... what about having a look at it?")22:01
the problem is, that svn (especially TortoiseSVN) seems to work nicely22:02
comp yea22:02
LetoTo now imagine yourself in a train with no internet...... :)22:02
pilif as long as you don't run into the inherent problems of centralized version controlling, you'll never go ahead and try git22:02
comp and if they share patches with other via forum and most "larger" patch writers have their own svns to keep their patches updated22:02
pilif but one you do, it'll change your world. forever.22:02
SuttoL joined22:02
LetoTo still feels like on his second day of using vi when he's playing with git :P22:03
sgrimm left22:03
comp LetoTo: hehe22:03
LetoTo: but you know how to shut it down, right?22:03
LetoTo there is no ESC-ESC-ESC equivalent. only rm -rf :)22:04
pilif since when does ESC-ESC-ESC quit vi?22:04
comp I was using ctrl-Z to stop the process22:04
LetoTo there is also no git-undo :)22:04
comp you're kidding?22:04
pilif you don't need any. undo is the core concept of git22:05
it's very, very, very hard to screw up in a way you can't undo very easily22:05
sverrej left22:05
rolfb left22:05
comp just wonder what can git-undo do ..22:05
LetoTo pilif: that's not true :P22:05
comp git-reset --hard HEAD@{1} ?22:05
LetoTo pushing something to a remote is pretty hard to undo22:06
and things like a completely failed 'git merge' :)22:06
comp merge can be reseted ..22:06
robinr why would merge be hard to undo?22:06
Mikachu if you had dirty changes it is quite hard22:06
pilif ... and pushing to remote is something that's inherently not undo-able for you22:06
Mikachu undoing a reset --hard on dirty changes is also hard :)22:06
LetoTo if you've done it partially and fixed some conflicts22:07
comp Mikachu: ckeckouting them from index & git-clean does the work :)22:07
LetoTo anyway, for now, i still use the "cp -a" and "rm -rf" method of undo :P22:07
robinr LetoTo: git reset --hard and restart22:07
comp checkouting*22:07
LetoTo until i get a better grasp22:07
pilif I agree... reset --hard always helps22:07
comp ... in most cases22:08
pilif if you are willing to accept some loss of uncommited changes22:08
WorkingGeier left22:08
cbrakecbrake_away22:09
sgrimm joined22:09
LetoTo also, you all assume you know when you did something bad. you might found unknown actions later :P22:10
pilif meh... usually I indeed tend to notice if something goes wrong... so far at least22:10
LetoTo though i guess you can still cut off a week's work with --hard :P22:11
pilif not if you commit here and then22:11
which is one of the big advantages of git - that you can commit whenever you feel like it22:11
ajonat joined22:12
gregf joined22:12
ajonat left22:12
doener_ LetoTo: as long as you committed your stuff, the reflog will save it for 90 days (by default), so you can go back to the old commits22:13
rhett joined22:13
ajonat joined22:13
doener_ accidently losing committed work with git is pretty hard22:14
rhett hi, i'm using textmate now for my editor instead of vim, and when my commit message comes up, i save it, and close the window, and get a fatal "not commit mesag?" error22:14
with vim or emacs, I would just save the message and close22:15
pilif rhett, what is $EDITOR set to?22:15
rhett /usr/bin/mate22:15
pilif use "mate -w" to make the mate command block until you close the window22:15
export EDITOR="mate -w"22:16
rhett thanks pilif22:16
pilif always a pleasure. -w is there precisely for that (to be called from other commands shelling out to $EDITOR)22:17
BW^- joined22:17
elliottcable joined22:17
elliottcable I'm getting the following error22:18
BW^- why does my GIT PUSH give this result:? ! [rejected] master -> master (non-fast forward) error: failed to push some refs to 'ssh://s@domain/home/s/src-repository'22:18
?22:18
elliottcable even after trying uninstalling and re-installing Git-core:22:18
Can't locate Error.pm in @INC (@INC contains: /opt/local/lib/perl5/site_perl/5.8.8 /System/Library/Perl/5.8.8/darwin-thread-multi-2level /System/Library/Perl/5.8.8 /Library/Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 /Library/Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level /Network/Library/Perl/5.8.8 /Network/Library/Perl /System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.8 /Lib22:18
BW^-: The connection may have failed, I've gotten that before when it does22:18
BW^- hmm. i'm 95% it doesn.t22:18
LetoTo someone else made and pushed changes?22:19
do a git fetch first?22:19
LetoTo <--- git newbie, add grain of salt22:19
elliottcable hands salt grain22:19
BW^- hehe22:19
pilif Error.pm... isn't that part of the core perl distribution?22:19
elliottcable pilif: I'd think so, but I uninstalled and re-installed perl too22:20
pilif: ... just incase >,>22:20
pilif elliottcable, how did you install perl?22:20
your @INC looks like the Mac OS default22:20
etnt left22:20
elliottcable pilif: MacPorts22:20
pilif ok... then Error.pm should be in /opt/local/lib/perl5/vendor_perl/5.8.822:21
elliottcable pilif: but thanks, you inspired me to check - path is screwed up, and it's using built in instead of MP perl d-:22:21
Thanks for the help!22:21
pilif thought so...22:21
which perl22:21
BW^- letoto: tested, didn't work.22:21
pilif should tell you which one is being used22:21
BW^- how succeed with push?22:22
Yuuhi left22:22
ceez left22:23
ph^_ left22:23
ph^ left22:27
nate_ joined22:28
nate_ after git push origin master how do I update the repo that I pushed to?22:29
Mikachu http://git.or.cz/gitwiki/GitFaq#head-b96f48bc9c925074be9f95c0fce69bcece5f6e7322:30
CodeOfficer joined22:30
leitgebj left22:32
ftehw lets say I want to role back exactly 1 commit (undo everything I've done with my 2nd to last commit). what's the simplest way to do that?22:33
nate_ Mikachu: thanks22:34
sverrej joined22:35
charon ftehw: if you've published it, git-revert. if you haven't, you can rebase --interactive HEAD~3 and delete that commit from the list that shows up and it will rewrite history to appear as if it was never there in the first place22:37
dbrummer_ joined22:38
nate_ left22:39
Ingmar How do I the current git-dir in a git hook?22:39
dbrummer_ hello22:39
gregf left22:40
chris2 left22:40
dbrummer_ I was wondering if someone can help me with an issue I'm having with git22:42
eternaleye left22:42
ftehw thanks charon22:42
dotsintacks joined22:45
dbrummer_ left22:45
nud_ left22:46
dotsintacks question: I've got a project I've been hacking on that came from a tarball on a website. the original author just released a new tarball with lots of changes, and I want to merge in his fixes. To help git make this easier on me, should I create a branch from the /past/, from the original tarball revision, and then apply the new tarball changes, and then merge those changes into my branch?22:46
mithro joined22:48
ebel left22:48
warlock_mza joined22:48
jast dotsintacks, that's what i'd do at least22:51
if you want to submit back patches at some point, consider using rebase rather than merge22:51
vbgunz left22:52
ftehw if there's only 1 commit (a toy project), why doesn't `git checkout -b old abc` work if abc06a0a90fada443cde0ddeeae3b931ae49f3c9 is the commit.22:54
seems to me that 'abc' uniquely identifies it, trivially.22:54
Mikachu and with abc0?22:55
ftehw abc0 does work.22:55
Mikachu it might be that you need 4 chars22:55
jast it might be that checkout is afraid of mistaking an all-chars abbreviated sha1 id for a ref name22:56
no, that's not it22:56
corporeal left22:57
jast four chars is the minimum for identifying a sha1 id, it seems22:57
ftehw that seems pretty arbitrary22:57
jast abc likely won't work anywhere else either22:57
ftehw jast: u mean on other git commands?22:58
jast yeah22:59
i tried with git log22:59
cedricv left23:00
ftehw Seems like an undocumented restrictions. man git-rev-parse search SPECIFYING, first bullet implies 'abc' should work, as it matches uniquely, trivially.23:00
cannonball left23:01
leitgebj joined23:01
jast i suggest you complain on the mailing list ;)23:02
ftehw jast: i guess in regular use u rarely reference commits by their hash, right?23:04
context why would git say a file is modified but git-diff shows nothing23:04
jast depends. i sometimes do.23:04
context oh wait23:04
nm its cached23:04
heythisisdave left23:05
charon left23:05
ftehw OK, new question: what's the simplest way to just undo all changes since the commit?23:07
ekidd joined23:07
jast git reset --hard to undo including working tree, git reset otherwise23:07
ftehw jast: u mean excluding?23:08
jast no, --hard means: reset index as well as working tree to state of last commit23:08
without --hard only the index is reset23:08
untracked files are not affected in either case23:09
ftehw jast: hrm, i guess i need to read up a little more. :)23:09
jast it certainly can't hurt :)23:10
unless it confuses you, but then this channel will still be here :)23:10
elliottcable left23:11
TuxCM joined23:14
redondos left23:22
dotsintacks how do I tell git that I resolved a conflict?23:23
I even used git mergetool, but "git commit" is telling me that the files are still in conflict.23:23
humbolto joined23:23
humbolto how can I add something to the last commit description?23:24
felipec dotsintacks: git add23:26
threeve joined23:26
felipec humbolto: git commit --amend23:26
humbolto tnx23:26
dotsintacks ok...I saw mention of git-update-index but I remember being told to stay away from the three word incantations :P23:27
threeve left23:27
jast git add does the same thing, but it's shorter to type and can do a wider range of things and abstracts away a couple of things23:27
dotsintacks jast: gotcha. thanks23:28
gebi how to pull to a branch without checking it out?23:30
mando left23:31
gebi e.g only if it's fast-forward (which doesn't matter as it's a tracking branch)23:31
danlarkin joined23:31
EmilMedve left23:32
jast you mean it's a remote branch? that's pretty much what git fetch does23:33
ekidd left23:33
gebi it's a tracking branch of a remote branch23:33
warlock_mza left23:34
jast what i mean is that it shows up in git remote -r but not in git remote. those are tracking branches.23:34
err, remote branches. or something. the terminology is a bit muddled in my head.23:34
though you can use fetch either way23:34
gebi fetch can update local branches?23:35
i've a lokal branch which is a tracking branch of a remote one, can i update this lokal branch fast-forward (otherwise error) without switching to it?23:36
jast you mean you have a tracking branch and want a local branch to fast-forward to its current state?23:36
ruediger left23:37
BW^- left23:37
gebi yea, i mean i want _the_ lokal tracking branch to just fast-forward to the remotes last changeset23:37
jast local is a bit ambiguous here23:37
niki left23:38
Ryback_ left23:38
jast tracking branches are typically called remote even if they are local copies of branches from other repositories, whereas local branches mean branches that you created yourself, typically based on one of the tracking branches23:38
gebi 01:33 < jast> what i mean is that it shows up in git remote -r but not in git remote. those are tracking branches.23:38
sbeyer left23:38
gebi 01:33 < jast> err, remote branches. or something. the terminology is a bit muddled in my head.23:38
01:34 < jast> though you can use fetch either way23:38
doh sorry, my cat :/23:38
doener_ gebi: git push . origin/foo:foo23:39
gebi: that might do23:39
gebi doener_: i need to update the tracking branch without switching to it23:40
doener_ gebi: since when does push switch branches?23:40
felipec left23:40
robhudson left23:41
BW^- joined23:41
doener_ gebi: that command just locally pushes whatever is in origin/foo into foo. Having checked out foo would even be rather bad in this case23:41
threeve_ left23:42
SuttoL left23:45
gebi ok23:46
vbgunz joined23:50
robinr left23:55
gebi doener_: is there a way to make the git push . origin/master:master implizit on every fetch?23:55
devogon left23:56
Arrowmaster use pull?23:57
goibhniu left23:57
doener_ maybe some hook. But what's the point? You can write just use origin/master instead23:58
s/write just use/just write/23:58
I wonder how I managed to do that...23:58
gebi Arrowmaster: without beeing on the branch? i've a few tracking branches i want to upgrade in one go23:59
doener_ after all, pushing into master all the time, means that you won't work on master (otherwise the push will fail), so having that done automatically on fetch would mean that always master == origin/master23:59

Logs Search ←Prev date Next date→ Channels Documentation