IRCloggy #git 2008-09-02

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-09-02

solo parasti: k, thx. guess I'll have to resort to learning some svn-fu. :)00:00
SRabbelier left00:01
ArrowmasterArrow00:02
ArrowArrowmaster00:03
neoeinst left00:03
neoeinst joined00:04
ben_h left00:07
ben_h joined00:08
loincloth joined00:09
lea_w left00:11
mithro__ left00:12
cilly joined00:12
solo parasti: actually, it looks like the format-patch | am route got me what I needed. not as clean as git merge, but I guess that can't be helped. thx again!00:13
solo left00:16
kukks left00:17
Khisanth joined00:20
ajonat left00:22
loincloth left00:27
roconnor left00:27
sbeyer left00:31
advany left00:31
capisce_ joined00:37
mithro__ joined00:39
mithro__ left00:39
mithro joined00:39
frando left00:41
ShadeHawk left00:43
eternaleye left00:44
aiur joined00:45
powr-toc left00:47
eternaleye joined00:47
lea_w joined00:48
capisce left00:48
parasti left00:49
johnw joined00:53
cbreak left00:55
mhutch|home left00:59
Ademan_ left01:00
Ademan_ joined01:01
sztanphet joined01:02
b10h4ck3r joined01:02
polpak joined01:03
eternaleye left01:04
loincloth joined01:05
b10h4ck3r left01:06
markkalderon joined01:06
markkald_ left01:07
jtoy joined01:14
ehc left01:17
codeshot left01:17
zachinglis joined01:17
lea_w left01:18
kanru joined01:19
kanru left01:20
Henrique left01:21
jmspeex left01:21
kanru joined01:22
stouset-stouset|away01:23
mlinsmlins|away01:24
jmspeex joined01:24
mbroeker left01:25
davidfetter left01:25
paltman joined01:26
davidfetter joined01:27
mlins|awaymlins01:29
johnw left01:30
zachinglis_ joined01:30
mwmw|out01:31
johnw joined01:31
zachinglis left01:31
MK_FG left01:32
Arrowmaster left01:33
leitgebj joined01:35
ciaran_ joined01:37
_VVSiz_ joined01:38
mlinsmlins|away01:39
mlins|awaymlins01:40
mw|out left01:41
ciaran left01:43
Arrowmaster joined01:43
xet7 left01:43
lea_w joined01:48
rjent_ left01:48
cilly left01:54
dmhouse left01:55
VVSiz_ left01:55
VVSiz left01:56
bdiego joined01:56
VVSiz joined01:56
mlins left02:02
mithro left02:09
mw-home left02:11
neoeinst left02:13
bobesponja left02:14
mlins joined02:15
eMxyzptlk[away] left02:16
imyousuf joined02:16
rmh3093 joined02:18
irotas left02:20
mlinsmlins|away02:25
mlins|awaymlins02:26
mlins left02:26
rdavila joined02:26
johnw left02:30
lea_w left02:31
lea_w joined02:40
yoh__ left02:44
loincloth left02:48
loincloth joined02:49
flaguy left02:50
MK_FG joined03:02
johnw joined03:02
lamont` joined03:02
rdavila left03:05
harinath joined03:07
lamont left03:10
cedricv joined03:15
ferdy left03:15
almostautomated left03:24
CodeOfficer joined03:25
lamont`lamont03:35
lea_w left03:35
tongueroo left03:36
mithro joined03:37
MK_FG left03:40
zachinglis_ left03:42
loincloth left03:43
pygi left03:46
mario_ joined03:46
zachinglis joined03:46
bdiego left03:48
mario_pygi03:50
AMorozov joined03:51
AMorozov Hi there!03:51
Could anybody suggest if I can compare two different subtrees in two revisions?03:52
An "obvious" syntax git diff -M <rev1>:some/path <rev2>:some/other/path doesn't work.03:53
johnw i think you'll have to clone the project twice, checkout those revisions, and then diff -r DIR1 DIR203:53
offby1 you're joking ... ?03:53
AMorozov johnw: :-(03:53
johnw use clone -s03:53
offby1 how tedious03:53
johnw otherwise, how is he going to be able to recursively diff files?03:53
lea_w joined03:55
AMorozov Well, I certainly could do this (and well, I even don't need clone anything, just checkout & cp -pr), but well, it's not what I expected from a decent VCS.03:55
I guess there should be other solution. Hopefully...03:55
johnw um, git doesn't even allow you to compare different files, much less directories03:56
the git-diff command is for comparing commits03:56
what you're talking about is disparate filesystem objects03:56
AMorozov If exactly two paths are given, and at least one is untracked, compare the two files / directories.03:57
So at least certain "file comparsions" are possible.03:58
johnw hm.. i just tried 'git diff foo bar', where foo and bar are both in my repository, and it ignored me03:59
AMorozov ... at least one is untracked.03:59
johnw the closest I can get is: diff <(git show HEAD:foo) <(git show HEAD:bar)03:59
but for this to work for directories would require checking out partial trees04:00
which brings us to my suggestion :)04:00
imyousuf left04:02
offby1 ``git diff /tmp/hmm /tmp/me'' worked -- those files aren't in any repo04:02
AMorozov Certainly.04:02
offby1 although honestly they were already in the fs, so I didn't gain anything over just plain "diff"04:02
cedricv left04:04
AMorozov offby1: Actually I moved a subtree and need to compare it with its location in a previous revision.04:04
johnw git should have detected the file moves, can you just compare the commits?04:05
AMorozov So I would prefer to somehow use git instead of plain diff.04:05
offby1 you could diff both the entire commits, and ignore the irrelevant bits ...04:05
johnw: oh.04:06
AMorozov johnw: I need to narrow the diff only to a subtree.04:06
Is it possible to ignore everything but ....04:06
johnw try using --relative04:06
i'm just look at man git-diff04:07
Gitbot johnw: the git-diff manpage can be found at http://git.or.cz/man/git-diff04:07
AMorozov johnw: probably it could help. Thank you!04:07
tjafk2 joined04:09
zachinglis left04:10
AMorozov No it doesn't :-(04:12
irotas joined04:12
johnw :(04:12
AMorozov At least an "obvious" syntax git diff --relative <other_rev> doesn't help.04:12
Probably your initial suggestion is the fastest way to achieve the goal...But well....04:13
johnw i think --relative means: if you use git diff $commit1 $commit2, from within a subdirectory, it confines the diff to just files in that directory04:13
yeah, by now you'd be done :)04:13
AMorozov :-)04:14
spearce joined04:15
AMorozov You know there's a Russian satiric cartoon movie where a griffon teaches an ostrich to fly with a slogan: it's better to waste a day [in training] and then fly in five minutes.04:20
So I'm simply learning to fly just as that ostrich :-)04:20
doener AMorozov: git diff-tree rev1:path1 rev2:path204:23
add "-p" for a patch, instead of the raw format04:23
johnw ah, very cool! thx doener04:23
AMorozov doener: hmm, I tried yesterday smth like that and well, it didn't work for me :-(. Anyway thank you a lot!04:25
zobie left04:25
AMorozov Smth strange happenned yesterday :-)04:25
Thank you!04:25
tjafk1 left04:26
AMorozov Ahh... I'm really stupid. Yesterday I mistyped the 'other/path' :-(04:27
Thank you all.04:27
AMorozov left04:27
johnw left04:28
harinath left04:45
harinath joined04:45
johan-s left04:54
lea_w left04:57
lea_w joined04:57
cedricv joined04:58
xjrn joined05:00
lea_w left05:02
digitalhobbit joined05:03
alenoosh joined05:03
rmh3093 left05:04
xjrn if i dump in xyz.tgz and add a gig to a commit by accident, and i do rm -f xyz.tgz, will that space be reclaimable?05:05
err git-rm -fr xyz.tgz05:05
doener did you only "git add" the file, or also commit?05:05
igorgue left05:07
xjrn yes commited05:08
doener did you drop the commit again (git reset)?05:08
xjrn nope it's still there, hanging out05:08
doener If you just remove the file in a follow-up commit, the space is of course not reclaimable05:09
Ademan_ left05:09
xjrn right, yeah, rm'd, commited05:09
doener then the object is still required05:09
xjrn git-rm -f'd05:09
Ademan_ joined05:09
xjrn so now do exprt the new non-littered workspace, git-reset down to priori revision, commit new workspace (via stash?05:12
and then clone or something?05:12
doener if the latest commit is the one in which you deleted the file, and the previous one is the one in which you added the file, you can do: git reset --soft HEAD~205:13
and then "git commit"05:13
that squashes the last two commits together05:13
xjrn having used git-rm is not a difference from leaving the file and then using rm and then soft-reset?05:17
ph^ joined05:18
CodeOfficer left05:20
markkalderon left05:21
stouset|away left05:24
rmh3093 joined05:31
jtier joined05:32
jtier Hello i am trying to install git on red 5 and i get these errors : http://pastebin.com/m3513535205:33
madewokherd left05:34
marj joined05:34
Eludias joined05:35
priidu joined05:35
cehteh jtier: looks like you miss some perl stuff05:36
Beket joined05:37
FH` left05:42
stouset left05:42
stouset joined05:45
paltman left05:50
k776 left05:53
Xilon joined05:53
jonesy joined05:56
jonesy just installed Git from source on fresh OS X 10.5.4 Leopard install. When I try to clone a repo I get this error: "fatal: could not create work tree dir `<dir>`05:57
if I go back and install version 1.5.5.1 I don't seem to have this problem05:57
joern_ joined05:59
jonesy anyone?05:59
Beket left05:59
Xilon I've got a problem with cloning/pushing to a remote repository. http://pastie.org/264351. This seems to only happen when I clone/push from/to that server. When cloning/pushin locally everything works, same goes for the server. Both are running git 1.6.0.1, but the remote has openssl 0.9.8e while I have openssl 0.9.7l. I read that there's a problem with openssl from fink on Mac OS, but I don't use fink.05:59
Dreamer3 left06:00
jtier left06:00
Xilon jonesy: cloning works fine (apart for that server^)06:01
jonesy I have three different servers I am trying to clone from, no matter what one I try I get that same error.06:02
one OS X server and two Linux servers06:02
DrNick run the clone in a directory you have write permission to06:05
jonesy I've tried it on my desktop, in my sites folder etc06:06
I am the owner of the folders I have tried it in06:06
joern_ left06:07
jonesy most of the Git versions above 1.5.5.1 have given me this problem. Just reinstalled my machine tonight and hoped I could use the newest version06:07
Google doesn't seem to give me any results as to what is causing this06:07
Xilon I just tried cloning from github, works just fine (git 1.6.0.1, Mac OS Leopard 10.5.4)06:10
jonesy did you compile form source?06:11
Xilon yes06:11
jonesy are there any extra dependencies needed?06:12
Xilon not sure, I don't think so06:13
deavid joined06:13
jonesy I downloaded 1.6.0.1. then ./configure --prefix=/usr/local. then make and make install.06:13
did you do anything different?06:13
gitish joined06:14
Xilon no06:14
I did install git previously a long time ago, so if there were dependencies, I satisfied them back then06:14
jonesy ah06:14
Xilon It seems to depend on libz, curl and libcrypto (openssl), all of which, afaik, are installed by default on Mac OS Leopard06:15
It sounds more like a permission problem than something to do with git. Can you create files by other means in the same directory?06:15
jonesy yup. I even tried to sudo the command when I was first thinking it was a permissions issue06:16
the weird thing is, if I go download Git 1.5.5.1, all of these problems go away06:16
thiago_home joined06:17
Xilon hmm maybe I should try git 1.5.5.1 and see if my problem goes away06:17
though I think it's openssl and not git06:17
Although I compiled git without curl on the server...06:18
That's only for http isn't it?06:18
Dreamer3 joined06:18
jonesy I believe so06:18
spearce left06:18
jonesy found a tutorial on Github, seems the only dependency is gettext06:19
Xilon I have it installed06:20
phpcurious joined06:21
jonesy I am installing gettext now, hopefully that solves the problem06:24
lea_w joined06:25
jonesy nope, same issue06:32
alenoosh left06:33
phpcurious hi, newbie question here. can i use git on windows?06:34
Xilon under cygwin, apparently06:35
phpcurious i tried msysgit ...06:35
but don't understand how to use it06:35
gitish left06:35
phpcurious is it just under cygwin?06:35
rmh3093 left06:39
drizzd phpcurious: it's in your start menu06:40
JenkingWinlker joined06:40
jonesy wonderful. Just tried the Git OS X Installer from Google Code and even that doesn't work06:41
same issue06:41
polpak left06:42
Weaselweb joined06:42
jonesy back to Git 1.5.5.1 until I can find what is causing the problem06:43
drizzd jonesy: did you delete git-*?06:45
jonesy am I supposed to?06:45
drizzd if you install 1.6, yes06:45
there are no git-* commands in 1.6 any more06:46
only 'git <command>'06:46
jonesy let me recompile 1.6 again and give it a shot06:46
drizzd the command that fails in your case is `mkdir', so it should be something really trivial06:47
Xilon Why are the git-* binaries gone?06:47
I liked them when working with zsh - quicker to access history06:48
Mikachu where have all the good times gone?06:48
drizzd several reasons, there was a huge discussion about it on the git mailing list06:48
Mikachu Xilon: bind history-beginning-search-backward to some key06:48
cehteh no completion for zsh?06:48
Mikachu Xilon: it searches everything before the cursor, not just up to the first space06:48
Xilon in zsh you can for instance git-push <up> and it goes to the last git-push command06:48
oh, awesome06:48
Mikachu cehteh: he means typing git pu<up> to get the last git push line, but it will stop at the space and give you git whatever intsead06:49
jonesy I don't see git-*06:49
cehteh heh and why do people praise zsh so much? :)06:49
jonesy installed in /usr/local06:49
drizzd which git-clone06:49
Mikachu cehteh: ?06:50
drizzd (that's a command that will tell you where it is)06:50
Xilon cehteh: Umm, it has some nice features, perhaps?06:50
Mikachu cehteh: arguably because the default config binds basically no useful functions to keys :)06:50
Xilon why do people praise git so much? ;)06:50
cehteh Mikachu: lol06:50
simmel cehteh Because it's awesome! ;06:51
P06:51
Xilon Good point!06:51
Mikachu http://mika.l3ib.org/s/dot-zshrc06:51
jonesy hmmm, even which git-clone is returning nothing now06:51
Xilon git-clone doesn't exist in 1.606:52
thiago_home Xilon: people complained that git was difficult and used "git-<tab><tab>" to prove it06:52
simmel Xilon Oh? What should one use instead?06:52
thiago_home Xilon: we know it not to be an argument at all, but go figure.06:52
simmel: git clone06:52
Mikachu simmel: 'git clone' :)06:52
simmel Oh06:53
Xilon "git clone"06:53
simmel = D06:53
I thought I missed something big = D06:53
bentob0x joined06:53
jonesy still a no go with 1.606:53
drizzd jonesy: what do you mean?06:54
Xilon thiago_home: lots of binaries (aliases actually) = difficult?... great argument06:54
drizzd jonesy: 'returning nothing'06:54
jonesy I get the same error no matter what I do. Error: fatal: could not create work tree dir `dir`06:54
drizzd jonesy: did you delete git-* now?06:54
jonesy git-* doesn't exist in /usr/local/bin/06:55
drizzd that's why I said06:55
use 'which git-clone' to find out where it is06:55
jonesy which git-clone returns nothing. which git clone returns /usr/local/bin/git06:56
peritus_ joined06:56
drizzd ok, so git-clone is actually gone.06:56
jonesy if I got back to 1.5.5.1, everything works fine06:56
I even tried the GIt OS X Installer, gives me the same issue06:57
not sure what the hell i'm missing06:57
Xilon hmm interesting. 1.6.0.1 has a problem with unpacking while 1.5.5.1 doesn't06:57
drizzd old server maybe?06:58
Xilon git version is the same on both machines06:59
with 1.6.0.1 I got this error http://pastie.org/26435106:59
works fine with 1.5.5.1 on both machines though06:59
drizzd 1.5.5.1 is the last version which used a script for clone06:59
tango_ left07:00
Xilon So what could be the problem?07:01
drizzd jonesy: but 'git init' works?07:01
Xilon I googled it and it turns out that openssl from fink causes problems, but I'm not using anything from fink07:01
jonesy git init seems to work just fine07:01
Xilon I do have an older version of openssl than on the remote though07:01
drizzd jonesy: that's really weird. can you do an strace?07:02
jonesy I can git init, add files and commit07:02
johnw joined07:02
jonesy I will if you can tell me how to do it, I'm okay on the command line, not great yet07:03
Xilon interesting07:03
Ademan_ left07:03
Xilon 1.6.0.1 locally, and 1.5.5.1 on the remote works as well07:03
it's just 1.6.0.1 on both doesn't work07:03
sverrej left07:03
drizzd Xilon: do you have to use --receive-pack?07:03
Ademan_ joined07:03
Xilon yeah because it's in my home directory07:04
drizzd maybe the relative path doesn't work07:04
Xilon I can set it up in the config though07:04
drizzd probably07:04
use /home/<whatever>/programs/usr/bin/git-receive-pack07:04
jonesy: strace <cmd>07:05
Mikachu Xilon: did you compile it yourself? did you give prefix both to make and to make install?07:05
Xilon I used ./configure07:05
drizzd so <cmd> would be whatever you did before that failed07:05
jonesy wtf, I think I found my problem.07:06
phpcurious left07:06
jonesy the command I was running. git clone ssh://<server>/git/<repo>.git <folder>.dev/07:06
not sure why but I removed the trailing / on my local folder name <folder>.dev07:07
and now it's working07:07
drizzd ah, that makes sense07:07
Xilon it probably wanted to store in <folder>.dev/<repo>07:07
drizzd 1.5.5.1 still used a script, which would strip the trailing slash07:07
Xilon at least that's how mv and similar utilities work07:08
jonesy I can't believe that is what has been causing the problem07:08
Xilon I think...07:08
jonesy it's working as it shoudl now07:09
johnw left07:14
johnw joined07:15
digitalhobbit left07:16
Xilon Still doesn't work07:16
oh well, I'll just use 1.5.5.1 on the remote, it's not like I'll be using it for long07:16
sverrej joined07:16
Xilon Does anyone have a hook to automatically generate doxygen documentation on receive?07:20
I'm wondering if it's a good idea to have a normal repo, as opposed to a bare repo, and push to it to generate documentation07:21
drizzd You could try running 'git unpack-objects' on the remote07:21
that seems to be failing07:21
cehteh it wont be a good idea but should be doable07:21
maybe you better trigger some checkout in a dedicated repo (which refers to the bare one via alternates) and build doxygen there, less fragile07:22
Xilon that is nicer07:23
cehteh anyways .. building website on push: http://lumiera.org/.git/hooks/post-receive07:23
thats also such a non-bare push repo setup07:24
ymmw ..07:24
mhm http://lumiera.org/.git/website/ .. interesting recursion, i didnt noticed it yet :)07:26
tango_ joined07:26
mako joined07:26
stousetstouset|away07:27
jonesy left07:28
mcella joined07:29
yango left07:29
yango joined07:33
BabelO joined07:38
anttih_ joined07:38
zerok joined07:40
hurikhan|Work joined07:43
daaku joined07:47
charon joined07:50
ferdy joined07:50
AhtiK joined07:52
ciaran_ciaran07:52
ijcd_ joined07:53
LostInTheWorld left07:54
huyx joined07:55
Hermano left07:56
ijcd__ joined07:57
AhtiK left07:58
thiago_home left08:04
Xilon umm git 1.5.5.1 doesn't have --bare for init?08:06
oh, git --bare init, not git init --bare...08:06
ijcd left08:09
elmex joined08:12
ijcd_ left08:13
ajonat joined08:13
Saied joined08:15
davidfetter left08:15
Saied what is the port of git?08:16
i found it, 941808:17
Saied left08:17
ebel joined08:18
macgerhard joined08:20
sf joined08:21
dwmw2_gonedwmw208:24
Ademan_Ademan08:25
peritus_ left08:34
statim___ left08:39
statim joined08:39
Sho_ joined08:44
BarryCarlyon left08:45
paddor joined08:47
paddor What's the difference between git-annotate and git-blame?08:47
schlort joined08:48
peritus_ joined08:50
SRabbelier joined08:50
charon paddor: output format. git-blame has an option to behave like annotate, see man git-blame08:50
Gitbot paddor: the git-blame manpage can be found at http://git.or.cz/man/git-blame08:50
sf left08:53
jones- Hello. I have a remote called "origin" and in .git/config it's "fetch" is +refs/heads/*:refs/remotes/origin/*. How do I change that so that I can also push tags?08:53
zbob__dkr08:54
dkr left08:54
anttih_ can't I rebase a git-svn repo if I did a clone with --no-metadata?08:55
dkr joined08:56
paddor charon: yes, but except of the output format? is one of the two more usful for special uses?08:57
drizzd jones-: you can use git push --tags to push tags08:57
paddor left08:58
drizzd you could configure remote.origin.push = refs/tags/*:refs/tags/*08:58
jones- drizzd: thanks08:58
drizzd but then you would not push any heads by default08:58
jones- drizzd: I'll push --tags when I make a new tag.08:58
drizzd jones-: you can also explicitly push the tag: git push origin <tag>08:59
jones- Sounds fair enough :)08:59
drizzd: thanks08:59
charon paddor: just the output format.09:00
Xilon does zsh completion still work?09:00
seems it uses the git-* binaries instead of commands09:01
sf joined09:02
ft Xilon: zsh completion supports both. (you may want the version from zsh's cvs Repo; see: <http://zshwiki.org/home/docs/wikifaq> question 12).09:02
Gitbot ft: I'm sorry, there's no such object: http://zshwiki.org/home/docs/wikifaq.09:02
paddor joined09:03
BarryCarlyon joined09:03
saimon joined09:03
saimon pasted http://guide.opendns.com/?url=pastie.textmate.org%2Fpastes09:03
anttih_ I don't get it, how can someone keep a svn mirror without the metadata in the commits?09:04
saimon So much for automation, heres the real link: http://pastie.textmate.org/private/q4sx37zckw0xg7h3kcxaw09:05
bentob0x left09:07
redondos_ joined09:07
saimon Can anyone tell me what problem git has with that diff? Why can't it just merge it and why is it presenting that as a conflict?09:08
I'm getting this conflict when trying to push to a remote topic branch. For some reason (beyond me) they local and remote branches are continuously out of sync.09:09
they/the09:09
charon saimon: are you sure there is no whitespace difference?09:11
spaces vs tab or trailing spaces09:12
saimon charon: none whatsoever09:12
I'm sure09:12
just double checked it09:12
Ademan_ joined09:12
charon maybe publish the repo, write down a few commands to reproduce and send mail to the list09:13
saimon I'm baffled as to why git every now and again loses sync between the local and remote topic branch. I practically always push to my remote branch after every commit.09:13
Pieter or upload the three files necessary for the merge?09:13
saimon: perhaps someone else rebases them sometimes?09:14
saimon: that might get you these kind of conflicts09:14
Xilon ft: got a link maybe? I can't find the actual file (http://zsh.cvs.sourceforge.net/zsh/zsh/Functions/Completion/?hideattic=0)09:14
Pieter saimon: look at the history with gitk --all09:14
huyx left09:14
saimon Pieter: Nope, it's my own private branch. I'm the only one that touches it.09:14
redondos_ left09:14
Pieter saimon: and you don't use rebase yourself?09:15
saimon Pieter: yes but between master and my local topic branch i.e. my workflow is like this:09:15
ft Xilon: http://zsh.cvs.sourceforge.net/*checkout*/zsh/zsh/Completion/Unix/Command/_git09:15
Pieter saimon: or, perhaps you did a commit --ammend and tried to push that?09:16
saimon git checkout topic1; code...; git commit -a && git push; rinse/repeat; then: git checkout master; git pull origin master; git merge topic1; git push; git checkout topic1; git rebase master09:16
Xilon ft: thanks09:17
saimon Pieter: no ammend09:17
can't look at gitk right now because tcl complains about a missing init.tcl09:17
Pieter git log --graph?09:17
charon saimon: that "git rebase master" looks a bit suspicious09:18
Xilon yay it works :)09:18
saimon Pieter: I'm 1.5.5.3 log doesn't seem to have --graph option09:18
Pieter saimon: after that git rebase, you'll have to use git push -f to update your remote branch09:18
_slacker_ joined09:18
saimon charon: How suspicious?09:18
-f?09:18
ahh09:19
cause once it's rebased, the remote ref is no longer an ancestor of the local one?09:19
charon why would you rebase if you already merge into master? that's mixing the merge and rebase workflows09:19
saimon charon: just got used to doing that in case my partner merged anything into master09:20
charon but it's asking for trouble09:21
after the merge, you'll have all changes from topic1 already in master09:21
the rebase generates a new set of commits with the same changes, but no history relationship whatsoever, not merged to master at any point09:21
then the next time around, you tell it to merge the _same_ changes again09:21
while i understand your frustration about an apparently nonsensical conflict, it's just a bad idea in the first place09:22
if the topic branch needs fixes, you can just commit them on the topic branch and merge to master again09:22
saimon so to pull in changes on master. I should just git merge master in my topic branch?09:23
charon yes09:23
saimon so when would I need to do a rebase? (I'm still a bit confused about what rebase does exactly=09:24
koke joined09:24
charon (i found Tv's video on topic branches very helpful, http://blip.tv/file/1114793/)09:25
drizzd_ joined09:25
saimon thanks I'll have a look see.09:25
charon in email workflows for example09:25
saimon thanks guys...Time to rehone my git workflow09:25
charon say, you wrote a patch series for git.git but in the meantime there have been changes to the master code that cause conflicts when you apply the series09:26
pygi left09:26
Ademan left09:26
charon since patches can't express merges, you'd have to rebase your series and resend it09:26
Ademan_Ademan09:26
charon there are other uses of course09:26
macgerhard left09:26
saimon ok...I see...so in my worklfow, I'd basically only do a rebase if I came across a conflict when merging into master?09:28
levente joined09:29
charon if you have the power to do the merge to master yourself, you should do that instead of a rebase09:29
(i.e. checkout master; merge topic)09:29
saimon and just fix any conflicts?09:30
levente left09:30
saimon so in general don't rebase?09:30
Kanniball joined09:30
levente joined09:33
levente hi, I need help on gitosis09:34
[GarethAdams] only rebase with branches that are never getting pulled by anyone else09:34
levente Does enyone have some time here?09:34
charon saimon: i hate absolute "don't"s, but yes, if a merge works just as well you should prefer that09:34
and never ever rebase anything you've published unless you've warned them three times in writing09:34
saimon charon: :)09:34
sf left09:35
saimon [GarethAdams]: got it. thanks...09:35
ok i'ts now clear...09:35
watching tv's talk...09:35
Yuuhi joined09:35
ajonat left09:35
charon the bit about topic branches starts at 32min iirc, though the rest is also interesting09:36
CodeWar joined09:37
[GarethAdams] I actually have `git pull` set up to do a rebase rather than a merge on most of our projects, since we all pull/push to github rather than from each other09:37
levente Can anyone help me setting up a repository with gitosis?09:37
[GarethAdams] it keeps the commit tree a lot more tame09:38
Weaselweb is there a way to download that video?09:40
schlort left09:40
CodeWar is there an equivalent to hg's inotify?09:41
redondos left09:41
redondos joined09:41
[GarethAdams]GarethAdams09:42
drizzd left09:42
charon Weaselweb: there's a link on eagain.net/blog09:42
Weaselweb charon: ah, ok. thanks09:43
ph^ left09:43
parasti joined09:44
ph^ joined09:44
ph^ left09:44
charon wonders if he should write a topic on "my upstream has been rebased" recovery for git-rebase.txt09:45
ph^ joined09:45
charon it might serve as a good warning. the current one is very tame and buried in "notes" four screenfuls down09:45
ph^ left09:49
lionr joined09:50
sf joined09:50
lionr hey all -- hmm, if you've gotten into a state with submodules where you updated the superproject before the submodule (which means you can't now clone the submodule) - how do you best fix that?09:50
ph^ joined09:51
daaku left09:53
CodeWar left09:54
Kbyte joined09:54
johnw left09:55
ph^ left09:56
markkalderon joined09:57
ph^ joined09:57
aiur left09:58
tango_ left09:59
ph^ left10:03
ph^ joined10:04
jonas_k9 joined10:05
jtoy left10:07
mithro left10:07
Xilon left10:15
dwmw2dwmw2_lunch10:17
markkalderon left10:19
mithro joined10:29
ereslibre joined10:30
macgerhard joined10:32
macgerhard hi guys, how can I rewrite my repository so only a certain range of commits are kept, everything else is discarded?10:32
botanicus joined10:32
morphir left10:33
sander_ When I and the repository have changed a file.. how can I choose to use the whole file of my or the repositories version?10:39
tango_ joined10:40
cilly joined10:40
Mikachu sander_: you mean when you merge?10:40
sander_ Mikachu, yep10:40
Mikachu you can say git show :1:path/to/file > path/to/file, the 1 can be 2 or 3 too10:41
i can never remember which is yours and which is the other branch's though :)10:41
(and maybe there's an easier way (i know there is git checkout --ours/--theirs in #next))10:41
sander_ fatal: ambiguous argument ':3': unknown revision or path not in the working tree.10:42
Use '--' to separate paths from revisions10:42
levente left10:43
Mikachu it works here10:44
kukks joined10:44
sander_ git show :3:config ?10:44
Mikachu yes10:44
sf left10:45
Mikachu does git ls-files -u list the file?10:45
macgerhard Mikachu: any ideas on how to rewrite a repo and only keep a range of commits?10:45
sander_ Mikachu, no.10:45
Mikachu sander_: then you're not in a merge conflict10:45
Lash| joined10:48
jlemieux______ joined10:49
jlemieux______jlemieux10:49
clairvy joined10:50
advany joined10:51
sf_ joined10:53
sf_ left10:54
bentob0x joined10:55
macgerhard when creating a patch with git format-patch, how can I make sure that the patch will include commit comments?10:56
parasti by looking at the generated patch? it includes the commit message by default10:57
sander_ Mikachu, thanks.. I figured it out.11:00
How can I set an default umask when pushing to a rep?11:00
I'm almost finnished with setting up a bare repository.. with sticky group bit.. just have an issue with users writing files which aint group writeable.11:01
Mikachu did you use the shared switch?11:02
sander_ No :-p11:02
Mikachu --shared=foo11:02
sander_ And foo should be?11:02
bremner !man git-init11:03
Gitbot bremner: the git-init manpage can be found at http://git.or.cz/man/git-init11:03
macgerhard parasti: I ran git format-patch -8 and it doesn't include the commit messages. Subject includes only the first line from the commit message.11:04
parasti macgerhard: well, I doubt anyone would like the subject to contain the entire commit message11:06
clairvy__ left11:07
macgerhard parasti: ok, I'll tell you what I'm trying to achieve, maybe you can offer a better suggestion because this is becoming so frustrating!11:07
I have a bunch of commits that refer to a particular directory which I want to move in it's own repo. I have tried using git filter-branch, but because that directory has changed name, it didn't seem to work very well. What am I missing?11:08
sf_ joined11:09
FunkeeMonk left11:10
Soliton left11:10
Soliton joined11:11
mako left11:11
parasti macgerhard: are you having any trouble with the format-patch route? it seems like a good way to do what you want to do11:13
macgerhard parasti: yep. First of all, it doesn't include the full commit messages. Then I got to the patch where the directory has renamed, I'm getting this error: http://pastie.org/26443611:16
parasti macgerhard: it does include the full commit messages -- first line in the subject, the rest in the body of the patch11:18
macgerhard parasti: hmm, I can't see them in the body. Let's say that it does include them in the body, when I run git apply patch_file, I still have to manually enter the commit message & then commit11:19
parasti macgerhard: you don't usually use git-apply on git-format-patch output11:20
macgerhard: use git-am instead11:20
macgerhard: as for the renames, you need to tell format-patch to detect them11:20
macgerhard: and you probably need --binary too11:20
macgerhard let me rtfm for git am11:21
whee joined11:24
scroogey joined11:25
scroogey how can i checkout a branch w/o the whole history?11:25
bremner scroogey: how do you mean checkout? maybe git-archive11:25
scroogey yeah just the latest revision w/o the history backlog11:26
bremner !man git-archive11:26
Gitbot bremner: the git-archive manpage can be found at http://git.or.cz/man/git-archive11:26
scroogey aha oki :)11:26
thought so already11:26
bremner scroogey: watch the trailing / on --prefix11:26
whee left11:27
cedricv left11:27
whee joined11:28
iulian joined11:29
cedricv joined11:32
botanicus left11:34
anttih_ how do I mirror a SVN repo without the metadata in the commits? --no-metadata doesn't seem to work.11:34
jlemieux left11:35
macgerhard parasti: I ran this git format-patch -M --binary <sha> & then git am, same errors, am doesn't handle the renames very nicely11:37
sander_ I get: fatal: Entry 'config/database.yml' not uptodate. Cannot merge..... The problem is that we have 2 versions of config/database.yml ..how should we solve that?11:42
..I do "git pull" and get the message abow.. that file is added to .gitignore11:43
How does .gitignore works?11:44
GNUix joined11:44
GNUix how do I stop zsh from trying to autocorrect git config to git .config11:46
pygi joined11:46
JenkingWinlker left11:47
ph^ left11:47
ph^ joined11:49
Soliton sander_: sounds like that file is checked in.. .gitignore is there to ignore uncommitted files.11:53
macgerhard how do I get format-patch to handle renames? I've used -M but that doesn't seem to cut it. The error that I'm getting is http://pastie.org/26443611:53
deavid left11:55
sf_ left11:58
yofel__ joined11:58
parasti macgerhard: does using -M -M (double -M) make any difference?11:59
SRabbelier left11:59
SRabbelier1 joined11:59
cbreak joined12:00
SRabbelier1SRabbelier12:00
macgerhard parasti: nope :(. But I have the .dotest directory. Can I fix the patch somehow?12:01
boink__ joined12:01
yofel_ left12:02
Weasel[DK] joined12:02
cannonball joined12:02
grahal left12:03
reuss joined12:04
bentob0x left12:05
reuss doesn't split work with git add -i anymore? ... it's not in the "short-options" Stage this hunk [y/n/a/d/j/J/e/?]? - but in the long descriptions it's still there: s - split the current hunk into smaller hunks12:05
Mikachu reuss: it works, but it needs enough context lines12:08
macgerhard reuss: if you don't have split, it means that that hunk cannot be split further12:08
charon reuss: 'split' only works if there are context lines in the middle of the hunk12:08
siprbaum left12:08
charon damn, Mikachu wins12:08
Mikachu but you can use e instead!12:08
paddor left12:08
reuss hrm, okay - it was two lines seperated by a blank line, and then another line - just assumed it could split it on the blank line ...12:09
macgerhard Mikachu: care to jump in on my problem with renames & git am?12:09
Mikachu macgerhard: not particularly12:09
macgerhard Mikachu: is it a hairy one?12:09
charon reuss: a blank context line, or a blank add/remove line?12:10
(i'd consider it a bug in the former case, it should be able to split on any kind of context)12:10
tango_ question: should I just hope that jakub gets back to my refmark patch, or should I resend to the ml?12:10
ph^ left12:11
joern_ joined12:13
raz left12:13
boink__raz12:13
reuss charon: uhm, just a blank line - i think12:14
lorandi joined12:15
paltman joined12:15
siprbaum joined12:16
charon reuss: works for me...12:17
i.e. it correctly splits at blank context lines, and you can't blame it for not treating added (+) blank lines special12:17
joern_ left12:20
redondos left12:21
redondos joined12:21
dwmw2_lunchdwmw212:29
ph^ joined12:29
tusho joined12:32
tusho are there online docs for Git.pm anywhere?12:32
cmarcelo joined12:32
sztanphet only google knows12:32
marj left12:32
up_the_irons2 joined12:32
tusho sztanphet: I did try, you know.12:33
Thanks for the sarcasm, though.12:33
charon 'perldoc Git' ?12:34
macgerhard Mikachu: cheers for making me think a bit harder on my issue. I've sorted it by applying the changes manually, all other patches worked afterwards :). Cheers!12:36
MK_FG joined12:38
MK_FG left12:38
Judofyr left12:40
Judofyr_ joined12:40
mlins joined12:41
EmilMedve joined12:42
paltman left12:44
jlemieux______ joined12:44
jlemieux______jlemieux12:44
priidu_ joined12:45
deavid joined12:46
zerok left12:46
DrewR joined12:47
jonas_k9 left12:47
jones- Hello. I have a new local git repo: I did git-init, did some work, then did git-add and git-commit and now everything is fine. Now I want to create a directory in a svn repo and use git-svn to sync. How can I proceed?12:48
mbroeker joined12:48
jones- Maybe I'll just edit my .git/config12:49
jptix joined12:50
priidu left12:50
tusho left12:55
jones- Hmm. What does this mean?12:56
$ git-svn dcommit12:56
Unable to determine upstream SVN information from HEAD history.12:56
Perhaps the repository is empty. at /usr/bin/git-svn line 424.12:56
mw|out joined12:56
mw|outmw12:56
parasti jones-: you should read an introduction to git-svn or at least man git-svn12:58
Gitbot jones-: the git-svn manpage can be found at http://git.or.cz/man/git-svn12:58
jones- I've been looking at that.12:58
It's not clear to me how to behave if you first have a git repo and then you want to publish it to svn.12:58
I have other repos that I were ported from svn to git, but can't do the other way around :)12:58
parasti you never want to publish it to svn, that's all :P13:00
jones- parasti: heh, I wish.13:00
Mikachu you have to first somehow create the svn repo, then clone that with git-svn, then you can commit and svn dcommit13:01
bobmcw joined13:01
jones- Mikachu: ok thanks.13:01
gebi jones-: git-svn clone the svn repo and rebase your branch on top of the git-svn branch, then git-svn dcommit should work just fine13:10
JohnFlux joined13:10
chrisb joined13:10
jones- gebi: good idea, I'll try13:10
JohnFlux I've committed 3 times in a row, because I kept making stupid mistakes13:10
is it possible to now merge these three commits, before I push upstream?13:10
so upstream see it as just a single commit13:11
broonie JohnFlux: rebase -i or merge --squash13:12
gebi something like: git reset HEAD^^; git commit --amend13:12
or reset HEAD~3; git commit13:13
grahal joined13:15
JohnFlux so, which is the best way ? :-)13:15
merge --squash sounds like the friendliest way13:15
mbroeker JohnFlux, and check svn ls http://your.repo.com/projects/project/trunk; whether your files are in the svnroot or the trunk folder.13:16
JohnFlux mbroeker: what's svn got to do with it?13:16
are you in the right channel? :)13:16
mbroeker ah mr jones ;)13:17
JohnFlux, sorry, wrong topic13:17
JohnFlux hehe :)13:17
stouset|awaystouset13:17
G_SabinoMullane left13:17
GNUix left13:17
JohnFlux hmm, I don't understand the help for merge --squash13:17
git rebase -i doesn't give any output.. I don't know if it's changed anything13:18
git log still shows my 3 commits, so I guess not13:18
ehamberg git rebase -i HEAD~313:18
JohnFlux ehamberg: thanks13:18
awesome :)13:19
ehamberg you probably want to "squash" the two last commits13:19
JohnFlux as well as rebase?13:19
the rebase has 3 lines like "rebase xxxxxx comment.."13:20
elux joined13:20
JohnFlux when it's prompting for the commit message13:20
sergiodj joined13:20
elux how can i fetch/update a submodule?13:20
JohnFlux which all looks good. but the commit message also says:13:20
# If you remove a line here THAT COMMIT WILL BE LOST.13:20
does that mean I can't change the commit message?13:20
elux when i git pull in the directory it tells me in the status the files have changed13:20
ehamberg JohnFlux: don't you have three lines with "pick [sha]"?13:21
JohnFlux I'd like to change the commit message to something else...13:21
ehamberg: yep I have that13:21
ehamberg JohnFlux: you will be prompted afterwards13:21
change "pick" to "squash" for the two last commits13:21
they will be "squashed" into the first. when you save, you will be prompted for a commit message13:21
JohnFlux 'use commit' means 'use commit message' ?13:21
ehamberg don't care about the message for now.13:22
your $EDITOR will be launched again when you save and exit.13:22
JohnFlux ah okay, so I'll make the first one pick, and the last 2 squash13:22
ehamberg yes13:22
JohnFlux ah I see13:22
now I can change the comment :)13:22
ehamberg good :-)13:23
JohnFlux that's so awesome13:23
once I get used to this :)13:23
ehamberg yeah, i use it all the time :)13:23
you just need to do it once to see how it works.13:23
JohnFlux so, if I made all three pick instead, what would the difference be?13:23
ehamberg nothing :)13:23
vbabiy joined13:24
G_SabinoMullane joined13:25
saimon How is it possible to amend older commit messages (i.e. not the lastest one) without using git rebase -i?13:29
(and without having to edit the code)13:29
Pieter you can use git-filter-branch13:29
saimon Pieter: I was sure git could do it :) thanks13:30
sf_ joined13:30
Pieter but or use something like git checkout commit-to-be-changed && git commit --amend && git rebase --onto HEAD commit-to-be-changed master or so13:31
saimon Pieter: I want to avoid using rebase as this topic branch tracks a remote topic branch. WIll this come up with problems when pushing to the remote branch?13:33
mithro left13:33
Pieter saimon: yes. but using filter-branch will cause the same problems13:33
either way you're rewriting history13:33
markkalderon joined13:34
saimon I see....i.e. isn't there a low level command that takes a commit object and allows you to edit it's message directly without modifying history?13:34
Pieter no13:35
the message is part of the history, you can't ever change it13:35
saimon ok...13:35
thanks13:35
dotsintacks_ joined13:35
j_engelh left13:35
EmilMedve left13:38
EmilMedve joined13:38
ph^ left13:38
leitgebj left13:39
ph^ joined13:39
dotsintacks left13:41
scroogey left13:43
joern- joined13:43
warlock_mza joined13:44
Judofyr_ left13:46
Judofyr joined13:47
mithro joined13:51
Judofyr left13:51
reuss left13:53
mbroeker left13:53
aroben joined13:57
Catfish joined13:57
qrush joined13:57
irotas left13:58
paltman joined14:02
redondos left14:03
redondos joined14:03
tjafk1 joined14:03
loincloth joined14:03
kanru left14:04
irotas joined14:04
jds left14:04
stouset left14:04
kanru joined14:06
spearce joined14:08
chrisb left14:08
warlock_mza left14:08
tjafk2 left14:11
pasky how can i make git fsck report only real errors?14:14
parasti git fsck | grep 'real error'?14:16
sf_ left14:20
Zarin joined14:21
cbrake_awaycbrake14:21
leitgebj joined14:22
gberdyshev joined14:22
chrisb joined14:25
lionr left14:25
Sho_ left14:26
up_the_irons3 joined14:27
DrewR left14:29
gberdyshevgberdyshev_14:29
brett_h joined14:29
gberdyshev_gberdyshev14:29
brett_h anyone know anything about "PROPFIND request failed" when doing a git-svn clone? http://pastebin.com/m2fb06ec014:30
EmilMedve left14:30
loincloth left14:31
warlock_mza joined14:31
loincloth joined14:31
rmh3093 joined14:33
priidu_ left14:33
warlock_mza left14:33
zumbrunn left14:34
EmilMedve joined14:35
loincloth left14:35
loincloth joined14:36
alley_cat joined14:36
mheld joined14:37
loincloth left14:37
loincloth joined14:37
loincloth left14:38
loincloth joined14:38
priidu joined14:38
DrFrasierCrane joined14:38
loinclot_ joined14:39
ysis left14:40
loincloth left14:40
stouset joined14:40
loinclot_loincloth14:40
roderyk joined14:40
roderyk left14:41
mheld anybody familiar with the textmate bundle for git?14:41
DrFrasierCrane left14:42
loincloth left14:42
pygi left14:42
loincloth joined14:43
loincloth left14:43
up_the_irons2 left14:43
aiur joined14:44
up_the_irons3 left14:45
zerok joined14:47
kinzunikonzikonz joined14:49
kinzunikonzikonz hey peoplle14:49
loincloth joined14:51
JohnFlux ehamberg: I have another commit that I want to merge with my previous commit14:51
warlock_mza joined14:51
JohnFlux ehamberg: i haven't yet committed14:51
is there a better way than doing git-commit -a; git-rebase -i ..14:51
peritus_ left14:52
cbreak you mean like git commit -a --amend?14:52
loincloth left14:52
loincloth joined14:53
JohnFlux cbreak: awesome14:54
cbreak: thanks14:54
loincloth left14:55
rdavila joined14:56
mheld anybody here do web development work using git?14:56
charon_ joined14:57
bmalee mheld: sort of; I use git-svn.14:57
mheld ah14:58
aCiD2 joined14:58
charon left14:58
charon_charon14:58
JohnFlux bmalee: how are you finding it?14:58
cedricv left14:58
johs joined14:58
bmalee JohnFlux: miles better than svn, for a start.14:59
lea_w left14:59
loincloth joined15:00
Ryback_ joined15:01
aiur left15:02
bmalee JohnFlux: I've had no major problems, and e.g. branching has been very helpful.15:02
aiur joined15:02
schlort joined15:03
kinzunikonzikonz left15:03
akahn joined15:05
akahn If my co-worker cloned a git repo from me the other day, how can he get the changes that I've made since then?15:05
bmalee akahn: 'git pull' should default to the repo it was cloned from.15:05
akahn bmalee: okay, i'll give that a shot, thanks. does that give him a preview of what's going to change or does it just do it?15:06
macgerhard_ joined15:06
BarryCarlyonPerl_15:06
Perl_BarryCarlyon15:06
davidfetter joined15:06
johs It applies your changes to his working directory also.15:06
If he just wants to get the changes without doing that, he can do "git fetch".15:06
mheld what workflow would you use for web design/development?15:07
with a live site and a dev site to test the upcoming live stuff15:07
johs That is, it also merges.15:08
cebewee left15:08
aCiD2 I just did "git merge some-branch" then realised I didn't actually want to merge this branch, what's the corerct way to undo - git reset HEAD?15:08
akahn johs: ok, cool.15:09
macgerhard_ left15:10
macgerhard left15:10
macgerhard_ joined15:10
warlock_mza left15:12
mithro left15:12
mithro_ joined15:12
sf_ joined15:14
aCiD2 Ah, got it - git-reset --hard ORIG_HEAD15:14
elux left15:18
eternaleye joined15:18
juanjoc joined15:19
kinzunikonzikonz joined15:22
zumbrunn joined15:22
kinzunikonzikonz left15:22
cyclist joined15:23
johs I'm curious about the "git am"-feature. I have a repository B cloned from A. I do some changes in B, make a patch with format-patch. Then "git am" is used to apply it to A. So far so good, but if I later pull from A in B, the patch I sent is applied to B again, along with a merge commit.15:23
Is there some clever way to avoid this?15:23
bdiego joined15:24
aCiD2 I assume A can't pull from B?15:25
johs That's the idea.15:25
kanru left15:26
jackdempsey joined15:27
johs Of course, I can just toss the commit from B after sending the patch...15:27
Is that how it's done?15:27
Well, it works, anyway.15:28
That is, "git reset" in B, and then pull.15:28
Tv johs: 1) use bundles 2) use rebasing in B15:28
johs Oh, cool.15:29
Thanks.15:29
cyclist which command can i use to find the object ids of the history of a file? and can they be used as input to git-pack-objects?15:32
redondos left15:32
redondos joined15:32
cyclist actually i want to do the latter in order to understand the pack format15:32
cbreak can you not use git log to get all commits that affect a file?15:33
zumbrunn_ joined15:33
cyclist doh. right15:33
cbreak and then use git cat-file to get the tree from the commit15:34
spearce yea, but then you are really taking about doing something more like `git rev-list --all -- $path | while read c; do git rev-parse $c:$path;done`15:34
cbreak and again to get the file hash out of the tree15:34
cyclist is the resulting list suitable for feeding into git-pack-objects?15:35
johs Tv: Do people use "git bundle" to submit patches, by the way?15:35
Tv: Or is it only intended for, as the man-page says, things like sneakernets.15:36
joern- left15:36
Tv johs: it's kinda rare to actually need it15:36
johs: what's the difference between submitting patches and sneakernet, really..15:36
it's like a git push you can save as a file15:36
nothing more, nothing less15:36
spearce cyclist: yes15:36
Tv in the real world, most projects that would actually need to use bundles for cooperation can just set up a pushable repo15:37
johs Yes, and that is no problem for me either. I was just curious about how people actually manage with patches by email. :)15:37
spearce Tv: i'm actually working on a web based code review system that uses bundles as the means of injecting new series into the review queue.15:38
johs That is, how the patch-submitter would normally work with his repository to avoid the logspam that ensues from pulling commits you've submitted.15:38
crab joined15:38
crab hi.15:38
neoneurone joined15:38
johs Just curious, is all. :)15:39
crab what's the best option for non-ssh push-to-central-repo support?15:39
johs Thanks for your tip.15:39
zumbrunn left15:39
offby1 crab: if "central" and you are on the same box, then "git push /path/to/repository.git" works fine :)15:39
charon johs: i actually just rewind and rebuild git.git after building cruft for a while15:39
crab offby1: gee, thanks.15:40
charon that is, reset --hard origin/master and merge the two or so "eternal" local branches15:40
offby1 crab: otherwise, I dunno. Maybe email or ftp a bundle to the central box, then (somehow) log in and "pull" from the bundle ... ?15:40
neoneurone left15:40
sverrej left15:41
johs charon: Yeah, that works, I guess.15:41
kinzunikonzikonz joined15:41
johs charon: Thanks to you as well.15:41
joern_ joined15:41
kinzunikonzikonz left15:42
offby1 crab: don't give up because nobody else answered. I too am curious to hear a better answer than mine15:43
Lash| left15:43
kanru joined15:43
kinzunikonzikonz joined15:43
macgerhard joined15:44
cyclist i have just the .git directory and i'm doing a "git checkout master" and it prints the directories and doesn't do anything else! wtf15:45
mbroeker joined15:45
mlins left15:45
polpak joined15:45
digitalhobbit joined15:45
sgrimm left15:46
doener cyclist: the list tells you that you have changes to those files. In this case: you delete them all15:46
cyclist: "git reset --hard" now to throw those local changes away15:46
quizme joined15:47
cyclist no no. I just copied the .git directory from my project to another location in order to experiment. now i want to checkout15:47
quizme hello, what is the prefix option for? should i set it to /usr or /usr/local ? I'm confused.15:47
cbreak I left it at the default which seemed to be /usr/local15:47
Soliton cyclist: which is the same as deleting your working tree.15:48
Weaselweb ^^15:48
cyclist aw right15:48
mbroeker cbreak, install it in /usr/local and it won't interfere with your distros package manager and it's easier for you to remove or upgrade it later.15:49
cbreak mac os x has no package manager15:49
quizme cbreak: so to install: make configure; ./configure; make all doc; make install install-doc install-info;15:50
cbreak but I agree, local is the best place15:50
redondos what about fink?15:50
cbreak I don't like fink15:50
quizme why is /usr/local the best place ?15:50
kinzunikonzikonz left15:50
doener quizme: if you can live without info pages, use the quick-install-doc target which installs the prebuilt man pages15:51
quizme mbroeker: oh i see15:51
doener quizme: building the docs takes a few ages15:51
offby1 *nod*15:51
doener ... assuming you install from git.git, not sure if the tarballs have prebuilt docs15:51
kinzunikonzikonz joined15:52
quizme doener: so, make install quick-install-doc; ?15:52
doener yep15:52
quizme ok doener thanks15:52
doener and no "make doc" either15:52
cbreak I use /usr/local because I know all in it is installed by me, and not some system related stuff15:52
quizme doner: your name rhymes with boner btw15:52
cbreak: ok got it, thanks15:53
thanks everybody15:53
by007 joined15:54
quizme i think i understand RSA encryption now...15:54
qrush left15:54
saimon left15:55
quizme i don't need to do the quick-install-doc do i (if i use the internet for reading docs) ?15:55
andres left15:55
quizme make install worked, but make quick-install-doc barfed on me15:56
does anybody have a better article than this one: http://toolmantim.com/article/2007/12/5/setting_up_a_new_remote_git_repository ?15:59
for setting up a remote git repository ?15:59
joern_ left16:00
ben_h left16:00
quizme what's the /var directory for? Why put your remote git repositories there ?16:00
macgerhard_ left16:00
advany left16:01
thiago quizme: /var is for data16:01
cyclist spearce: thanks. your git-rev-list|while.. git-rev-parse thing is just what I needed16:01
bobmcw left16:01
thiago lots of servers are in /var/www or /var/lib/www or even /var/lib/apache16:01
though recently many distros started using /srv for that16:01
kinzunikonzikonz left16:01
quizme thiago: ohh16:02
thiago: var = data . . . . . . that's deep16:02
spearce cyclist: technically its not quite complete as pack-objects takes an optional file name after each object id. the file name is a hint to help it hash objects for the same file into the same bucket so it can consider them for delta compression. but the path name is irrelevant if you are only submitting objects for the same file.16:02
Kanniball left16:02
qrush joined16:02
thiago quizme: I used to have /mnt/junk16:02
quizme thiago: then you saw the light of /var16:03
cyclist ok i'll remember that16:04
Fullmoon joined16:04
sztanphetsztanpet16:05
bobesponja joined16:06
andres joined16:06
andreszz_andres16:06
zz_andresandres16:06
JohnFlux left16:07
macgerhard left16:07
bobesponja left16:07
macgerhard joined16:08
lchavez joined16:08
chrisb left16:09
lea_w joined16:09
lchavez Hello .. i would like ask if it is posible to use git on a server .. using https or ssl ... but it should be definitely a secure way ..16:10
oh i misstype me .. sorry ..16:11
spearce cyclist: what are you trying to learn by poking pack-objects? have you read technical/pack-format.txt ?16:12
cyclist yes. I want to see the deltas in raw text form, for one16:12
spearce well, the deltas are not stored in text format. ;-)16:14
Beket joined16:14
LiamH joined16:14
cyclist i know that they are compressed. but what *is* compressed? diffs?16:14
sf_ left16:14
spearce a binary delta format is compressed with zlib.16:15
the binary delta format is based upon two commands: "insert" with an sequence of bytes to insert at the current position, and "copy" with a source offset and a length to copy from the base object.16:15
cyclist i imagined so. something like "very compressed diffs"16:15
spearce the delta format works on any file format, but depends on being able to find blocks of common bytes to copy from the base.16:16
gberdyshevgberdyshev_16:17
rmh3093 left16:18
cyclist Yes obviously. In a patch, the "-" lines and the " " lines are completely useless. The "-" lines could be replaced by a "remove N lines" command, and have only the "+" lines.16:18
spearce yea, its even more compressed than a diff because there is no context and no pre-image data in the delta. the "-" sort of lines in a diff are handled in a git delta by simply not copying that region from the base.16:18
joern_ joined16:20
cyclist this is exactly what i wanted to learn by poking objects :)16:20
BarryCarlyon left16:20
Zarin left16:20
cyclist I am still going to poke a few to see it in action16:21
sergiodj left16:23
spearce http://www.gelato.unsw.edu.au/archives/git/0608/25286.html16:24
tango_ left16:24
crab left16:24
spearce there's a newer version of that but i can't dig up the url. its mostly correct.16:24
quizme how do you specifiy a different username on a remote git server when doing 'git remote add' ?16:26
spearce quizme: scp style syntax: "git remote add foo quizme@server:/path/to/repo.git"16:27
cbrake left16:27
jerbear joined16:27
quizme spearce: thanks, i'll try that.16:28
macgerhard_ joined16:28
akahn Is there a way to let my coworker pull from my repo without him having to use my login/password and without making a user for him on my machine?16:29
blowery akahn: you should be able to use the git protocol. it doesn't have any auth afaik.16:29
macgerhard_ left16:29
litage left16:29
blowery akahn: man git-daemon16:30
Gitbot akahn: the git-daemon manpage can be found at http://git.or.cz/man/git-daemon16:30
gberdyshev_ left16:30
JanK joined16:30
schacon joined16:31
JanK is there a clean way to include a svn tracked framework in my git project?16:31
quizme spearce: what's the syntax if the protocol is specified as ssh://myserver.com:/ ... i tried fred@ssh://myserver.com, but that didin't work.16:32
amigaoxxxx joined16:32
spearce quizme: then its like http as in ssh://user@myserver.com16:32
JanK i'd use svn:externals if i'd use svn for the project16:32
joern_ left16:33
akahn blowery: i thought i was using the git protocol. on his machine we ran git pull dev:/Users/akahn/emtest master, but that didn't work, if we put in akahn@dev instead, and i entered my password that worked.16:33
and i had started git-daemon16:33
blowery akahn: hrm. dunno? i don't use it personally.16:33
quizme spearce: thanks, i'll try again :)16:33
akahn ok. i think the --export-all option may do what i need16:34
kumbayo joined16:34
ajonat joined16:34
by007 left16:35
quizme in "push origin master" is "origin" a reserved word in git? or instead can you call "orgin" "home_base" or "the_womb" ?16:36
spearce its just a default name for a remote. it can be any valid URL or remote name in .git/config.16:36
quizme ok thanks.16:37
i think i'll call it "mother_ship" then.16:37
joern_ joined16:38
mithro_ left16:38
mithro_ joined16:39
shodges joined16:40
joern_ left16:40
abenea joined16:40
cyclist left16:41
quizme is there some insane compression going on with git? cuz it's unbelievably fast16:41
priidu left16:41
steve_j joined16:41
Tv quizme: there's a built-in time machine16:41
quizme: your operations are really being run in a quantum computer on the 23rd century16:41
steve_j left16:41
quizme tv: sweet.16:42
Tv the git basic design is very smart16:42
i am a linus fanboy16:42
macgerhard left16:42
Tv (though packing many-files or big-files repos is a *pain*)16:42
rmh3093 joined16:42
priidu joined16:43
lea_w left16:44
quizme i'm pretty impressed16:44
it's oodles of times faster than svn16:44
it kinda makes the svn guys look like slackers16:44
Tv oh it gets better16:45
they started writing articles on why dscms are bad for you ;)16:45
sgrimm joined16:46
gberdyshev joined16:47
bryanl joined16:47
mlins joined16:47
joern_ joined16:47
joern_ left16:48
lea_w joined16:48
bartocc left16:48
lea_w left16:48
bryanray left16:49
eMBee good evening16:49
bts- joined16:49
joydivider joined16:52
gk left16:52
bgerber When I do a pull from a cloned repo I am seeing this error16:52
error: Could not read 66e24d206a835be951e16a7a877c5701e274e1c816:52
Does this mean my update is bad?16:52
aiur left16:53
bgerber I see this happen 2-3 times a week on my git pull of the repo.16:53
What does this really mean?16:53
amerine left16:54
Yuuhi left16:58
rmh3093 left16:59
Kbyte left17:00
pygi joined17:00
com4 joined17:01
stousetstouset|away17:02
joydivider left17:02
joydivider joined17:03
sgrimm left17:13
sgrimm joined17:13
CodeOfficer joined17:14
thiago_home joined17:15
rmh3093 joined17:20
charon left17:21
mcella left17:22
sverrej joined17:22
gebi is there a way to let gitweb fill out the cloneurl itself?17:23
bryanray joined17:24
shodges left17:24
kbingham joined17:24
arpegius joined17:27
warthog9 joined17:29
tango_ joined17:29
albalbertito17:30
arpegius looking to use github for my projects. i'll have a lot of one-off whatever.com sites that i'd love to keep in a branch 'projects'. this works out fine w/ svn, as i can switch my trunk to projects/branches/projectName... git doesn't seem lean toward this method. branches in a git project should be really connected with the codebase, right? each one of my whatever.com projects would be entirely different from one another, so i've all but17:30
sztanpet left17:31
albertito arpegius: the line got interrupted in "i've all but"17:33
arpegius ... abandoned thoughts of using git. any recommendations? :)17:33
basically, does it make more sense for me to stick w/ svn17:34
LostInTheWorld joined17:34
quizme git is awesome17:34
arpegius should ask questions correctly the first time17:34
eMBee is using git for his scripts. one branch per script, no common root branch, but a merge brahc to tie them all together for common checkout in a bin directory17:34
schacon arpegius: why not keep each project in a separate repo?17:35
arpegius 5 private repos for the micro plan on github17:35
eMBee to keep things in seperate repos you need seperate directories, that's to much for single file scripts, especially if they are supposed to be in your path17:35
arpegius so i want to use it for in-house version control, not public projects. private repos are a must.17:36
schacon and you don't want them as just subdirectories in a single repo?17:37
stouset|awaystouset17:37
Cacheaway joined17:37
eMBee oh, you want multiple projects in one branch? why?17:38
schacon you _can_ create separate branches for each project in one repo, but I think that may be more complex than you want17:39
arpegius right.17:39
its a cinch w/ svn17:39
eMBee not really, just creating the branch is slightly tricky17:39
arpegius when i'm in my trunk i just switch to repo/branches/projectToWorkOn17:39
w/ svn17:40
gitish joined17:40
albertito arpegius: you can use different directories, different branches, or just ditch github and have all the repos you want =)17:40
hurikhan|Work left17:41
eikonos left17:41
hurikhan|Work joined17:41
arpegius i guess i can make it work. just gotta wrap my head around git a bit more17:42
_dontpanic_ left17:42
arpegius until it makes more sense than svn :)17:42
schacon arpegius: that's true, but that's essentially the same as having X different repos in svn - if they're totally seperate projects that can't be merged, then they're not really branches17:42
vintrepid joined17:42
albertito arpegius: branches are often used or the same project, but you can have totally unrelated branches in the same repository17:42
qrush left17:43
schacon if you _really_ want to do that, you can create a bunch of empty branches that don't share a root and import the projects one by one17:43
http://book.git-scm.com/5_creating_new_empty_branches.html17:43
polpak left17:43
schacon then just 'git checkout whatever_project' to switch between them17:43
chrisb joined17:43
ebel left17:43
eMBee wonders when git is going to get a simple shortcut for that17:44
schacon eMBee: in general, I think most people don't think it's the best thing to do in most circumstances17:44
_dave_h_d joined17:45
schacon in this case, it is much better practice and makes more sense to have one repo with subdirs for each project or multiple repos, but they're just doing this to get around github or having to have multiple svn repos setup17:46
ijcd__ left17:46
schacon even the way they're using it in svn makes more sense to have multiple svn repos, imho17:46
_dave_h_d hi all i have a php doc file headers, can i get git to write a revision number instead of * @version $Id:$17:47
schacon _dave_h_d: you probably don't want to - there is no simple id number like in svn17:47
it would be a 40 char sha17:47
_dave_h_d so get rid of that line?17:48
schacon i would - it's better to use 'git log file' to see history on it17:48
arpegius anyone running git server? i've got a 256mb slice on slicehost and just running apache and mysql takes the majority of the resources. didn't want to set up a source control server on there as well if i could avoid it.17:48
schacon or 'git blame file' to see who's edited it17:48
arpegius then i could get around github's private repo limit :)17:48
_dave_h_d schacon: so can i get a revision history for the file?17:49
schacon yup - 'git log file'17:49
eMBee schacon: true, but it can be convenient to have everything in one repo for backup and cloning purposes17:49
albertito arpegius: I use a git server that is launched by inetd, it doesnt't really use many resources. But you don't even need that if you are the only one using it, you can just use ssh17:49
arpegius reading http://blog.commonthread.com/2008/4/14/setting-up-a-git-server now... i see thats true albertito17:50
albertito arpegius: and if you want to have more than one user, you can use gitosis and handle everything over ssh17:50
JanK left17:50
ehc joined17:51
albertito arpegius: yes, and you don't even need a git user, you can use your own and set up a "repos" directory in your home or something like that17:52
arpegius strokes chin stubble17:52
ehc left17:53
bobmcw joined17:54
ehc joined17:55
quizme thanks everybody for your help. good night!17:57
quizme left17:57
flaguy joined17:58
zrajm left17:59
bobmcw_ joined18:00
vintrepid left18:00
kanru left18:01
hurikhan|Work left18:02
bobmcw__ joined18:02
gberdyshev_ joined18:06
spuk- left18:08
bobmcw__ left18:08
lchavez left18:09
foca joined18:10
cbrake joined18:10
bobmcw left18:12
thannoy joined18:14
bobmcw_ left18:16
dwmw2dwmw2_gone18:19
ijcd joined18:19
ijcd left18:19
ijcd joined18:19
gberdyshev left18:20
eikonos joined18:21
ajonat left18:23
JanK joined18:24
JanK shouldnt git-svn convert svn branches to git branches?18:25
and tags to tags18:25
vmiklos svn has no tags18:25
svn tags are in fact branches.18:26
JanK hmm, ok than shouldnt it create branches?18:26
albertito JanK: see the -t and -b options18:26
JanK i used --stdlayout (or similiar) and it recognized the folder structure (at least i have the trunk in the checked out folder now)18:27
Soliton maybe you want git branch -r?18:27
Ryback_ left18:28
capisce joined18:28
DrewR joined18:29
JanK Soliton: yep :/18:29
_dave_h_d left18:31
JanK hmm, ok all branches and tags are listed as "remote branches"18:32
but i'm wondering which branch my master is18:32
as it isnt trunk18:33
CodeOfficer left18:37
Soliton git log -1 probably tells you in the git-svn-id line.18:37
kergoth`work left18:40
capisce_ left18:40
_graham_ joined18:41
priidu_ joined18:42
alb joined18:43
malahal joined18:45
malahal I did some 'rm -rf *' from the working directory... Now it says, no branch, what does that mean?18:46
git branch18:46
* (no branch)18:46
master18:46
origin18:46
v2.6.26-rc118:46
tongueroo joined18:47
Pieter you did a checkout on non-branch, which detached your head18:47
malahal Pieter, that is correct. How do I checkout a tag now?18:47
Pieter git checkout -f tagname18:48
malahal Pieter, git checkout 'tag' would do?18:48
Pieter, thanks for the force option.18:48
lea_w joined18:48
RandalSchwartz checking out a tag also results in a detached head, if I recall18:49
as in, you're not in a place where you can make a commit18:49
Pieter yes18:49
well, you can, but it won't change the tag18:49
RandalSchwartz that must be relatively new18:49
Pieter at least since 1.5.3, I think18:50
RandalSchwartz in Olden Tymes, detached heads were basically view-only18:50
JanK left18:50
malahal Pieter, RandalSchwartz I won't be making any commits....18:51
RandalSchwartz "then you're part of the problem, not part of the solution" :)18:51
or maybe just a guy... "fear of commitment" :)18:52
BarryCarlyon joined18:54
warlock_mza joined18:55
priidu left18:55
sbeyer joined18:55
digitalhobbit left18:57
Pieter I think it would be nice if "git commit" would show a warning after having committed on a headless checkout18:57
stousetstouset|away18:58
david_koontz joined18:59
koke left19:01
foca left19:01
kergoth`work joined19:02
archis joined19:02
sbeyer Pieter: it shows Not currently on any branch.19:02
Pieter: in the commit message editor19:02
Pieter: more attention please ;)19:02
:)19:02
Pieter sbeyer: yeah, but that doesn't work with commit -am"hello"19:03
_slacker_ left19:03
albertito left19:04
stouset|awaystouset19:04
lea_w left19:05
loincloth left19:07
koke joined19:08
mlinsmlins|away19:08
koke left19:09
chrisb left19:18
koweywork joined19:24
alley_cat left19:27
jdavis_ left19:30
kbingham left19:30
gitish left19:30
sbeyer Pieter: commit -a is evil ;)19:31
elSid joined19:31
sbeyer Pieter: if you *use* the index and do git status, then you'll see if you're not on a branch :)19:32
theoros left19:32
ferdy left19:32
elSid hey, I'm getting an error which says that a file would be overwritten by merge. cannot merge.19:32
I want this file to be overwritten by the merge19:32
I've tried deleting the file and checking it out again, but doesn't fix19:33
...is there a force option?19:33
sbeyer elSid: you could just remove the file ;)19:34
Tv elSid: maybe you checked it out from the index, which means it could still be modified when compared to HEAD19:34
sbeyer elSid: usually this message only comes up, if you have an untracked file in the working tree, that will be overwritten19:34
alb elSid: the file is untracked by git, and git is afraid to overwrite it. If you are sure, just remove it and then do the merge19:34
Tv how can it be untracked by git if he said he "checked it out again"?19:35
robinr joined19:35
alb Tv: I missed that part19:36
elSid: is the file tracked by git? =)19:36
elSid when I deleted it the first time, I just deleted it locally19:36
should i git rm filename ?19:36
and then re checkout19:36
paltman left19:36
elSid yes, it's tracked by git19:37
ferdy joined19:37
elSid I made a change on a server's local repository, and forgot, then made changed on my comp local directory and pushed them19:37
mountie left19:38
Tv elSid: get to a point where git status doesn't list it, then try the merge19:38
flaguy left19:40
warthog9 left19:41
hidek left19:41
Fullmoon left19:42
albalbertito19:42
elSid ..I reset the head, deleted the file and re pulled,19:42
seemed to work19:42
elSid left19:42
elSid joined19:43
Weaselweb left19:44
pjhyett joined19:46
rillian does msysgit work ok with putty/pagent keys?19:48
jmspeex left19:48
robinr rillian: I think so, if plink is putty19:52
rillian I believe so19:52
TortoiseSVN manages to find it somehow, so I've never had to find out :)19:53
ShadeHawk joined19:53
robinr msysgit asks you about it I think19:53
morphir joined19:53
ebel joined19:54
pygi left19:54
mheld left19:54
MaddHatter rillian: yes, it works if you set GIT_SSH19:55
rillian ok, thanks19:59
I'll give it a try19:59
rmh3093 left20:01
warlock_mza left20:01
DiscoMur2 joined20:05
DiscoMury left20:05
DrNick2 joined20:05
DrNick left20:05
DrNick2DrNick20:05
janm left20:07
DiscoMur2 left20:07
spuk- joined20:09
mithro_ left20:09
mithro_ joined20:10
pasky what is Giuseppe Bilotta's nick again?20:10
tango_ pasky, me 8-D20:10
pasky ah20:10
can you explain the last hunk, please?20:10
BarryCarlyon left20:10
tango_ pasky, yes. we keep the ^{} at the end of indirect tags so that format_ref_marker can differentiate20:11
ph^_ joined20:12
tango_ pasky, (see my $indirect = ...)20:12
that was jakub's idea as opposed to the git get type call20:12
zerokzerok|away20:13
ShadeHawk pasky, tango_: get_git_references saves extra info which is later stripped in format_ref_marker anyway20:14
pasky, tango_: namely the 'type' part, e.g. "tags" in "tags/v1.5.0" from "refs/tags/v1.5.0" is stripped also20:15
tango_ hm no it's not20:15
jpwatts joined20:15
tango_ unless that's a recent change20:15
gebi is there a way to let gitweb fill out the cloneurl itself?20:16
ShadeHawk gebi: yes, see gitweb/README (or gitweb/INSTALL); there is gitweb configuration variable for that20:17
rmh3093 joined20:20
pumpkin joined20:21
pumpkin how can I merge two git repos into one? I have a client and a server of a program that I'd like to track simultaneously, and I'd like to retain histories20:22
boodle joined20:22
akahn left20:22
rmh3093 left20:22
boodle can someone please explain how to do a revert?20:23
rmh3093 joined20:23
Pieter pumpkin: just pull one into the other20:23
boodle: git revert <sha>20:23
gebi ShadeHawk: cool :)20:24
thx20:24
boodle complains "fatal: Dirty index: cannot revert"20:24
pumpkin git shower20:24
sbeyer boodle: what do you mean by revert? Reversing the changes of a commit?20:26
EmilMedve left20:26
sbeyer boodle: Or cleaning your working directory?20:26
boodle sbeyer: really want to "rollback" my local master to a prior github commit20:26
sbeyer boodle: Take a look if "git help reset" might help you... I think git reset --hard <sha> is the right choice for you, but I may be wrong20:27
boodle sbeyer: ty20:27
sbeyer boodle: and perhaps #github can help you ;)20:27
boodle oops :) ok!20:27
boink__ joined20:28
hachi_hachi20:29
loincloth joined20:30
amerine joined20:32
mountie joined20:32
flazz joined20:35
flazz how do i clear the index?20:35
pumpkin left20:36
priidu_ left20:37
sf_ joined20:38
statim left20:39
statim joined20:40
jlemieux left20:40
sbeyer flazz: I'm currently not sure if there is some porcelain for that, but git read-tree HEAD could help you, if you look for a way to remove the changes in the index20:40
raz left20:40
boink__raz20:40
flazz i guess i could touch all the files20:40
doener sbeyer: uhm, "git reset"?20:40
sbeyer doener: without touching the working tree?20:41
but perhaps flazz is meaning looking for something different20:41
warthog9 joined20:41
doener yeah. "git reset" == "git reset --mixed" == "Resets the index but not the working tree"20:41
sbeyer -meaning20:41
doener: ok :-)20:41
doener flazz: what exactly do you mean by "clearing the index"?20:42
sbeyer doener: it's so obvious that I didn't think of it20:42
;-)20:42
mlins|awaymlins20:42
mlins left20:43
doener sbeyer: well, there's still the possibility that he wants "rm .git/index" ;-)20:43
sbeyer doener: yes20:43
alb joined20:43
sbeyer doener: but I couldn't imagine ;)20:44
codeshot joined20:46
boodle left20:47
k776 joined21:00
thannoy left21:02
spearce left21:02
thannoy joined21:02
albertito left21:03
Eludias left21:03
cannonball left21:05
tango_ pasky, so what's your take on the refmark patch?21:09
IdahoEv joined21:14
ph^_ left21:15
IdahoEv How do I create a repo that is a clone of another repo, but only up through a certain commit (where that commit is several commits older than HEAD). I don't want the newer information in this repo at all.21:15
Tv IdahoEv: init and fetch just what you want21:16
iulian left21:16
archis_ joined21:16
Tv IdahoEv: or clone and throw away unwanted21:16
koweywork left21:16
thiago_home IdahoEv: clone, then reset the heads to the commits you want21:16
IdahoEv "throw away unwanted" is done with git-reset?21:17
thiago_home for the current branch, yes21:17
if you want to change a branch without checking it out (including remote branches), you can use git update-ref21:17
IdahoEv okay, thanks muchly21:17
nkallen left21:18
lorandi left21:22
ajonat joined21:22
anttih_ left21:25
sander_ How do I merge a file?21:27
stousetstouset|away21:27
thiago_home gut merge <commit>21:27
git21:27
Tv you don't merge files, you merge commits (with their full history)21:27
sander_ git merge "test" gives me: You are in the middle of a conflicted merge.21:27
ShadeHawk git-merge-file / merge / rcsmerge21:28
or git-mergetool (after configuring it, of course)21:28
stouset|awaystouset21:28
ShadeHawk sander_: do you want to _merge_ file, or to _resolve_ a merge?21:29
drizzd_ sander_: use git status21:29
sander_ git status tells me the file is unmerged21:29
I've modified it as I want21:29
I want to commit!21:29
ShadeHawk git add <file>21:29
should mark it as resolved21:30
thiago_home what did git merge say when you got the confict?21:30
ShadeHawk (pre-commit hook still checks for conflict markers)21:30
sander_ Cool. now it works21:30
thiago_home, You are in the middle of a conflicted merge.21:31
thiago_home sander_: before that.21:31
sander_: you did a git merge and it said there was a conflict.21:31
sander_: what else did it say?21:31
sander_ Automatic merge failed; fix conflicts and then commit the result.21:31
thiago_home was that all?21:32
ShadeHawk Do you have account on KernelTrap? If you have, could you increment counter for Git User's Survey 2008 announcement in "Popular mailing list messages"? TIA21:32
sander_ Auto-merged app/models/user_observer.rb21:32
Ademan left21:32
sander_ CONFLICT (content): Merge conflict in app/models/user_observer.rb21:32
ereslibre left21:32
sander_ thiago_home, that was all.. ANd I didnt know how to fix the conflict..21:33
But I know now :-)21:33
archis left21:33
sergiodj joined21:33
thiago_home which version of git is that?21:33
I thought it had instructions to git add21:33
sander_ 1.5.621:33
I did an "git pull".. when I got the conflict21:34
drizzd_ thiago_home: I don't think merge tells you to use add21:34
sander_ But git status gave me the thing to do.21:34
vbabiy left21:34
thiago_home drizzd_: right21:34
it's just git rebase then21:34
amigaoxxxx left21:34
sander_ Things like this makes it abit hard to learn git.. But i'm trying ;-()21:35
thiago_home but it's reports like yours that help improve it21:35
sander_ There is too many commands. and I dont know where to start all the time21:35
drizzd_ sander_: you just learned how to merge, that's not so bad21:35
ShadeHawk sander_: IIRC Junio just added description of conflict format, and how to resolve conflict to git-merge manpage21:35
thiago_home git developers all know that you use git add when you've fixed conflicts, so they won't even pay attention to the message from git-merge21:36
(or lack thereof)21:36
drizzd_ sander_: any SVN user would go green with envy21:36
Sput thinks git-pull at least used to give that message though21:37
sander_ I'm actually all fresh.. git is my first real experience with a version control system.21:37
Sput sander_: oh good, not spoiled by $NONDVCS21:37
:)21:37
ShadeHawk Wohooo,... 883 responses (not counting 'test' channel) in Git User's Survey 2008....21:37
krawek joined21:38
drizzd_ sander_: not polluted you mean21:38
jackdempsey left21:38
flask- joined21:38
sander_ Yeah.. My dad is using git too much.. so he convinced me to learn it too.21:39
sf_ sander_: your dad works at trolltech?21:39
sander_ No.. He works at birdstep.21:39
sf_ ah21:40
sander_ IN the .us part.21:40
sf_ bad guess ;-)21:40
flaguy joined21:40
sander_ Pretty nice.. I just got the deployment app capistrano.. which already have git support.. working with ruby on rails21:41
gberdyshev_ left21:41
sander_ git push; cap deploy:update; cap deploy:restart .. and a new version is running in production mode on my server. :-)21:42
fReAkY[t]freaky[t]21:42
amystrat joined21:42
ShadeHawk sander_: did you fill the survey yet? ;-)))21:42
amystrat is there a way to revert a file to a previous state based on a commit tag?21:43
sander_ ShadeHawk, which one?21:43
Have I missed something?21:43
ShadeHawk http://tinyurl.com/GitSurvey200821:44
amystrat: "git checkout <tag> -- <file>" or "git show <tag>:<file> > <file>"21:44
tango_ ShadeHawk, oh you're jakub 8-D21:45
kumbayo left21:45
amystrat ShadeHawk, thanks21:46
tango_ ShadeHawk, so, any chance for the refmark patch to go inline? I'm really itchy to patchbomb the ml with my other improvements to gitweb ;)21:46
ShadeHawk (sorry, somehow I lately use signature without "ShadeHawk on #git" there)21:47
tango_ I should probably start usign a similar signature 8-)21:47
ShadeHawk tango_: the problem is that gitweb doesn't have maintainer, although Junio pays attention to what people who contribute significantly to it says21:47
tango_ ShadeHawk, I know. he's waiting for you and/or pasky to ack the patches21:48
btw is there a reason why gitweb doesn't have a maintainer?21:48
ShadeHawk (but if you do "/WHOIS ShadeHawk" you can see that 'Jakub Narebski' is my realname)21:48
tango_ ShadeHawk, yes that's how I just realized it was you 8-D21:49
mutex has anybody tried gitbuilder yet ?21:49
arpegius left21:50
Gitzilla joined21:50
zerok|awayzerok21:51
chrisb joined21:51
amystrat left21:51
ebel left21:52
novas0x2a joined21:53
Pieter ah, ShadeHawk is Jakub21:53
freaky[t]fReAkY[t]21:53
jerbear left21:55
Mikachu rockbox has a wiki page with ircname <-> realname mappings... :)21:55
fReAkY[t]freaky[t]21:56
joydivider left21:57
lea_w joined21:59
guille_ joined21:59
guille_ hi22:00
CodeOffi_ joined22:00
doener_ joined22:00
ShadeHawkjnareb22:01
jnareb just for you... ;-)22:02
tango_ lol22:02
brett_h left22:02
Tv /whois jnareb22:04
leitgebj left22:05
novas0x2a i'm trying to exclude everything in a test dir, except for things with a . in them. i added "tests" (or ./tests, or /tests) and "!tests/*.*" to info/exclude, but it didn't seem to work as i expected. did i do something wrong?22:06
jchris joined22:06
zerok left22:07
grahal left22:07
jchris say I want to make my master branch look just like some other branch, and I don't care about any conflicts (just want the other branch to be the master now). is there an easy way?22:08
CodeOffi_CodeOfficer22:08
cilly left22:08
RandalSchwartz git branch -d yourbranch22:09
git checkout -b yourbranch master22:09
oops... backwards22:09
you want "master" to be a clone of "otherbranch"?22:09
jchris do you mean git branch -d master ?22:09
jnareb jchris: git checkout <my master branch>22:09
jchris yeah. master got lame22:10
new branch is awesome22:10
RandalSchwartz why do you care about the letters "m a s t e r"?22:10
jnareb jchris: git reset --hard <some other branch>22:10
jchris using it to deploy22:10
RandalSchwartz just ignore it22:10
jnareb jchris: or "git branch -f -m"22:10
cilly joined22:10
jchris easier than changing the others around22:10
RandalSchwartz if "deploy" depends on "m a s t e r", then that's the part that will end up in thedailywtf.com22:10
as in, fix that first./22:10
bryanl left22:11
jchris plus the team is following master (much to my chagrin)22:11
RandalSchwartz again. broken22:11
fix that22:11
_graham_ left22:11
doener left22:11
RandalSchwartz create a practice of being able to announce "this is the good SHA"22:11
like using a tag or something22:11
branch names aren't special22:12
they're local.22:12
jchris <RandalSchwartz say I've got a bunch of weblinks to master on github that I can't change at this point. but I want master to be good22:12
jnareb jchris: or push <some other branch>:<master>22:13
Gitbot [git master]: http://tinyurl.com/68cfzf -- Merge branch 'maint'22:13
jchris are you saying that forcing it to be the other branch's content will hurt people when they pull?22:13
stouset left22:14
deavid left22:14
jchris jnareb: reset --hard <other branch> has the feel I'm going for22:14
deavid joined22:14
jchris sadly... ! [rejected] master -> master (non-fast forward)22:16
RandalSchwartz as it should be, as it would mess up your followers22:16
maybe with some sort of -f22:17
but then you'll get angry emails22:17
no matter what you do. :)22:17
you could do a "git merge -s ours" splice22:17
jchris so I basically have to merge and hand clean conflicts until I get a fast-forward?22:17
RandalSchwartz but I consder that... "crude"22:18
jnarebShadeHawk22:18
jchris I guess when you're working with distributed scm, you have to be more diplomatic22:19
rillian left22:19
jchris in this regard, svn is fascist (but simpler) :)22:19
RandalSchwartz it's much easier when you don't care about losing information. :)22:20
andres jchris: well, if youre not really caring you could do something like git diff a..b|git apply22:20
jchris I guess I don't really care about losing information22:20
andres But that screws merge tracking information...22:20
jchris this repo has seen a lot of abuse (unrelated projects in it) so the semantics I'm looking for might be best accomplished by creating a new repository and losing all history :)22:22
rm -rf .git/ and relax22:23
schacon this seems like a dumb question, but what is the difference between 'git blame' and 'git annotate'? simple usage output looks the same to me22:23
jchris thanks for the help and perspectives, y'all22:25
drizzd_ schacon: I don't really know, but git blame is supposed to be faster22:27
schacon: do you know git gui blame?22:27
schacon no, I hadn't seen that - that's pretty cool22:29
I have never really used git-gui a lot22:29
rmh3093 left22:30
lea_w left22:31
thannoy left22:31
sf_ left22:32
rmh3093 joined22:32
Weasel[DK] left22:34
flask- I'm trying to run a cherry-pick and it's failing with "error: Error building trees". What does this mean?22:37
kbingham joined22:38
BabelO left22:38
shodges joined22:41
drizzd_ flask-: that should not be all it says22:41
flask- drizzd_: first it listed the two files that had merge conflicts, each as having "needs merge"22:41
drizzd_: then that first file listed three time as "unmerged" with three different commit id's22:42
drizzd_d: then again for the second file (3 times as "unmerged"...)22:42
ShadeHawk schacon: git-annotate used to be different implementation22:42
elSid left22:42
drizzd_ but no other error message? that's strange22:42
ShadeHawk schacon: nowadays it simply git-blame with git-annotate parameters and output22:42
flask-: three different stages?22:43
leachim6_ left22:43
elSid joined22:44
johnw joined22:44
drizzd_ I can't find any code path that would give this error message without reporting a different error before, at least not in the current version22:44
up_the_ironsup_the_irons222:45
madewokherd joined22:45
juanjoc left22:46
up_the_irons2 left22:46
drizzd_ flask-: which version is it?22:46
flask- 1.522:47
1.5.5.422:47
up_the_irons joined22:48
jackdempsey joined22:49
sander_Snadder22:49
albalbertito22:50
drizzd_ hmm, what does git status say?22:50
flask- it says that those two pages are changed but not updated22:52
hmm, maybe i need to add them22:52
drizzd_ flask-: you probably can't cherry pick on a dirty tree22:52
flask- there ya go22:52
it worked22:52
ferdy left22:52
flask- i forgot to add the22:52
them*22:52
drizzd_ ok22:52
WALoeIII joined22:53
pygi joined22:53
drizzd_ the error message was a little misleading, I think22:53
lenary joined22:55
cmarcelo left22:57
morphir_ joined22:57
rdavila left22:59
ferdy joined22:59
lenary left23:01
rdavila joined23:02
Adri2000 left23:02
jtong left23:05
shodges left23:07
iggy left23:07
LiamH left23:10
loincloth left23:10
flask- drizzd_: Another question: I created a new branch 'branch_b', checked it out, and then cloned the repo. The clone repo's current branch is now listed as 'master'. Why wouldn't it be 'branch_b' ?23:10
mithro_ left23:11
ciaranm clone doesn't clone things23:11
flask- ?23:11
ciaranm clone doesn't make exact copies of everything23:12
it only copies some things23:12
clone's a rather bad name for it really23:12
ShadeHawk 'origin' or 'origin/HEAD' would be 'branch_b' in clone23:12
robinr left23:12
ShadeHawk unless you use mirror clone, 'master' on clone is its own local branch23:12
flask- hmm23:17
I did accomplish this, though, on another clone of the same repo23:17
i just have no idea how I did it23:17
ShadeHawk i.e. if cloned (original) repository has for example 'master' and 'branch_b', and 'branch_b" is current head at the time of non-mirror cloning23:18
the clone would have remote-tracking branches 'origin/master', 'origin/branch_b', and 'origin/HEAD' which would by symbolic ref pointing to 'origin/branch_b'23:19
'master' is there purely local branch...23:19
flask- i know what you're saying23:25
chrisb` joined23:25
pygi left23:26
Beket left23:26
tongueroo left23:26
chrisbGuest4956023:26
chrisb`chrisb23:27
Zarin joined23:28
tongueroo joined23:29
rdavila left23:30
morphir left23:30
morphir_ left23:30
Ademan joined23:30
Guest49560 left23:31
mithro_ joined23:34
p4tux left23:36
BarryCarlyon joined23:36
Khisanth left23:37
davidfetter left23:44
parasti left23:45
LostInTheWorld left23:45
perezd88 joined23:46
flazz left23:47
ShadeHawk left23:47
jlemieux______ joined23:48
jlemieux______jlemieux23:48
mwmw|out23:50
novas0x2a left23:51
Zarin left23:52
chrisb` joined23:54
jpwatts left23:54
chrisb left23:56
flask- left23:57
iggy joined23:58

Logs Search ←Prev date Next date→ Channels Documentation