IRCloggy #git 2010-03-30

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.

2010-03-30

Hillshum opcode: I do too00:00
opcode yeah, it's a big departure from svn, and I find that I'm constantly getting into situations where I have no clue what's going on and get worried that I'm losing work00:01
jelmer_ left00:01
qrc1 joined00:02
cbreak git does exactly what it says.00:03
it's a very simple structure00:03
with lots of tools to make that structure comfortable to use00:03
aryounce joined00:03
jelmer_ joined00:03
tedoc2000 left00:04
rudi_s opcode: And unless you run git reset --hard or git checkout * or similar, Git won't/shouldn't destroy anything.00:04
mugwump heh, with svn you didn't need to be worried - you knew that your work would be lost :-)00:05
scarabx joined00:05
mugwump got changes to commit? 'svn update' and pray00:05
rudi_s ;-)00:05
opcode is there any way to see what's gonna happen before I do a git svn dcommit?00:05
Hillshum cbreak: Once you understand it. The tools do all sorts of weird things until then00:05
mugwump oh... that update just ruined your work. bad luck.00:05
rudi_s opcode: git svn dcommit -n00:05
LoRe joined00:06
rudi_s Or maybe the -n before the dcommit, I'm not exactly sure and the man page isn't 100% clear.00:06
opcode dcommit -n gives me "diff-tree f21bfc0dbdf0b480be98fd6bae8b19e37fa05142~1 f21bfc0dbdf0b480be98fd6bae8b19e37fa05142" which isn't very descriptive00:06
jrmuizel joined00:06
jelmer_ left00:07
gsanderson joined00:07
rudi_s opcode: It tells you it will push this commit.00:07
mugwump opcode: that's a command, run it00:07
prefix with 'git '00:07
gsanderson hi, is there any way to make a branch become the master ?00:07
rudi_s mugwump: Ah, I didn't even think of that, nice. Thank you.00:07
jelmer_ joined00:07
mugwump gsanderson: sure, git branch -M master; git push -f origin +master00:08
very destructive command, but what you asked for00:08
rudi_s Just curious, would git reset --hard branchname while on master also work?00:08
mugwump rudi_s: yes00:08
andreaa left00:08
rudi_s Nice, thanks.00:08
opcode that gave me : ":040000 040000 8cb3c037029d7afb13e358f82ace7dd182e8e88e d58d400c77180cff2151f85f6d599e5e590efcb9 M app". How do I see the actual changes to the files?00:09
ah, git-diff will show me that00:09
jelmer_ left00:09
agile joined00:10
gsanderson mugwump : thanks !00:10
Arrgh` joined00:12
Arrgh` Hey, I'm a git n00b and I have a hopefully simple question... I cloned a repos from github and now I want to switch my local mirror to one of the branches on github, not create my own new branch00:13
In theory 'git checkout <remote-branch-name>' should work but no dice00:13
mugwump you need a recent git for that00:14
Arrgh` OK, well I have 1.6.3.3 (came with Ubuntu 9.10), is that sufficiently recent? And if not, how do I do the equivalent, e.g. just clone the branch and ignore the rest?00:14
mugwump also you need to make sure that you are tracking the person with that remote00:15
see eg http://github.com/guides/pull-requests00:15
you can use git checkout -b newbranch -t remotename/newbranch00:15
Arrgh` Complains that the branch already exists00:16
mugwump well, it probably does then! :)00:16
inspect the situation with gitk --all00:16
Arrgh` I don't want to create a local branch, I just want to do a build from the branch that's on github00:16
mugwump just git checkout remotename/branch then00:17
Arrgh` I just recloned and did the previous command (checkout -b .. -t) and it worked00:17
So thanks :)00:17
mithro joined00:18
gsanderson ok, now I have another problem. I renamed a branch with 'git branch -M master' (and I really did want that branch to become master), but when I that repo its stuck on an old commit00:19
*when i clone that repo00:19
mugwump you need to push it00:19
gsanderson it isn't a local repo, its my main repo00:20
hipe joined00:20
mjf left00:20
neuro_damage what's the appropriate hook file to use when wanting ot send emails of code pushes to master?00:20
or any branch?00:21
rudi_s neuro_damage: Hook file? Why not git send-email.00:21
opcode I keep getting these messages about whitespace: "warning: squelched 65 whitespace errors" and "/home/opcode/blah/.git/rebase-apply/patch:639: trailing whitespace."00:21
and when I svn rebase, my editor says the file has been changed, even though no changes have occurred. I think the whitespace is getting changed. how do I prevent this from happening?00:22
gsanderson neuro_damage : you can also use post-commit00:23
jjuran left00:23
jjuran joined00:23
m-takagi_m-takagi00:24
enherit joined00:26
justin-george left00:26
gsanderson left00:27
pheaver joined00:27
auslander left00:28
gzou2000_ joined00:29
gzou2000_gsanderson00:29
m-takagim-takagi_00:30
gsanderson sorry, internet bug. So, anyone know what my problem was ?00:30
mugwump you can use git update-ref refs/heads/master COMMITID00:32
and git symbolic-ref HEAD refs/heads/master to force master to be the default branch00:32
patmaddox left00:32
darwin_ left00:33
gsanderson still doesn't work00:35
malumalu left00:36
gsanderson although when i cat .git/refs/heads/master its got the right commitid00:37
cloning is still stuck on an old commit00:37
mugwump try inspecting with git ls-remote URL00:38
how are you cloning anyway? http?00:38
gsanderson ssh00:39
woh, ls-remote shows the refs of the original project i branched off00:40
m-takagi_m-takagi00:40
hyperair left00:40
Swimming_Bird left00:41
m-takagim-takagi_00:42
gsanderson and it doesn't any of the branches that i created00:42
Helios left00:42
brosner left00:42
m-takagi_m-takagi00:43
plovs joined00:44
selam joined00:45
selam hi all00:45
anjen left00:46
m-takagim-takagi_00:46
anjen joined00:46
Helios joined00:46
IceD^ joined00:47
hobodave left00:48
frakturfreak_ joined00:50
selam i have a question abount branches, i have two branch one off them "master" one of them "cassandra" so cassandra was created two day ago its very diffrents from master so i remove some files from cassandra and pushed to remote server i working on two day and all works commited and pushed to remote branch, than after i change branch to master, i work and commit, now here is my problem: when i changed to cassandra branch from master i see some files owned by master00:50
but i dont see this files becouse i confused, so how can i solve this problem? if i clone cassandra branch to another directory ( under /tmp/" ) i dont see these files00:50
Arrgh`Arr`Gone00:51
gsanderson what do you mean by 'owned by master' ?00:53
selam its must be in only master branch when i working on cassandra branch,00:53
frakturfreak left00:53
Kelly_zhou joined00:54
gsanderson do you mean that there are files that exist in master but not in cassandra ?00:54
selam gsanderson: yes00:54
gsanderson when you commit, git does not automatically add new files, you have to add them with 'git add /path/to/file'00:55
changes made in master do not go into cassandra00:56
davr Yeah, it sounds like you may have forgotten to add the files before committing, so they are not on any branch, they are just untracked files hanging around in your working dir00:57
selam davr no all files tracking00:57
gsanderson: i know, i just dont see it when working :) model/users.py model.user.py one off them use cassandra one off them use sql and i confuse which one i use now :)00:58
frakturfreak_frakturfreak00:58
selam s#model.user.py#model/user.py#00:58
gsanderson lol00:59
brosner joined00:59
Rawxor haha00:59
nice00:59
gsanderson mv user.py users.py; git add users00:59
git add users.py00:59
or vice-versa01:00
enherit left01:01
smuf left01:02
gsanderson you can also update a file with the changes from the other branch with 'git checkout cassandra; git checkout master /path/to/file'01:02
CaptTofu left01:02
Sonderblade left01:02
Tama02 joined01:02
gsanderson so, anyone have any idea on how to fix my ref problem ?01:03
Patrulka left01:04
selam i guess i can't tell my issue very well, i play for figure out this and i found01:04
mugwump it just sounds like you're getting confused about where the command is taking effect gsanderson01:05
Tama01 left01:05
mugwump you need to ssh to the place you want it to work and run it there01:05
or, change it locally and push it01:05
either that or for some reason the clone url isn't where you're changing01:05
anjen left01:05
selam these files not removed from cassandra branch this is reason why i see these files :)01:06
Patrulka joined01:06
Hillshum left01:08
magn3ts left01:10
gsanderson LOL, I just figured it out01:11
Yuuhi left01:11
gsanderson I had a symlink pointing to the wrong directory01:11
and the directory had an old .git01:11
thanks anyway for your help mugwump ;)01:12
flaguy48 left01:13
mugwump np gsanderson, thanks for answering questions too01:13
Swimming_Bird joined01:13
dreiss joined01:13
lresende joined01:14
gsanderson selam : you can remove files with 'git rm /path/to/file'01:14
hyperair joined01:16
qrc1 left01:17
selam yes i do now01:17
ls01:17
yeah i gues is done :)01:24
thanks a lot01:24
hobodave joined01:24
yev|away left01:24
spearce left01:25
kpreid_ left01:27
kukks left01:28
gsanderson left01:29
_VVSiz_ joined01:29
jinzhu joined01:31
VVSiz_ left01:32
frakturfreak left01:32
stepnem left01:34
jrmuizel left01:36
kpreid_ joined01:37
stepnem joined01:37
selam left01:37
o_a left01:39
jrmuizel joined01:42
Tommy[D] left01:44
jrmuizel left01:45
o_a joined01:45
Tommy[D] joined01:46
shennyg joined01:47
jrmuizel joined01:48
jtaby_ joined01:52
jtaby left01:52
gaveen left01:52
YuriQ left01:53
jtaby joined01:54
jtaby_ left01:54
novas0x2a left01:55
jrmuizel left01:56
frakturfreak joined01:56
rudi_s_ joined01:57
aresnick left01:58
magn3ts joined01:58
joeconyers left01:59
joeconyers joined02:00
jrmuizel joined02:01
rudi_s left02:01
mikelifeguard joined02:03
mikelifeguard Is there a way to create & send patches by email all in one go?02:03
johnw left02:04
bremner man git-send-email02:04
Gitbot bremner: the git-send-email manpage can be found at http://git.or.cz/man/git-send-email02:04
mikelifeguard I did read that02:05
bremner ah, so what do you need?02:06
mikelifeguard: do you know how to use git-format-patch? git-send-email can take the same parameters.02:06
aresnick joined02:07
mikelifeguard Turns out "HEAD" isn't allowed (O.o) I guess02:07
Morasique well, there are no changes between HEAD and HEAD to create patches for :)02:07
bremner did you want to make a patch from uncommitted changes?02:08
sh1mmer left02:08
plovs left02:09
mikelifeguard no, I wanted the diff between HEAD^ and HEAD :)02:10
hobodave left02:10
wereHamster mikelifeguard: HEAD is allowed, but just doesn't make sense (git format-patch HEAD means make a patch for each commit in the range HEAD..HEAD, which is an empty range)02:10
stubbornmule left02:10
tildeequals left02:10
bremner mikelifeguard: so git format-patch HEAD^ doesn't do what you want?02:11
mikelifeguard it does02:11
stubbornmule_ joined02:11
parasti left02:11
stubbornmule_seanc02:12
seancseancarmody02:12
Morasique left02:12
seancarmody left02:13
stubbornmule joined02:14
Morasique joined02:15
meatmanek_ left02:18
sh1mmer joined02:18
sh1m joined02:19
cytrinox_ joined02:20
kazoo joined02:21
hobodave joined02:21
zehrique joined02:22
magn3ts_ joined02:22
sh1mmer left02:23
sh1msh1mmer02:23
cytrinox left02:24
cytrinox_cytrinox02:24
a2ron_ joined02:24
magn3ts_ left02:24
magn3ts_ joined02:25
magn3ts left02:25
a2ron left02:26
hobodave left02:26
meatmanek joined02:27
novas0x2a joined02:29
Patrulka left02:29
PerlJam left02:29
magn3ts_ left02:30
megazig joined02:31
Patrulka joined02:31
megazig when trying to setup gitosis with public access to a repo, I try "sudo -u git git-daemon --base-path=/media/old_home/git/repositories/ --export-all" and get "sudo: git-daemon: command not found"02:32
now I am under the assumption that git-daemon comes with git by default from the standard Ubuntu apt-get repos02:32
wereHamster git daemon02:32
altogether joined02:33
mmattice how do you get git svn to push branches up to a gitosis copy?02:34
adamm left02:35
mikelifeguard left02:36
offby1 you don't --- instead, you use regular old git02:37
"git push name-of-the-gitosis-remote your-branch"02:37
note that it's not a great idea though02:37
mmattice why's that?02:37
offby1 you'll be constantly rebasing that svn branch02:37
with "git svn rebase"02:37
RobertLaptop_RobertLaptop02:37
mmattice probably not.02:38
Patrulka left02:38
megazig after changing git-daemon to git daemon and forwarding the proper port I now get "fatal: unable to allocate any listen sockets on host (null) port 9418"02:38
jklo joined02:38
megazig 9418 is set to forward to this machine though02:38
fool__ joined02:38
jklo left02:38
fool__ left02:38
fool__ joined02:38
offby1 mmattice: huh. _I_ always do ...02:39
jklo joined02:39
Patrulka joined02:39
wereHamster megazig: is there already a daemon listening?02:40
mmattice there's no development on that branch. it's a clone of a public project so we can hack stuff on top of it.02:40
megazig wereHamster: it would appear so...02:41
root 5673 0.0 0.0 108 4 ? Ss 21:14 0:00 runsv git-daemon02:41
wereHamster well, there you go02:41
fool_ left02:42
megazig nto the same port though. couldn't I have 2 daemons running on separate listening ports?02:42
wereHamster sure you can, but why would you do that?02:43
optim0 left02:44
drunknbass_work joined02:44
fcoury_ left02:44
megazig wereHamster: because I'm a confused newb with several thousand lines of code that I'd like to share and am confused about getting public access setup. I have private access going well02:45
also, because I can't find the daemon to stop in /etc/init.d/02:46
patmaddox joined02:49
a2ron_ left02:49
aryounce left02:49
eletuchy left02:50
anzenketh joined02:50
marj joined02:57
mmattice how do you specify the rev you want in a submodule?02:57
madewokherd left02:57
frogonwheels mmattice: you go to the submodule directory, checkout the rev you want ..02:58
mmattice: then you go back to the main project and git add submoduledir (without a trailing /)02:58
mmattice: and commit it.02:58
mmattice submodule status in the / doesn't list that rev02:58
drunknbass_work left03:00
kazoo left03:01
mmattice submodule summary does though apparently03:01
pheaver left03:03
gigo left03:05
sh1mmer left03:07
scavalcante Hello.. I'm trying to use git to deploy a website using post-receive I'm running git checkout -f03:09
I config the worktree, but I'm receiving /usr/bin/git-checkout cannot be used without a working tree.03:09
wereHamster did you follow a guide?03:09
scavalcante yes03:10
http://toroid.org/ams/git-website-howto03:10
Arrowmaster most guides on using git to update a website are horrible03:10
carrus85 left03:11
scavalcante yes.. I know!03:11
agile left03:11
Arrowmaster are you getting that error from the hook?03:12
hyperair left03:13
scavalcante from the terminal git checkout03:14
Arrowmaster yeah thats why its erroring03:14
scavalcante how can I debug the hooks?03:14
Arrowmaster read where it talks about GIT_DIR in that guide03:14
felipe left03:16
50UAAG9U7ilteris__03:16
dsop left03:16
khelll left03:16
dsop joined03:16
jmcantrell left03:18
Ilari megazig: One useful thing would be full git-daemon command line. I don't think that process is correct (its just supervisory process to it...)03:19
scavalcante Arrowmaster: I'm using http to connect, should I try ssh?03:23
alester left03:28
patmaddox left03:35
Ilari megazig: There are for instance some parameter combinations that allow git daemon to start but it will not work.03:37
hyperair joined03:38
WALoeIII joined03:42
Theravadan left03:42
pheaver joined03:42
mmattice if I commit, then rebase -i to move that commit, should it move off the HEAD?03:43
opcode left03:44
hipe left03:46
offby1 stares blankly03:46
offby1 what does "move" mean in this context?03:46
stepnem left03:46
alester joined03:52
shennyg left03:53
davr you're ALWAYS on the HEAD. HEAD is just a pointer to your currently checked out commit.03:54
meatmanek left03:55
tetha left03:57
tetha joined03:59
Twisted_Mentat left03:59
anzenketh left04:01
aresnick left04:02
jony joined04:04
traviscline does anyone know what the right steps toward preventing pushes that would create new commits with zero parent commits?04:07
bob2 doesn't that fail without -f anyway?04:08
traviscline yes04:08
wereHamster pre-receive hook, check if <old> is 0000..04:08
traviscline wereHamster: cool, that will be true if it's a multi-commit push?04:09
wereHamster hm, that would detect new branches, not commits with no parents.04:09
traviscline hrm04:10
harinath left04:11
meatmanek joined04:12
aryounce joined04:13
scavalcante left04:16
meatmanek left04:18
altogether left04:18
pheaver left04:21
fool_ joined04:21
fool_ left04:21
fool_ joined04:21
hyperair left04:22
pheaver joined04:22
altogether joined04:24
fool__ left04:24
zehrique left04:25
harinath joined04:26
pheaver left04:26
pheaver joined04:27
shennyg joined04:30
harinath left04:30
joeconyers left04:30
AAA_awright left04:33
edwefwf joined04:36
AAA_awright joined04:37
hyperair joined04:37
scarabx left04:37
alezandro left04:39
drunknbass_work joined04:40
hipe joined04:41
edwefwf left04:42
jtaby left04:42
sitaram bob2: pushing a new root commit does not need -f04:44
harinath joined04:45
meatmanek joined04:45
meatmanek left04:45
wereHamster morning sitaram :)04:46
sitaram morning wereHamster!04:47
munichlinux joined04:47
zjason joined04:47
traviscline sitaram: thanks for gitolite, moved to it recently, hot.04:47
MetaCosm joined04:47
sitaram traviscline: you're welcome! and thanks for the compliment04:48
traviscline sort of wish I could separate rewinding from deletion04:48
but no biggie04:48
sitaram traviscline: you know, I think there's no actual way to prevent what you asked. Even with gitolite :)04:48
oh wait rewind from deletion? hmmm04:48
bob2 sitaram: ah, didn't know that, thanks04:48
sitaram I thought you were asking about "prevent new root commit"04:48
Cap_J_L_Picard left04:48
traviscline sitaram: I think with a custom post-receive you could check that the new commits are ancestors of previous ones04:48
sitaram: i was earlier, just a new comment04:49
dealing with a large team with client-facing refs -- not everyone is a git pro04:49
sitaram traviscline: ok, two separate topics then04:49
megazig wereHamster: thanks for the help earlier. I didn't get it working, but I appreciate the knowledge04:49
traviscline but we're just going to have the more experienced devs deal with branch deletions04:49
yes04:49
psankar joined04:49
traviscline sitaram: i've got to run but if you have thoughts on either i'm all ears, thanks again. back later.04:50
sitaram no problem; is your session on and can you check backlog later or should we talk only afte ryou come back?04:50
after you*04:50
Cap_J_L_Picard joined04:50
RobertMeta left04:51
sitaram traviscline: prevent new root commits: what you get is an oldsha and a new sha. If the old is all 0-s it *may* be a new root commit, which can only be known, really, by doing a merge-base with all currently existing heads. Doable, I guess, so I was wrong to say it can't be done04:52
Mage does gitosis do private repos yet04:52
or am i retarded04:52
sitaram .oO(distinguishing deletes from rewinds... hmm... interesting. Can be done. Question is, how to do it with minimum new code and *no* disruption to existing syntax/semantics!)04:53
Mage ok i am thinking about something else04:53
sitaram Mage: you're thinking about github perhaps. Gitosis is just software you install yourself, not a service04:53
Mage sitaram: not github. there's another one that's /like/ github. i thought it was called gitosis for a second there :p04:54
trying to get a good deal for a private repo ;p04:54
sitaram Mage: gitorius, indefero, girocco, are what come to mind.04:56
not sure about private repos on any of them04:56
megazig sitaram: any preference among them ?04:56
roop joined04:56
sitaram github is the only one I have used. I have an indefero account I use as a backup but don't really *use* as in use their website, login, etc -- just the ssh push04:57
hyperair left04:57
Mage sitaram: danke04:57
sitaram github does have private repos, for a fee. That is their business model. And I know people sometimes rant about it but I like github a lot. I only wish their issues system would simply tie into email like say bugs.debian.org does, so you don't have to login every time someone posts an issue on your project :)04:57
traviscline sitaram: Backlog. And mobile client :) I thought the base git config let you separate deletions from nonff pushes04:57
jony1 joined04:58
sitaram traviscline: man git-config and look for receive.denyDeletes04:58
Gitbot traviscline: the git-config manpage can be found at http://git.or.cz/man/git-config04:58
traviscline Some dude said earlier that the old 0s may just be a new ref, not an unconnected history line.04:58
hyperair joined04:59
jinzhu left04:59
jinzhu joined04:59
sitaram traviscline: if you wanted to prevent all branch deletes but allow rewinds, you could give RW+ perms and then set that config on that repo04:59
traviscline sitaram: I know, talking about a gitolite context though04:59
I want the reverse04:59
Disallow force pushes but allow deletes04:59
sitaram traviscline: yes; wereHamster did. And he was right. The old/new only refer to "old or new value of this symbolic ref" so 0x40 need not refer to a root commit04:59
aah you want the reverse05:00
jony left05:00
traviscline ( I realize a delete and a repush is eqiuv. )05:00
AAA_awright left05:00
sitaram well yes that is the reason I clubbed the two as conceptually the same level of danger from innocent newbies :)05:00
AAA_awright joined05:01
sitaram let me think about this over today... I dont jump that quickly these days :) Gitolite is already "gitoheavy" from all the features I added in the last few months :(05:01
jonmasters left05:01
sitaram I may end up saying no first, but some folks here will say that don't mean nothing ;-) and I'll come up with code after a while!05:02
sde_antrix1 joined05:02
traviscline I can alway patch it myself (though im a python dude)05:02
Anyhow. Thanks for being responsive and thanks again for gitoheavy ;)05:03
alezandro joined05:03
yevlempy joined05:03
jtaby joined05:05
yevlempyyev|away05:06
sitaram traviscline: would you mind telling me *why* you want to allow deleting a branch but not rewind? I'm trying to understand the use case better, that's all...05:06
fool__ joined05:07
fool__ left05:07
fool__ joined05:07
TheMoonMaster left05:08
sitaram the only branches that get deleted often enough that you want to allow any developer to delete, are "personal" branches, for which case even rewind should not really matter... (just thinking aloud)05:08
better_call_saul i converted an old cvs repo to git. i cloned it, and when i do a git branch -a i see lots of branches remotes/origin/foo , how doi get a local version of foo?05:09
fool_ left05:10
yev|away left05:12
o_a left05:13
pano_ joined05:13
tasslehoff joined05:13
offby1 idly wonders if better_call_saul enjoys a TV series known as "Breaking Bad"05:15
offby1 git checkout --track remotes/origin/foo, I think05:15
jonmasters joined05:15
mugwump offby1: in newer gits you can use 'git checkout foo'05:16
offby1 mugwump: I knew there was some simpler way05:16
Swimming_Bird left05:17
pano_ left05:18
brettgoulder joined05:18
azol joined05:19
brettgoulder I have a weird error when I try to submodule init and update http://gist.github.com/34878505:19
it crashes with "fatal: reference is not a tree" then a sha hash05:20
what should i do05:20
offby1 wow05:20
never seen that :-|05:20
frogonwheels brettgoulder: I've seen that.05:20
shennyg left05:21
frogonwheels brettgoulder: make sure the submodule has been pushed to with the correct version05:21
brettgoulder it's weird05:21
frogonwheels brettgoulder: ie. whoever updated the submodule reference in the main project needs to make sure they pushed the corresponding changes to the (submodule) repository05:21
brettgoulder frogonwheels: what do you mean? like a correct version of git?05:22
frogonwheels brettgoulder: .. the main projects refereces a SHA1 in the submodule corresponding to a commit, yeah?05:22
brettgoulder ya05:22
Mage left05:22
frogonwheels brettgoulder: well that SHA1 hasn't been pushed to the submodules repository.. (hopefully it hasn't been deleted)05:23
brettgoulder and if it has been deleted?05:23
frogonwheels shrugs.05:24
jrmuizel left05:24
brettgoulder can i remove a submodule and readd it?05:24
frogonwheels brettgoulder: you can check-out an exisiting reference in the submodule directory..05:24
brettgoulder: then git add submodule and git commit ....05:25
(being careful not to do git add submodule/ - which is bad)05:25
brettgoulder: more details on what happened would aid in diagnosis..05:26
jtaby left05:26
PointMan joined05:26
frogonwheels brettgoulder: who has control of the submodule repository? who committed that submodule reference?05:26
altogether left05:26
rseifert joined05:27
frogonwheels brettgoulder: could the person who committed the submodule reference to the main repository have forgotten to push the changes in the submodule ?05:27
better_call_saul offby1: yes, my nick is in Mr. Goodman's honor05:28
i thought i tried both those optoins, i'll try again05:28
frogonwheels I'm not sure I'm getting the message across.. *shrug*05:29
meanburrito920 left05:29
Bass10 left05:29
altogether joined05:30
better_call_saul ok it worked with the --track option. it's a pretty new install, what version does just git checkout foo work in?05:30
yn joined05:31
alezandro left05:32
crankharder left05:33
rseifert left05:33
Heimidal left05:34
Heimidal joined05:34
r11t_ left05:35
steveire left05:36
steveire joined05:37
steveire left05:37
steveire joined05:37
WALoeIII left05:38
stepnem joined05:38
ankit9 joined05:42
khmarbaise joined05:44
epic_ joined05:46
khmarbaise left05:47
aryounce left05:47
iaj left05:48
epic_ left05:49
alezandro joined05:51
novas0x2a left05:52
rburton- left05:54
nataraj joined05:54
novas0x2a joined05:54
phishy left05:59
rudi_s joined05:59
rudi_s_ left05:59
pheaver left06:02
novas0x2a left06:02
maxthoursie joined06:03
pheaver joined06:04
sjain joined06:04
rocketeerbkw left06:04
yevlempy joined06:04
phishy joined06:05
drizzd joined06:07
azol left06:09
jklo left06:09
Weiss joined06:09
_iron joined06:09
rocketeerbkw joined06:09
drunknbass_work left06:15
fool_ joined06:16
fool_ left06:16
fool_ joined06:16
fool__ left06:17
brettgoulder frogonwheels: i think the person who committed did something screwy by deleting the submodule, then cloned the repo in the directory where we keep our submodules06:17
frogonwheels: but i managed to fix it up06:17
brettgoulder left06:18
jony1 left06:20
xiong joined06:22
skoop joined06:24
Pupeno left06:25
drizzd left06:26
drizzd joined06:27
yn left06:27
alester left06:28
deanc left06:28
eletuchy joined06:29
munichlinux left06:32
tvw joined06:32
thiago_home joined06:32
ph^ joined06:33
epic_ joined06:33
Paraselene_ joined06:34
nataraj left06:34
jony joined06:34
Scotto_ left06:35
hyperair left06:35
jony left06:36
jony joined06:36
sh1mmer joined06:36
tbf joined06:37
steffkes joined06:37
iaj joined06:39
mtkd joined06:39
marc_kdab left06:39
bentob0x joined06:42
ciaranm left06:45
ciaranm joined06:45
Ingmar left06:45
Ingmar joined06:45
AkumaStreak left06:49
WALoeIII joined06:49
dj_tjerk joined06:51
tomekw joined06:53
Twisted_Mentat joined06:54
WALoeIII left06:54
[Po]lentino joined06:57
hedgehog83 joined06:58
d0ugal joined06:58
webchick left06:59
poseid joined07:01
Pupeno joined07:02
sde_antrix1 left07:03
brettgoulder joined07:03
novas0x2a joined07:03
engla left07:04
xiong left07:04
Tommy[D] left07:05
priidu_ joined07:05
kar8nga joined07:05
svbg joined07:07
Tommy[D] joined07:07
alezandro left07:07
poseid left07:07
nevyn left07:08
alezandro joined07:08
petrux joined07:08
nevyn joined07:09
svbg left07:09
thiago_home left07:10
merlin83 left07:13
hedgehog83 left07:16
felipe joined07:17
patmaddox joined07:18
altogether left07:18
chittoor joined07:18
eighty4 joined07:19
gebi joined07:19
bentob0x left07:21
eighty4 I've been googling for this but not really sure what to search for. Is there any nice solution that would let me auto clone all existing git repos on a specific server and then keep them up to date, on a second computer. I.e. keeping a backup of all git repos.07:21
anjen joined07:22
sitaram rsync may be all you need then...07:22
dacuca left07:23
giallu joined07:23
bentob0x joined07:24
Theravadan joined07:25
munichlinux joined07:25
cedric_ joined07:28
eighty4 sitaram: yeah, I thought about that but not really what I want07:29
preferably something git based, like having one git repo that keeps track of what repos exist and then runs git clone/git pull07:29
marc_kdab joined07:31
cedricv left07:31
frogonwheels eighty4: you could have a git repo with a list of repos to be copied...07:32
eighty4: and a cron job that pulls that repo, and then clones/fetches from that list.07:33
eighty4 frogonwheels: yeah, and then just use a cronjob that... exactly07:33
frogonwheels: but how would the list be keept updated on the "server" side?07:33
frogonwheels eighty4: you just push changes up to it.07:34
eighty4 but then I'd have to keep that in mind everytime I create a new repo :)07:34
roop left07:34
roop joined07:34
eighty4 seemed like seomthing someone might have done already, thats why I'm asking. (to save me from writing it all) :P07:35
frogonwheels eighty4: See if you can add hooks to your server-side stuff (what are you using on the server?)07:35
doener left07:36
frogonwheels a custom list could be cool 'cause you could be pulling from different servers.07:36
dreiss left07:37
gebi eighty4: if you want to mirror gitweb there is '?a=project_index'07:37
gives you a list of all repos in the gitweb site07:37
cedric_ left07:37
ludde joined07:38
eighty4 frogonwheels: I can definitely add hooks, the "server" is just a central point where me and some other guys will push/pull to to keep it all simple. It's just an Ubuntu install07:38
doener joined07:38
ludde can i somehow run git filter-branch and keep all branch heads in sync (i.e. update the branch heads to the proper value)?07:38
andoma joined07:38
nevyn^ joined07:39
eighty4 gebi: I not really following you here. Could you explain?07:39
tvw left07:39
eighty4 gebi: where would I run that?07:39
mastro joined07:40
voxpelli joined07:41
frogonwheels eighty4: yeah- but presumably you'll use gitosis / gitolite or something else to provide that part of it.07:41
gebi eighty4: http://git.kernel.org/?a=project_index07:41
eighty4 gebi: yeah, but wouldn't that require me installing gitweb as well?07:42
gebi sure07:42
eighty4 is very much a n00b when it comes to git07:42
gebi you really want some webthing to look at the repos too07:42
though problematic with private repos07:43
frogonwheels eighty4: git by itself doesn't behave like a 'server' and do security &c. you need something else to do that.07:43
eletuchy left07:44
voxpelli left07:45
eletuchy joined07:45
eighty4 frogonwheels: yeah, that part I know. But not sure I need gitosis/gitolite at the moment. Just a couple of users that all have acccess to git using ssh07:45
steffkes- joined07:45
whitman joined07:47
nick3 joined07:47
nick3 left07:48
gebi left07:48
hyperair joined07:48
steffkes left07:48
eighty4 but i'd like it if the users didn't need to clone and remember to pull07:50
steffkes- left07:50
frogonwheels eighty4: remember that pull is a fetch+merge.07:51
eighty4: the merge will be the gotcha - don't want that to be done auto-magically07:51
yevlempy left07:54
dj_tjerk left07:55
brrt joined07:56
flity_flity07:57
brrt ping mugwump07:57
nicoulaj joined08:01
mtkd left08:05
shruggar joined08:06
sde_antrix1 joined08:09
ixti joined08:09
mtkd joined08:10
Textmode joined08:11
maxthoursie when I change the url in .gitmodules, and run git submodule sync, .git/config isn't updated08:12
am I missing something?08:12
brrt left08:12
Textmode morning all08:13
lucsky joined08:14
ArdRigh joined08:17
eighty4 frogonwheels: thanks for the input. I'll play with it a bit and see what I come up with08:19
frogonwheels eighty4: np. gl.08:19
poseid joined08:20
hyperair left08:20
cedricv joined08:20
steffkes joined08:26
byang joined08:27
byang hi08:27
Ilari hi08:28
everzet joined08:29
Patrulka left08:29
hedgehog83 joined08:29
hyperair joined08:30
Ilari maxthoursie: There's URL in .git/config as well.08:30
cilly joined08:31
Twisted_Mentat left08:31
Patrulka joined08:32
Ilari maxthoursie: And IIRC, that URL is the one that's actually used.08:32
maxthoursie Ilari: yes, it is, but I thought git submodule sync was suppoesed to update it08:32
Ilari maxthoursie: AFAIK, it isn't.08:34
maxthoursie sync08:34
Synchronizes submodules' remote URL configuration setting to the value specified in .gitmodules. This is useful when submodule URLs change upstream and you need to update your local repositories08:34
accordingly.08:34
Ilari: Am I making the wrong interpretation of the man page, or does it not work as intended?08:35
Ilari maxthoursie: remove "URL configuration setting"... The way I read it, it is different setting...08:36
ankit9 left08:36
novas0x2a left08:36
ambulijelari08:36
jelariambuli08:36
hedgehog831 joined08:36
novas0x2a joined08:37
maxthoursie Ilari: hm, perhaps, dunno which setting that should refer to though08:38
Ilari maxthoursie: There's remote URL in submodule itself and there is submodule URL on parent project config.08:38
maxthoursie: Plus URL in parent .gitmodules08:38
hedgehog83 left08:39
maxthoursie Ilari: ah, sorry, now I see08:39
Ilari: the url in submodule/.git/config was indeed updated08:39
but whats the url in <parent>/.git/config used for then?08:40
sjain left08:40
Ilari maxthoursie: At least for cloning the submodule...08:40
maxthoursie Ilari: ofcourse, but once cloned08:41
voxpelli joined08:41
project2501a joined08:43
doener maxthoursie: "update" seems to lookup submodule.<name>.url to check whether the submodule has been initialized08:44
voxpelli left08:44
maxthoursie doener: so it needs to be updated to then?08:45
so when I change the url of a submodule I have to update .gitmodules, then I have to tell my coworkers to remove the submodule section in their config, rerun git submodule init and then run git submodule sync.08:46
Or is there a way to simplify that?08:46
doener maxthoursie: the value isn't actually used there. It's checked checked to be non-empty08:47
matthieu left08:48
whitman left08:48
byang left08:49
ArdRigh left08:49
maxthoursie doener: ah, ok. So if my coworkers already have the submodule with the old url, a git submodule sync should suffice, and they can ignore the old value in theire .git/config ?08:49
doener I guess so08:50
doener only skimmed the git-submodule source08:50
byang joined08:50
byang Generally, blame -M is actullay detect same code but not code movement.08:51
froschi joined08:51
maxthoursie doener, Ilari: Thanks for your help08:52
infogulch left08:53
simey00irc joined08:54
simey00irc left08:55
simey00irc joined08:56
simey00irc left08:57
bentob0x what's the best way to keep tracks of notes and things to watch depending on the various patches and progressions of a project?08:58
shruggar a bug tracker?08:59
bentob0x something easy to use along Git08:59
I mean that doesn't require me to learn another software to start working on describing the things to do08:59
Rawxor a text editor09:00
shruggar there is no agreed-on standard or even set of conventions. Bug tracking is an unsolved problem, not just in git, but in general. There are several projects which are designed with git in mind, but last I looked they were not anywhere near usable09:00
Rawxor Bugzilla is easy enough to get going09:00
bentob0x unless there is an easy way to sync up a bug tracker and git09:00
bremner I don't know it well, but there is ticgit09:01
bentob0x can you sync up bugzilla and git easily?09:01
shruggar what do you mean by "sync up"?09:01
what interface are you hoping for?09:01
bentob0x every time a new patch is entered in git, bugzilla would 'read' it and know there is a new patch and then updates itself09:02
interface is irrelevant, console will do just fine09:02
shruggar I think there's some post-commit hooks in contrib that will do that. At least, I assume there are, since they're so easy to write. Alternatively, you could write one09:03
bentob0x just a link between patch #12345678ABCDEF and a note like: "make sure all CSS declaration #divTest is removed everywhere => run a grep"09:03
for instance09:03
bremner err, use decent commit messages?09:03
charon bentob0x: maybe look at git-notes09:03
but yeah, that should go into the commit message09:03
bentob0x git-notes it is, thx charon :D09:04
byang left09:04
munichlinux left09:04
bentob0x yes the commit messages are already good to undersand what is in the patch09:04
ankit9 joined09:04
byang joined09:04
bluenovember joined09:04
bentob0x but sometimes, you want to add notes for the few 'tricky' patches09:04
shruggar add notes like what?09:05
I just don't understand why they would need to be outside of the commit message09:05
bentob0x like: "when merging this patch, make sure all client-specific templates are all set with the new div naming convention" for instance09:06
shruggar and, as was mentioned, if you really need them to be, git-notes does that09:06
bentob0x yes, that's what I understood, going to read and most likely use it :)09:06
doobry joined09:07
bentob0x thx shruggar, bremner, charon09:07
pheaver left09:08
Heimidal left09:10
level09 joined09:11
level09 any 1 got a mac here :D09:12
GarethAdams|Work joined09:12
sitaram eighty4: you still around?09:12
pheaver joined09:14
curtana joined09:15
wolog joined09:15
munichlinux joined09:15
Azeroth-IsWorkin joined09:15
dytrivedi joined09:16
_VVSiz_ left09:18
maattd left09:19
Azeroth-Working left09:19
pom I merge as branch into master by mistake. Can I remove theat merge-commit?09:19
Patrulka left09:19
marj left09:20
avtobiff pom, just git checkout HEAD^ or git reset --hard HEAD^09:20
just rollback as any other commit09:20
pom Oh, I have only used revoke for that before. Nice new trick. Thanks.09:21
novas0x2a left09:22
IceD^ left09:22
Patrulka joined09:22
jas4711 joined09:23
novas0x2a joined09:23
dmgr joined09:24
zjason` joined09:27
wolog left09:28
zjason left09:31
wolog joined09:31
psoo joined09:31
trivol joined09:32
darwin_ joined09:32
kar8nga left09:34
unreal left09:35
frogonwheels left09:38
psoo left09:38
unreal joined09:38
struberg joined09:38
hyperair left09:39
level09 left09:39
marj joined09:39
anno^da joined09:40
groove joined09:40
anno^da left09:40
Adaptee joined09:40
anno^da joined09:41
groove hi, i'm trying to run a git->svn conversion (don't ask) and during the "git rebase" step i get an error "fatal: unable to write file foo mode 120000"09:42
charon avtobiff, pom: careful there, 'git checkout HEAD^' does *not* remove the merge from the branch, it merely moves you to a detached HEAD (look it up in the FAQ if you don't know the term!) that doesn't have the merge yet.09:42
galderz joined09:42
groove i've googled it but what i've read doesn't make sense to me09:42
dmgr left09:42
frogonwheels joined09:42
eighty4 sitaram: yeah09:44
sitaram eighty4: seems like all you need is (1) a script to trawl a directory tree on the server looking for bare repos (2) and for each of them run a "git clone --mirror" the first time and a "git fetch" (or perhaps a "git fetch --prune") on an ongoing basis09:45
eighty4: anyway, just wanted to say the git specific part of what you want is likely to be those 2 commands; the rest has to be done outside git I'm afraid09:46
shame joined09:46
dmgr joined09:48
amanda9 joined09:48
amanda9 http://www.mdhjakten.se/dela/?id=dti2d6s09:48
hard stuff09:48
trivol left09:50
d0k joined09:54
hyperair joined09:56
psoo joined09:58
trivol joined09:58
Adaptee left09:59
amanda9 left09:59
Patrulka left09:59
fool__ joined09:59
fool__ left09:59
fool__ joined09:59
Patrulka joined10:01
brettgoulder left10:02
zjason`` joined10:02
fool_ left10:02
aziz joined10:02
hyperair left10:05
sven^ left10:05
zjason` left10:05
[Po]lentino[Po]lentino|away10:07
avtobiff charon, thanks10:09
patmaddox left10:12
cuco joined10:13
cuco hi all, i have this git project i started on a windows machine10:13
hedgehog831 left10:13
cuco how can i clone it to linux? i can't use git clost ssh/http(s)... none of them are available on the windows machine10:14
Azeroth-Working joined10:14
curtana cuco, you could share the directory containing the repoistory via windows file sharing, then mount it on your linux system, and clone from the filesystem10:16
cuco curtana: how lame is it to just copy the directory to a usb-disk and then... ?10:17
curtana that would also be fine10:17
cuco really? no harm will be done?10:17
curtana probably not. worth a go anyway ;)10:17
if you intend to do much development on both systems then you are best off creating a shared, bare repository and cloning from it on both machines10:17
ludde left10:17
Azeroth-IsWorkin left10:18
bremner cuco: I seem to recall some problems on non-case sensitive file systems. But Windows users could tell you more about that.10:19
Kelly_zhou left10:19
cuco bremner: when copying from linux to windows, i am doing the other way. I am comint into the light, not running away from it.10:19
poseid left10:20
curtana cuco, if you are really concerned, make a .tar of the directory and copy _that_ do the usb disk10:20
or format a partition on the disk as ext2 and install ext2fsd so you can write to it from windows10:20
or if there's an ssh server on the linux system you can add a remote repository and push to it10:20
darwin_ left10:21
tatsuya joined10:22
mithro_ joined10:22
cuco so basically, pull and push do the same but in reverse?10:22
curtana hm10:23
not quite. but almost.10:23
pull = fetch followed by merge. push is like the opposite of fetch... maybe.10:23
that's probably a bad explanation10:23
mithro left10:25
parasti joined10:25
ntoll joined10:26
eighty4 sitaram: thanks for the input :)10:26
sitaram you're welcome!10:27
bremner cuco: fetch and push are closer to opposite10:30
neen joined10:31
eighty4 one more question do you actually have to stand in the git repo to be able to do a git fetch? I cant find anything about specifying a path to the git repo you want to work on10:31
project2501a left10:32
neen hi guys, i know git doesn't support keyword expansion. i'm looking for some kind of 3rd party (preferrably commandline) script that allows me to do it10:33
i dont need a pre-commit hook or anything like that10:33
ntoll left10:34
munichlinux left10:34
struberg left10:34
mattions joined10:34
Yuuhi joined10:35
mtkd left10:35
neen left10:35
neen joined10:35
tobiassjosten joined10:36
mattions anyone using the python binding for git?10:36
bremner which one?10:37
mithro__ joined10:39
khelll joined10:39
xiong joined10:41
mithro_ left10:42
naeu joined10:43
mtkd joined10:43
mtkd left10:43
o_a joined10:44
sitaram eighty4: your PWD should be the destination git repo of course; the source one can be specified by URL (any of the URLs syntaxes you see in man git-clone)10:44
Gitbot eighty4: the git-clone manpage can be found at http://git.or.cz/man/git-clone10:44
doener mumbles something about --git-dir and GIT_DIR10:45
xiong left10:45
xiong joined10:45
eighty4 sitaram: I.e. no git fetch --repo /path/to/repo ? Or am I really stupid here10:48
mithro__mithro10:48
ericlee left10:48
wereHamster eighty4: what doener said...10:48
cuco left10:48
ericlee joined10:48
doener see git(1)... but in practice, I'd most likely go with "cd /path/to/repo; git fetch" instead...10:49
mattions bremner, http://gitorious.org/git-python10:50
there are other around?10:50
eighty4 doener: right.10:50
R_Rios joined10:50
o_a left10:50
bremner mattions: there is also dulwich, which I guess is more a reimplimentation than bindings. I have to confess I don't know much more than that they exist.10:51
mithro left10:52
sitaram eighty4: git fetch URL_TO_REPO master:master # but this doesn't take "--all" argument10:52
mattions bremner, any hint how to choose between the two?10:53
jinzhu left10:53
mastro left10:54
bremner mattions: well, I guess if the bindings do what you want, they are less likely cause corruption since the underlying code is widely used. OTOH, some google project is using dulwich, so it could be worth at least checking out.10:55
Theravadan left10:56
ntoll joined10:56
bourbon joined10:58
malumalu joined10:59
mattions bremner, thanks11:00
neen left11:01
disappearedng__ left11:03
jds left11:03
disappearedng left11:03
parasti left11:04
ehabkost joined11:04
parasti joined11:05
bx2 joined11:05
chittoor left11:08
parasti left11:08
hedgehog83 joined11:08
parasti joined11:08
JEEB left11:09
disappearedng joined11:09
jas4711 left11:10
psoo left11:10
mastro joined11:11
jas4711 joined11:13
xiong left11:13
pheaver left11:13
bdiego joined11:13
teukka left11:13
teukka joined11:13
JEEB joined11:13
xiong joined11:13
dytrivedi left11:14
dajero joined11:14
JEEB left11:16
teukka left11:17
xiong test?11:17
xiong left11:17
teukka joined11:17
disappearedng__ joined11:17
mithro joined11:17
eighty4 sitaram: you suggested I should use "git clone --mirror" if a repo doesn't exist. That does a "--bare" and that would result in people not being able to use the checked out files, right?11:18
sitaram eighty4: all server repos should be bare so what you're mirroring *from* should also be bare... repos with working directories are always considered personal11:19
priidu_ left11:19
sitaram unless I misunderstood your original request11:19
hedgehog83 left11:19
sitaram eighty4: "clone all existing git repos on a specific server" <-- to me that means bare repos already :)11:20
eighty4 sitaram: yeah, the servers repos are bare. But I'd like those I clone to be accessible for the users11:20
PointMan left11:20
sitaram eighty4: accessible via clone or fetch, sure...11:20
eighty4 i.e. the user getting the "git clone" repos should be able to browse the files.11:20
But from what I understand doing git clone --mirror will create a bare checkout?11:21
dytrivedi joined11:21
apa_ joined11:21
mtkd joined11:22
mugwump left11:23
apa_ hi, if i have repo A, and B, and from A, i push changes to B, does it cause different SHA1 in B, compared i pull changes in B from A ?11:23
mugwump joined11:23
nelmwyn joined11:24
flaguy48 joined11:25
munichlinux joined11:25
chittoor joined11:25
PureVirtual joined11:27
kpreid_ left11:27
ph^ left11:27
shruggar apa_, when you push, no11:28
apa_, when you pull, technically no11:28
kar8nga joined11:28
smuf joined11:29
doener the commits that got fetched by the fetch part of pull will be the same as in the remote repo11:29
apa_ shruggar: i see.. now what i see is different SHA's in different repositories, and still same comments and codes. :( :( :(11:29
Patrulka left11:29
doener if the pull merges, you might get an extra merge commit.11:29
hyperair joined11:29
shruggar apa_, when you pull, you may wind up with HEAD on a different commit because a merge may have happened, what he said.11:29
doener if the pull rebases, your local history gets recreated, so you get new commits for that part11:29
sounds like one repo saw a bad rebase11:30
apa_ i write what has happened:11:30
pano_ joined11:31
Patrulka joined11:31
level09 joined11:31
viniciusluiz joined11:31
riz2 left11:32
apa_ I took checkout from svn with git svn from machine A with machine B, then i clone this checkout to memory stick C, clone this stick content to to machine D, where i did changes, push/pull (cant remember) back to stick, where it changes has push/pull to machine B, where i committed those to SVN to machine A.11:32
doener the dcommit creates new commits11:32
apa_ When the stuff has moved from stick C to machine B, the SHA has changes11:32
ph^ joined11:32
doener and those new commits will of course have different sha1s11:33
apa_ the sha1 change was happened before dcommit11:34
sjain joined11:36
rlotun joined11:40
malumalu left11:40
MetaCosm left11:41
kar8nga left11:41
jas4711 left11:42
psankar left11:43
JEEB joined11:45
epic_ left11:45
TadasEta joined11:48
TadasEta Hi11:48
How do I checkout previous revision of my project (example)?11:49
apa_ TadasEta: maby you mean git reset --hard SHA111:50
dmgr left11:50
MetaCosm joined11:51
segher that _throws away_ everything newer11:51
TadasEta apa_: I have GUI program which can CHECKOUT to previous revision. Know I am searching how to do that in CLI11:52
segher you want git checkout xxxxx11:52
git checkout HEAD^11:52
caret means "first parent of"11:52
TadasEta segher: What if I want to checkout some specific revision (not previous). How do I identify it?11:52
segher git checkout sha-of-that-thing11:53
there are lots of ways to name commits11:53
steveire left11:54
apa_ hmm.. what i have used git reset --hard, it doesnt throw away nothing.. i can always go back "newer" with reset..11:54
segher http://www.kernel.org/pub/software/scm/git/docs/git-rev-parse.html has a big list of ways to name commits11:56
apa_: if it hasn't been gc'ed yet, sure11:56
steveire joined11:56
steveire left11:56
steveire joined11:56
apa_ TadasEta: You can find the commits by "git log" or "git reflog" etc.11:56
TadasEta Thanks11:56
segher but it changes the head of your current branch, which is not a good idea to do in general11:56
TadasEta One more question. What is quick way to discard any local changes made?11:57
[J]stringo0 left11:57
stringo0 left11:57
stubbornmule left11:57
apa_ reset11:57
it depend11:58
pano_ left11:58
apa_ if you like to keep the changes what you have made, then checkout, but if you absolute sure you like to discard them, reset.11:58
segher git checkout some-file will do it, if you haven't staged it yet11:58
"git status" will tell you what to do, always11:59
Patrulka left11:59
apa_ the git-rebase manual uses word <upstream>, what does it means?12:01
Patrulka joined12:01
mapreduce I find that git status shows a file is modified, but there's no output from git diff, git checkout thatfile doesn't help, and git config core.autocrlf true, false or input, don't help.12:03
Any suggestions?12:03
jonyjony|away12:05
dianat joined12:05
cemerick joined12:06
segher git diff --cached ?12:06
mapreduce I fixed it by setting core.autocrlf to false and then doing a git checkout .12:07
and a git reset --head thatfile12:07
s/--head/HEAD/12:07
cemerick I'd like to apply a set of patches to multiple refs -- essentially, 'rebase other-ref', without moving the ref I'm on currently. Hints?12:07
PointMan joined12:07
mosno joined12:09
engla joined12:10
TadasEta apa_: I want to discard local changes12:10
engla left12:10
engla joined12:10
TadasEta git reset seems to leave them...12:10
dmgr joined12:10
apa_ TadasEta: there is also git-clean12:11
segher bad plan12:12
read what "git status" tells you. do that.12:12
charon apa_, TadasEta: to throw away all uncommitted state since the last commit, 'git reset --hard'. i hate to say it but all other advice about checkout, reset etc is wrong. (it _is_ possible with checkout, but you need 'git checkout HEAD -- .')12:13
apa_: <upstream> is notionally the branch that your current branch was based on when you created it. ("notionally" because that doesn't have to be the case, depending on the effect you want to achieve)12:14
apa_ segher: Lets think that you have just tried something fancy with your project, without any ideas to save you changes, how git status will clean your code back to last clean state??? What i can see, the only way to clean is git-clean or git soft reset12:14
charon apa_: read the section headers that 'git status' shows.12:14
viniciusluiz left12:15
segher git status does not clean your code. it tells you the status of your files. it tells you how to undo stuff as well12:15
viniciusluiz joined12:15
charon apa_: and please, do not tell others dangerous advice as long as you are not absolutely sure about it. it's very easy to lose data/work with git-reset and git-clean.12:15
segher git-clean should only work if you pass the --yes-i-really-mean-it option three times12:16
hyperair left12:16
segher way too dangerous12:16
charon well, it already requires it once12:16
segher still :-)12:17
apa_ What is the part in git-status header which tell me how to discard changes?12:17
oddmunds joined12:17
segher # Changed but not updated:12:18
# (use "git add <file>..." to update what will be committed)12:18
# (use "git checkout -- <file>..." to discard changes in working directory)12:18
apa_ i see12:18
TadasEta segher: How to define that "<file>" to include all project root?12:18
segher # Changes to be committed:12:18
# (use "git reset HEAD <file>..." to unstage)12:18
apa_ Then maby i have little old version from git becuse it doesnt show that..12:18
sorry12:19
TadasEta seems like git checkout -- . is what I needed12:19
x)12:19
BP{k} left12:19
flaguy48 left12:21
maiOo left12:21
Pev_away_ left12:22
maiOo joined12:22
Pev_away joined12:22
lack apa_: What version do you have? 'git --version'12:23
apa_ git version 1.6.0.412:24
BP{k} joined12:25
pheaver joined12:25
charon how unlucky, 1.6.1 has the improved status... consider upgrading to 1.7.x while you're at it12:26
cemerick left12:26
dianat left12:26
mosno left12:26
apa_ Well.. personally i have get used to work with git reset and clean, so there is no big need for better status..12:26
megazig left12:27
apa_ But yes, i should need newer git, newer linux version, and newer laptop. =)12:27
flaguy48 joined12:27
crankharder joined12:28
malumalu joined12:31
dforsten joined12:34
roop left12:35
joeytwiddle joined12:35
viniciusluiz left12:36
priidu_ joined12:36
viniciusluiz joined12:36
fcoury joined12:43
fcoury left12:43
fcoury joined12:43
fcoury left12:44
fcoury joined12:44
fcoury left12:44
fcoury joined12:44
fcoury left12:45
apa_ left12:45
fcoury joined12:45
fcoury left12:45
Bass10 joined12:45
fcoury joined12:46
fcoury left12:46
fcoury joined12:46
level09 left12:47
kukks joined12:47
auslander joined12:48
auslander left12:48
auslander joined12:48
hyperair joined12:48
sjain left12:49
merlin83 joined12:52
merlin83 left12:52
merlin83 joined12:52
adamholt joined12:52
tasslehoff left12:52
sjain joined12:54
R_Rios left12:54
camonz joined12:55
gebi joined12:56
munichlinux left12:57
o_a joined12:57
fcouryfcoury|away12:58
nelmwyn left12:58
byang left13:01
altogether joined13:02
gebi left13:02
gebi joined13:03
YingFan joined13:05
YingFan How can I be ahead of a branch I never work on, and only do an occasional pullupdate on? Does that mean they did some kind of rollback or rebase?13:06
Aides YingFan: pastebin the output of git status13:07
wolog left13:07
Aides you can see the commits that you have and the remote doesn't with something like: git log origin/master..13:07
(assuming origin/master is the remote branch you need)13:08
HG` joined13:09
lucid_ left13:09
kpreid_ joined13:10
mm_work joined13:12
byang joined13:12
YingFan Aides just says on branch master..., Your branch is ahead of 'origin/master' by 4 commits. , nothing to commit..clean13:12
mm_work left13:12
YingFan checking the log you suggested...13:12
hugoxrosa joined13:13
gebi left13:13
Axius joined13:13
wolog joined13:14
YingFan hmm, how to sort that log on date?13:14
date-order..., reading the manual, how terrible ;-)13:15
infogulch joined13:15
sagsousuke joined13:16
meanburrito920 joined13:16
meanburrito920 left13:16
meanburrito920 joined13:16
YingFan git diff HEAD..origin/master13:17
Mezner joined13:17
froschi left13:17
groove left13:18
gebi joined13:18
alezandro left13:19
ph^ left13:20
byang charon: I have updated my application according your feedback and I will public my work in this summer in github,13:21
dytrivedi left13:21
ph^ joined13:21
byang charon: If there is no other issues, I will submit my application. :)13:21
YingFan left13:21
sjain left13:21
YingFan joined13:21
charon byang: traditionally people have used repo.or.cz for git "forks"/topics, but it's not like this really matters13:22
PerlJam joined13:22
charon other than that, go for it :-)13:22
byang charon: I have make a mirror from github to make a repo.or.cz , too. :)13:22
I found most of git hackers like repo.or.cz :-)13:23
gebi left13:24
imajes left13:24
iaj left13:24
UncleCJ joined13:24
byang Michael has also talked with me about that. :)13:24
UncleCJ Hi all. Probably super-simple thing, but git log -1 always shows the most recent commit, even if I use --reverse, wtf?13:25
charon UncleCJ: that's just how -<n> and --reverse are defined to interact. it first limits the number of commits, then reverses the list13:26
megazig joined13:26
UncleCJ charon: See, I said it was silly of me. Of course it works like that. So how do I reverse and then limit?13:26
imajes joined13:27
charon UncleCJ: no really good way, unless you restrict yourself to one-line output, as in the case of 'git rev-list HEAD | tail -1'13:27
doener git rev-list HEAD | tail -n 10 | git log --no-walk --stdin13:28
UncleCJ doener: Wow13:28
chaoflow_chaoflow13:28
doener IIRC the --stdin for log needs a somewhat recent git13:28
charon bows to doener's --stdin-fu13:28
UncleCJ doener: Yeah13:29
doener OTOH, th13:29
Patrulka left13:29
UncleCJ charon: Yeah, I guess I can do oneline instead. Just run it twice instead13:29
doener is should also do: git log --no-walk $(git rev-list ... | tail ...)13:29
doener is fully used to his new keyboard yet...13:29
gebi joined13:30
doener s/is/isn't/13:30
see? ;-)13:30
UncleCJ doener: Stop it, you're making me hot :-)13:30
byang charon: any interest to have a look at http://article.gmane.org/gmane.comp.version-control.git/143179 , I really think the -M option does more than it should...13:31
UncleCJ charon: I'm essentially doing something to create changelogs and it would be nice to work with --since, --before and whatever to just give one resulting commit in all cases...13:31
Tass` how to get changed loc for a commit?13:31
Patrulka joined13:31
_rane git show13:32
charon byang: i gave it a brief look but haven't replied so far because i couldn't explain it any further than what you already write in the email13:32
shruggar Tass`, please rephrase13:32
byang charon: Ah, I am wondering if some patch to make -M do what exactly it should do make sense ?13:33
charon byang: don't think so, unless you can significantly cut down the slowdown incurred by -M13:33
byang: the options aren't so much about progressively shifting blame "elsewhere", than about spending progressively more time trying to find a "better explanation"13:34
PerlJam left13:34
charon i think of it as -M enabling an O(file size) algorithm, -C an O(#files), -CC an O(#files^2) and -CCC an O(#files^2 * #commits), even though i haven't actually checked that these are the correct bounds13:35
Swimming_Bird joined13:36
mmattice offby1: still around?13:36
jony|away left13:36
byang I think -C O($modified files) :-)13:36
sjain joined13:36
Axius left13:36
charon er, yeah, that sounds more sensible.13:36
gebi left13:36
Tass` shruggar, need the number of changed loc of a commit13:36
charon byang: if you can at least find a good estimate for the running time, actually documenting those might be a good idea though13:36
shruggar Tass`, perhaps "git log -1 --stat thecommit" ?13:37
byang charon: yeah, so, documenting these means to write them to user manual ?13:37
charon byang: yes13:37
shruggar Tass`, I am assuming when you say "loc" you mean "lines of code"13:38
Tass` shruggar, yes, I do.13:38
byang charon: And maybe update the explanation of '-M' is also necessary. :)13:38
charon byang: if it benefits the user :)13:39
though i can actually see it become simpler13:39
byang ok, thanks charon13:39
YingFan left13:40
dmgr left13:40
gebi joined13:42
spearce joined13:43
roop joined13:45
codeswing left13:46
mtkd left13:46
gebi left13:47
gebi joined13:47
dmgr joined13:47
Sonderblade joined13:49
mw left13:49
dmgr left13:53
perlpilot joined13:53
cedricv left13:54
Patrulka left13:54
Patrulka joined13:55
CyuLat joined13:55
alexmchale joined13:56
CyuLat left13:57
PureVirtual left13:57
nicklodd joined13:57
sylr left13:57
mtkd joined13:58
codeswing joined13:59
charon byang: btw, finding evil merges is easy, running 'git log --grep=evil' immediately turns up e2d2e3813:59
Gitbot [git e2d2e38]: http://tinyurl.com/ylah8nn -- Merge branch 'jc/maint-1.6.4-grep-lookahead' into jc/maint-grep-lookahead13:59
tomekw left14:01
dajero left14:01
_rane e14:01
PointMan left14:02
bx2 left14:03
Caius left14:03
Belna left14:04
jtaby joined14:04
dmgr joined14:05
Caius joined14:05
sde_antrix1 left14:06
alezandro joined14:06
jschoolcraft joined14:06
jschoolcraft Is there a decent story for git on windows beyond: it sucks? Have a client that needs to update some HTML on a project I have in git. They're on Windows and of the MS VS persuasion. So was hoping something like tortoisegit existed and worked alright.14:07
mapreduce Git Bash seems great.14:08
shruggar tortoisegit exists and works alright14:08
doesn't it?14:08
jschoolcraft shruggar: it exists, not sure about the works alright part14:08
mapreduce Oh, you mean people who like mice.. dunno.14:08
jschoolcraft rather like to just give them one, simple option and be done.14:09
mapreduce It's not particular to HTML, but IntelliJ IDEA's git support seems pretty good.14:09
I've prepared installation and git clone instructions before for a less-techie person and they didn't struggle.14:09
steffkes jschoolcraft, tortoiseGit is fine for them14:10
jschoolcraft mapreduce: not sure I can get them to install IntelliJ in addition to all their Visual Studio stuff.14:10
steffkes: thanks, will start there.14:10
shruggar tortoisegit seems to work well enough for basic use. I've been trying to work out how to tell people to use it in a actually useful manner and have yet to14:11
andrewthorp joined14:11
sven^ joined14:11
andrewthorp Hey guys14:11
Is anyone using git with ruby on rails?14:12
thiago gitorious is14:12
jschoolcraft andrewthorp: loads of people14:12
andrewthorp I guess a better way to ask my question is this:14:12
I backup some of my database in fixtures, and one of them in particular became a yaml file that is about 10.5 MB -- I know this is way too large14:13
So in my branch I have this file committed, and I need to rebase it on master14:13
git rebase master from this branch takes FOREVER though (for obvious reasons)14:13
how can I speed it up?14:13
wereHamster git --version ?14:14
andrewthorp 1.6.614:14
wereHamster I seem to remember a bug/issue with rebase which caused it to be very slow, but I don't remember if/when it was fixed14:15
shruggar rebase used to not fast-forward when it could have, that's been fixed within the past couple of months14:15
jschoolcraft left14:16
engla that's probably fixed already in 1.6.614:16
pheaver left14:16
murr4y left14:17
byang charon: I think they are mostly evil merge, and I admit they should also be considered by line level browser14:17
yevlempy joined14:17
shame left14:17
codeswing left14:17
andrewthorp so14:22
any ideas14:22
how I can speed that up14:22
git will sit there and process rebase for 30 minutes if i let it14:22
but its only slow when I have these 10MB files14:22
that basically every line is changed in14:22
ph^ left14:22
ph^ joined14:23
charon andrewthorp: haven't really thought about it but try 'git rebase -m ...'14:24
shruggar perhaps there is a way of telling git that they are binary files and shouldn't be merged?14:24
charon shruggar, andrewthorp: there's already been a thread on the list that basically concluded libxdiff lacks the "fast mode" of gnu diff, which makes diff performance abysmal on such files. so the culprit is format-patch, which is used in ordinary rebases14:25
i'm not sure if merge has the same issues, but it's worth a try14:25
skoop left14:26
rduplain joined14:27
joeconyers joined14:29
joeconyers left14:29
ph^ left14:29
t0rc joined14:29
aryounce joined14:30
Daenyth joined14:32
nanoo joined14:32
andrewthorp gr14:32
git rebase -m is taking forever too14:33
Daenyth Hi, I'm trying to set up a pre-commit hook and I'm wondering what commands I can use to do it. Basically I/we use git to manage our package repository build scripts, and I'd like to make the pre-commit script check to make sure all required source files are checked in, or will be14:33
andrewthorp /frustrating14:33
Daenyth How can I look at the names of files in the index, and in the current tree (as git sees it)14:33
endpoint_david joined14:33
simplechat joined14:33
anno^da_ joined14:33
simplechat left14:33
simplechat joined14:33
sagsousuke left14:34
Daenyth I'd like to check the commit for any/all files named PKGBUILD, then extract the sources from there, then check that all sources are either in the index to be committed or are already existant in the repo14:34
endpoint_david is it possible to do a `git rebase` purely in the index, i.e. leave the workdir alone?14:34
codeswing joined14:34
Daenyth Aha, does git ls-files --stage show me the list of files in the index to be committed?14:36
wolog left14:36
Daenyth There we go...14:36
endpoint_david (trying to push some changes, but non-ff upstream, and don't want to merge, but it's a live site, so don't want changes to occur purely from the local commit shuffling)14:36
anno^da left14:37
charon andrewthorp: any change if you set proper .gitattributes that make the files binary, as shruggar suggested? you may have to set them in .git/info/attributes to avoid the change being reversed when jumping around in history14:37
ilteris left14:37
ilteris__ilteris14:37
charon (of course that won't merge any more)14:37
murr4y joined14:37
loincloth joined14:37
andrewthorp hm14:37
im not following14:38
would the file essentially be ignored?14:38
that is - any changes to them from here on14:38
charon it would generate binary diffs14:38
ankit9 left14:38
charon which are (IIRC) "remove these contents, add these other contents"14:38
andrewthorp oh14:38
ok hm sec14:38
charon so you lose the ability to merge over changes, but diff generation should be essentially instant14:38
that's my second educated guess though, if that fails too i'll have to start testing ;)14:39
yevlempy left14:39
ilteris___ joined14:39
disturb joined14:39
andrewthorp ok so just so i follow14:39
I should be editing .git/info/attributes in my feature branch14:39
charon that's an untracked file, so it doesn't live in any branch/commit14:40
andrewthorp Ah14:40
charon does the same thing that .gitattributes does, but is not versioned14:40
andrewthorp hm14:40
so that would be in my root directory14:41
not project14:41
right?14:41
charon huh?14:41
mmattice why does git rebase have trouble applying empty commits?14:41
charon well, it's at the root of your repository, where the .git lives14:41
andrewthorp that file doesn't exist in my repo14:41
charon that's ok, but .git/info should already be there14:41
andrewthorp ya it is14:41
so vim attributes14:41
?14:41
\yrlnry Suppose I created a git repo but forgot to make it bare. What do I need to do to it to make it a bare repo? Is it enough to mv repo-dir JUNK; mv JUNK/.git repo-dir; rm -rf JUNK ?14:41
charon andrewthorp: yes14:41
marj left14:41
andrewthorp and then how do i tell it .yaml is binary14:42
?14:42
*.yaml14:42
wereHamster \yrlnry: no, you also have to set core.bare to true14:42
andrewthorp *.yml14:42
lol14:42
tmz_tmz14:42
charon andrewthorp: *.yml binary (cf man gitattributes)14:42
Gitbot andrewthorp: the gitattributes manpage can be found at http://git.or.cz/man/gitattributes14:42
wereHamster \yrlnry: and disable reflog (bare repos have reflog disabled)14:42
\yrlnry wereHamster: Awesome, thanks. Where was that documented?14:42
andrewthorp binary14:42
wohops14:42
wereHamster \yrlnry: in my brain14:43
\yrlnry Anywhere else?14:43
t0rc left14:43
wereHamster maybe in the faq14:43
\yrlnry Did it arise spontaneously and originally in your brain, or did it perhaps migrate there from elsewhere?14:43
wereHamster from experience14:43
endpoint_david left14:44
andrewthorp ok, I added attributes in info and it only contains 1 line14:44
*.yml binary14:44
do I need to tell git to use this file, or am i good to go?14:44
\yrlnry wereHamster: thanks again14:44
mtkd left14:44
wolog joined14:44
mmattice what'll happen if I rebase --continue over a commit (that's empty anyway)?14:45
charon andrewthorp: git will use that automatically14:46
andrewthorp k14:46
\yrlnry wereHamster: It is indeed in the FAQ. https://git.wiki.kernel.org/index.php/GitFaq#How_do_I_make_existing_non-bare_repository_bare.3F14:46
agile joined14:46
groove joined14:46
Ryback_ joined14:47
groove can anybody point me in the direction of solving the error "fatal: unable to write file foo mode 120000" from a git rebase14:47
noodl_noodl14:47
tango_ disk full or wrong permissions?14:47
andrewthorp still very slow14:47
hm14:47
wow14:48
git rebase -m14:48
was very fast14:48
groove tango_: i'm fairly certain the disk is not filling, the repo is only about 1GB and i have 20GB free14:48
tango_: what kind of permissions problems would cause this?14:49
hebz0rl joined14:49
eighty4 left14:49
tango_ no idea14:49
ToreadorVampire joined14:50
groove should the file rather be 120777 ?14:51
irc2samus joined14:51
mmattice why does a rebase fail on empty commits if a --continue is all it takes to keep going?14:51
bdimcheff joined14:51
ToreadorVampire Hey all - does anyone know of/can anyone recommend a nice tool for building changelogs?14:51
DavidKlein joined14:51
wereHamster ToreadorVampire: git log14:51
andrewthorp charon: thanks for all of your help14:52
patmaddox joined14:52
andrewthorp charon: you've been great14:52
jtaby left14:52
mmattice should that be considered a bug?14:52
project2501a joined14:53
byang Ah, the gsoc application editor is really not user friendly...14:53
ToreadorVampire wereHamster: Oh, yes, I see what you mean, but that's not quite what I meant, I probably confused the issue by misusing the word "changelog"14:53
charon andrewthorp: glad to hear it worked. you can put the attributes in a .gitattributes in the relevant directory (or just at the repo root) to make them tracked. (i wanted it to be untracked so as to avoid any surprise when rebase checks out older revisions)14:53
andrewthorp ya14:53
ToreadorVampire I mean - a tool that would help me write good commit messages?14:53
What has happened is that over the past day I have done a stack of work (90% of which has been focussed on a single feature, which is quite big and required a couple of db refactorings and other things) ... this means I have changed rather a lot of my project :s14:54
flaguy48 left14:55
merlin83 left14:55
zjason``` joined14:55
kpreid_ left14:55
ToreadorVampire It trivially easy to bang in a two-line commit message along the lines of "Massive refactoring and feature addition, see #374 on the tracker, addition of 'get my own status' method"14:55
But I really want to be able to put more meaningful comments against the files that I changed (and ended up refactoring along the way) - I guess what I want is a file-by-file display, with ability to see a diff (reminding me what i changed) and then a slot to type in a change/commit entry for that file14:57
zjason`` left14:57
jsquared left14:57
wereHamster commit messages are per-commit, not per-file. But you are free to make more granular commits.14:57
byang left14:58
alezandro left14:58
mmattice awww, hell, is doing a rebase --continue over empty commits dropping them?14:58
ToreadorVampire wereHamster: Yeah, I suppose what I'm saying is "I left it too long between commits" and my commit message (summary of what I changed in this commit) is pretty massive, and I'd like something to remind me of everything I did over the past 24h ;)14:59
jsquared joined15:00
shruggar mmattice, unless you tell it to keep them, yes15:00
ankit9 joined15:00
wereHamster ToreadorVampire: you can split the commit up into smaller pieces15:00
lanthan__ joined15:01
byang joined15:01
_iron left15:02
richcollins joined15:02
_iron joined15:02
mmattice shruggar: how would one go about that?15:03
everzet left15:03
shruggar mmattice, I may have been mistaken, I really thought there were such an option, but skimming through the manpage I did not see such a thing15:03
byang left15:03
dajero joined15:03
nicklodd left15:04
UncleCJ left15:04
Danielpk joined15:04
Danielpk how i remove a branch?15:04
mmattice scaring the crap out of me :)15:04
wereHamster Danielpk: man git-branch15:04
Gitbot Danielpk: the git-branch manpage can be found at http://git.or.cz/man/git-branch15:04
lanthan_ left15:04
webchick joined15:04
mtkd joined15:04
kkoehne left15:05
Danielpk wereHamster, thx =)15:06
giallu left15:07
gebi left15:07
andrewthorp left15:07
codeswing left15:08
adamm joined15:08
gaveen joined15:09
dmgr left15:09
kpreid_ joined15:10
meanburrito920 left15:10
richcollins left15:10
drunknbass_work joined15:11
cedricv joined15:12
gebi joined15:13
alezandro joined15:14
munichlinux joined15:15
ankit9 left15:15
Pupeno left15:16
Pupeno joined15:16
dytrivedi joined15:17
icefox joined15:17
simNIX joined15:19
florianb joined15:19
florianb hi there, i have a question. i pushed a wrong commit to a remote master instead to a topic.15:20
nakkor joined15:20
icefox florianb: you can force push the correct branch to the remote master15:21
TheMoonMaster joined15:21
florianb i reverted the commit local with git-reset --hard HEAD^^ (while the 1st ^ was a merge-commit)15:21
codeswing joined15:21
voodootikigod_ joined15:22
florianb when i'm trying to push the corrected master branch again, i get the xy-commits behind message. if i would try to megre now, i would get a new (unwanted) merge-commit don't i?15:23
mahound` left15:23
robinbowes left15:23
fcoury|away left15:24
florianb the question i have is, how do i revert these two commits in the remote with (as best) no further commits?15:24
fcoury joined15:25
florianb icefox: you mean i should just "git-push -force origin master"?15:25
voodootikigod_ is there a good way to reduce the size of .git/objects/pack ?15:25
\yrlnry florianb: You can push -f; that will reset the remote branch to point to the same commit as the local branch.15:25
kipras joined15:26
icefox florianb: yah, if you want to overwrite what is on the remote side you use -f15:26
jspiros left15:26
jspiros joined15:26
shruggar voodootikigod_, the "good" ways, git does automatically, afaik15:26
voodootikigod_ mine is up to 199mb15:27
seems a bit big15:27
florianb okay - and what is about the 'Your branch is behind 'origin/master' by 154 commits'-message. Wouldn't i kill 154 commits from other devs?15:27
icefox yup15:28
anno^da_ left15:28
florianb so couldn't i just fetch first, doing no merge and then push?15:29
icefox a better alternative would be to revert the commit and push that15:29
shruggar voodootikigod_, matter of opinion I guess. That doesn't sound big to me at all15:31
voodootikigod_ cool15:31
thanks15:31
florianb can i undo the reset?15:32
sh1mmer left15:33
shruggar voodootikigod_, git wastes a lot of space with history as part of its fundamental design. It's just a "historical accuracy is more important than the penny it costs to get another gig of space" issue. I'd prefer it weren't there, but it is15:33
dmgr joined15:33
groove left15:33
tedoc2000 joined15:34
engla git doesn't waste space. it's amazing how much it can fit in that little space(!)15:34
karihre_ florianb: git pull origin master ?15:34
yn joined15:35
florianb thanks..15:35
icefox Anyone familiar with git-am that could take a look at a patch for some feedback on it before I submit it to the ml? http://git.meyerhome.net/icefox/git/commit/fe4a20e38f39f7020c9b1a599824bdbb3097a26415:37
robinbowes joined15:38
krawek joined15:38
mtkd left15:39
ankit9 joined15:40
drunknbass_work left15:40
psankar joined15:40
orospakr left15:40
charon icefox: i think the patch itself is ok, though you could probably do away with the awk and just use sed to grab the sha. but do we really want to show that sha unconditionally? when applying other people's mails, the sha will be meaningless and in many cases absent15:41
orospakr joined15:41
Daenyth left15:42
icefox charon: I mostly am using it when I rebase, outputing Applying [subject] isn't very helpful when there is a conflict. Being able to see the original sha and look at what it was trying to do is often helpful to me to resolving the issue15:42
charon: any way to know if I am in the middle of a rebase?15:42
charon icefox: $dotest/rebasing will exist, there's plenty of checks for this already :)15:43
icefox cool, i'll change that then, thanks for checking it out15:43
patmaddox left15:47
ToreadorVampire left15:48
lobolife joined15:48
alezandro left15:49
lobolife I'm working off the same git repository with a couple friends. It seems two of us can push and pull fine, but on one computer the recent commit's won't pull. It says up to date even when we know there are changes on the remote. Any ideas of why one wouldn't recognize changes on the remote?15:50
megazig left15:50
icefox lobolife:what is the error that is outputed with it 'wont' pull'15:50
nanoo left15:51
lobolife no error. That's the really odd thing. It just says "up to date"15:51
but it's not15:51
EricInBNE left15:51
Patrulka left15:52
t0rc joined15:53
icefox so in git log there is no merge?15:53
wolog left15:53
bremner umm. so what is the current state of ticgit? is it dead? There seems to be a few forks on github. Is there a sucessor project?15:54
wolog joined15:55
shruggar I think ticgit is dead15:55
hebz0rl left15:55
a2ron joined15:56
fcouryfcoury|away15:56
robinbowes left15:57
chittoor left15:58
dmgr left15:58
dmgr joined15:59
bremner hmm. ditz might be worth a look.15:59
Pupeno left15:59
khelll left15:59
sylr joined15:59
fujin left15:59
jrmuizel joined16:00
LiamH joined16:01
robinbowes joined16:02
hobodave joined16:03
lobolife left16:04
Blaine left16:04
lhz joined16:04
pano_ joined16:05
erikvold joined16:06
trochala joined16:06
munichlinux left16:07
yatiohi left16:07
wolog left16:08
steffkes left16:08
Blaine joined16:08
harinath left16:09
nevyn^ left16:09
dj_tjerk joined16:09
wolog joined16:10
Crell joined16:10
bentob0x left16:11
gebi left16:11
agib joined16:12
hyperair left16:13
tobier joined16:13
kpreid_ left16:14
alley_cat joined16:14
sh1mmer joined16:15
ntoll left16:15
jrmuizel left16:17
khelll joined16:17
Crell left16:18
wald0 left16:18
\yrlnry bremner: I was talking to Chacon about ticgit not long ago. Just a minute while I recover the discussion.16:19
jklo joined16:19
bremner thanks!16:19
nakkor left16:20
\yrlnry bremner: http://gist.github.com/34925316:21
It's not much, but at least it's more than you had before.16:22
oal joined16:22
\yrlnry (Schacon is the original author of ticgit.)16:22
oal When I do "git status" all my files are red, and it says "Changed but not updated" above them. Why do I have to "git add" them every time I commit?16:23
harinath joined16:23
bremner \yrlnry: thanks again.16:23
\yrlnry oal: You don't. You can git commit -a and it will automatically commit everything it knows about.16:24
oal What about files that are marked with "delete:" under "Changed but not updated" will they be committed?16:24
\yrlnry oal: But more generally, having a separate "add" step allows you to commit some, but not all files, or some , but not all changes in a file.16:24
petrux left16:25
shennyg joined16:26
Yuuhi left16:26
patmaddox joined16:26
eletuchy left16:26
\yrlnry oal: if you git commit -a, the removal of the file will be committed.16:26
Or if you "git add" the deleted file, then commit, the removal of the file will be committed.16:26
Otherwise, not.16:26
oal \yrlnry: Thanks. When I do git push I always get an error that I did not specify refspecs to push or something16:27
\yrlnry Show your complete git push command and the complete error message.16:27
oal I just to git push16:27
\yrlnry You didn't say where to push to.16:27
Mayb eyou want "git push origin"?16:27
oal \yrlnry: http://dpaste.com/177762/16:27
enherit joined16:27
\yrlnry Maybe you want "git push origin master"?16:28
oal I have checkouted this project from my server, and I'm pushing it back to the server16:28
priidu_ left16:28
oal cloned*16:28
perlpilot oal: you can always follow the instructions given in the warning you know16:28
oal I tried to do a git push matching, but It didn't push anything, I think16:29
perlpilot oal: git config push.default matching # will get rid of the warning because you will have configured the setting16:29
oal Ok, thanks16:30
:)16:30
ph^ joined16:30
perlpilot oal: any time you see git warn about some configuration setting, you'll want to use "git config" to rectify things16:30
nakkor joined16:31
oal Thanks16:31
florianb left16:31
doobry left16:32
\yrlnry "How can I make git behave more like SCCS?"16:33
doobry joined16:33
d0ugal left16:33
dytrivedi left16:34
\yrlnry Also I was thinking about writing a program that takes a repository and rewrites all the commits so that the merge history is as convoluted and as bizarre as possible, but so that the resulting tree is the same. Does something like that exist already?16:35
naeu left16:35
simplechat left16:35
webchickwebchick|fooood16:35
codeswing left16:37
merlin83 joined16:38
merlin83 left16:38
merlin83 joined16:38
shruggar left16:39
tstclair left16:39
Fissure is there a way to force git to output text diffs for files it thinks are binary?16:40
adamholtadamholt_away16:41
Fissure er, i'm blind16:42
nvm16:42
must have skipped that option in the manpage16:42
domcat joined16:42
project2501a left16:43
marc_kdab left16:44
dreiss joined16:44
sh1mmer left16:46
akahn joined16:47
perlpilotPerlJam16:48
sdboyer left16:49
trivol left16:50
akahn How come I can't change branches if I have local changes? Why can't those changes just stay in that branch?16:51
ToxicFrog You can't change branches if you have local changes if those changes would be overwritten by the branch switch.16:51
Mezner left16:51
ToxicFrog Specifically, the problem is this:16:52
doener a branch head references a commit, so naturally, uncommitted changes can't be part of a branch. They exist solely in you working tree/index16:52
ToxicFrog You are on branch A. It has file foo.16:52
Branch B has a different version of foo.16:52
You modify, but do not commit your changes to, foo, then try to checkout B.16:52
johnw joined16:52
bradhaydon joined16:52
galderz left16:52
ToxicFrog If you do that, it has to overwrite foo with B's version, destroying your changes - and since you didn't commit them, they can never be recovered.16:52
To get around this, either reset those changes (if you don't want them), stash them (if you want to move them to a different branch), or commit them (if you want them on the current branch).16:53
wolog_ joined16:53
wolog left16:53
lresende left16:54
froschi joined16:54
magn3ts joined16:54
HG` left16:54
zenwryly left16:55
sh1mmer joined16:56
mindworx joined16:57
akahn thanks, that explains it16:58
eletuchy joined16:58
akahn there's no snapshot of those changes unless i stash or commit16:58
Theravadan joined16:58
akahn so they won't be there when i get back16:58
mindworx I have a repo on my server that i use to do all work for my clients.. I have a particular client that would like the dev environment set up on their local box.. I pulled from the repo to set up the rails site.. should i create a branch that they can work off of to make changes?16:58
so that way they are not pushing to master16:58
roop left16:59
static^ joined16:59
richcollins joined17:00
RobertLaptop left17:01
rgr left17:01
mindworx ?17:01
kipras left17:02
sitaram dont let them push to you at all; tell them to allow *you* to pull from them17:03
because if you allow them to push to your server saying "oh by the way please dont push to master", then sure as hell someone will, sooner or later :)17:04
timj joined17:04
eletuchy_ joined17:05
aresnick joined17:05
sjain left17:07
eletuchy left17:07
sjain joined17:07
aresnick left17:07
pantsman joined17:08
magn3ts left17:08
rkenned joined17:09
meanburrito920 joined17:09
meanburrito920 left17:09
meanburrito920 joined17:09
dole joined17:10
dole is anyone open to help a newbie in using git on a windows machine?17:11
jrmuizel joined17:11
nicoulaj left17:12
priidu_ joined17:12
meanburrito920 left17:13
fivetwentysix left17:13
RobertLaptop joined17:14
ToxicFrog dole: go ahead17:15
bx2 joined17:15
ToxicFrog More generally, you're more likely to get help by asking than by asking whether you can ask.17:15
maxter joined17:16
aresnick joined17:17
hyperair joined17:17
bremner \yrlnry: I made a summary of ticgit and similar things at http://www.cs.unb.ca/~bremner/blog/posts/git-issue-trackers/17:18
dionoea left17:19
dionoea joined17:19
Pupeno joined17:21
Chillance joined17:21
chittoor joined17:21
rgr joined17:22
wolog_ left17:23
\yrlnry bremner: Many thanks!17:24
curtana left17:25
codeswing joined17:25
codeswing left17:25
codeswing joined17:25
AAABeef joined17:25
AAABeef left17:25
bluenovember left17:26
rkenned left17:27
AAABeef joined17:28
bx2 left17:29
yn left17:29
kpreid_ joined17:30
marc_kdab joined17:31
rocketeerbkw left17:33
adamholt_awayadamholt17:33
thiago_home joined17:34
domcat left17:35
doobry left17:36
stamina left17:37
richcollins left17:39
t0rc left17:41
tatsuya left17:41
mssm joined17:41
nanoo joined17:42
mindworx left17:43
mindworx joined17:43
dgnorton joined17:43
phishy left17:44
t0rc joined17:44
dgnorton is there a way to list the files that have changed from in a range of commits? sort of like ... git log --stat --name-only HEAD~3..HEAD except only list the file name once even if it change in more than one commit?17:45
wereHamster dgnorton: git diff --name-only HEAD~3..HEAD17:45
dgnorton wereHamster: thanks!17:46
rlotun left17:46
nakkor left17:47
lresende joined17:47
lresende left17:48
tstclair joined17:48
chrisb joined17:48
o_a left17:50
hobodave left17:50
fool_ joined17:51
fool_ left17:51
fool_ joined17:51
novas0x2a left17:51
bdiego left17:52
fool__ left17:55
khelll left17:58
ph^ left17:59
engla left18:00
webchick|foooodwebchick18:01
chrisb left18:03
jklo_ joined18:03
crankharder I'm trying to permanently convert a svn repo to git -- git svn clone -s ... works (and git br -av) shows that it correctly pulled in all the branches/tags -- What do I do at this point?18:04
domcat joined18:04
crankharder some places suggest using clone --bare, but that seems to wipe out my branches/tags18:04
hyperair left18:04
jklo left18:05
jklo_jklo18:05
Swimming_Bird left18:07
icefox crankharder: start hacking?18:07
novas0x2a joined18:09
jaalto github gurus: I wan to collaborate with UPSTREAM "A". So I forked the project to "B". I have cloned both A and B to loca disk, and done at local disk "B" repository: "git remote add ../A upstream". What is the best way to stay in touch with the latest upstream chnages?18:09
HG` joined18:09
wereHamster fetch the changes, merge the changes18:09
jaalto Can i rebase somehow to the remotes/upstream/master?18:10
wereHamster git rebase remotes/upstream/master ?18:10
jaalto That branch need not to be "git checkout --track" first?18:11
wereHamster no18:12
jaalto Ok18:12
gk__ left18:14
gk joined18:14
gk left18:16
t0rc left18:20
Axius joined18:21
DrNick left18:24
brizly joined18:24
Arr`GoneArrgh`18:25
Arrgh` left18:26
spawnyd joined18:29
dole left18:29
webus joined18:29
domcat left18:31
meanburrito920 joined18:32
meanburrito920 left18:32
meanburrito920 joined18:32
bourbon left18:33
sylr Hi18:33
mcdebugger left18:34
sylr is it possible to revert only parts of commits18:34
?18:34
wereHamster git revert -n; git reset -p; git commit18:34
mcdebugger joined18:34
amorphous0815 joined18:34
Axius left18:35
sylr what does git reset -p ?18:35
thiago_home reset -p? that's new for me18:35
wereHamster like add -p18:35
anzenketh joined18:35
engla joined18:36
engla left18:36
engla joined18:36
meanburrito920 left18:36
Patrulka joined18:36
DrNick joined18:38
UncleCJ joined18:39
eighty4 joined18:39
dajero left18:41
Zephyrus joined18:42
novas0x2a1 joined18:43
amorphous0815 left18:43
novas0x2a left18:44
giallu joined18:44
sylr wereHamster, git reset HEAD, then git reset -p gives me No changes.18:45
git reset HEAD --no-commit ?18:45
maxthoursie left18:45
sjain left18:48
ph^ joined18:50
sixteneighty joined18:52
fujin joined18:52
cedricv left18:53
weary left18:54
wereHamster did I say you should do reset HEAD?18:54
mindworx left18:57
weary joined18:59
khmarbaise joined19:00
neuro_damage left19:01
khelll joined19:01
sixteneighty left19:02
ph^ left19:02
ph^ joined19:03
ph^ left19:03
ph^ joined19:04
joeb joined19:04
joeb Is it possible to add a submodule into a project but only a specific directory of that submodule?19:04
mindworx joined19:04
sixteneighty joined19:05
runasand left19:05
LotR left19:05
pcc1 left19:05
drizzd not without filter-branch19:05
chuck left19:05
joeb I've never used filter-branch before, I'm assuming it's name is pretty much self explanatory of it19:06
mw joined19:06
tychoish left19:06
nothingmuch left19:06
drizzd you'd need filter-branch --subdirectory-filter19:06
iaj joined19:06
joeb drizzd: Can I perform it on a submodule just like normal?19:07
rkenned joined19:07
gkelly left19:08
magn3ts joined19:08
ScottMac left19:08
tychoish joined19:08
drizzd yes, but that implies that you first added the entire repo as a submodule. in your case I'd create a separate repo for the "submodule", apply filter-branch (you will have to do that again for each update), then include the result as a submodule.19:08
joeb Okay. I will try it out19:09
mastro left19:09
drizzd actually, it wouldn't work otherwise, since you probably want to remove the repository state prior to filter-branch, making the old submodule state invalid as well.19:09
psankar left19:10
joeb Interesting.19:10
Yeah, I'm doing filter-branch and it's iterating over every commit it looks like19:10
And, there's quite a bit, heh.19:10
ScottMac joined19:11
engla left19:11
mcdebugger left19:11
tychoish left19:11
joeb So I should create a new repo, do all this (submodile, filter-branch) and then use that newly created repo as a submodule for other projects... have I got that right?19:11
drizzd yes, it's slow19:11
sylr wereHamster, sorry, I meant git revert HEAD19:11
Aikawa joined19:11
pcc1 joined19:11
mcdebugger joined19:11
chuck joined19:12
jklo left19:12
runasand joined19:12
LotR joined19:12
tychoish joined19:12
drizzd joeb: you should have a separate repo, which will become a submodule, but is not a submodule per se. Use filter-branch on that, then add it as a submodule.19:12
jklo joined19:12
drizzd to get updates from the original repo, you will have to do the same again, except that you merge the result19:13
joeb basically the repo for a framework I use has things in it that I don't need, just its core libraries. I'd like to be able to submodule those libraries.19:13
cedricv joined19:13
nothingmuch joined19:13
joeb Okay, I think I got it.19:13
steelwil joined19:13
Pupeno_ joined19:13
drizzd you can even merge changes back using subtree merge later19:13
steelwil is this the right place to ask questions?19:13
disturb left19:13
gkelly joined19:13
wereHamster sylr: did you use git revert HEAD or git revert -n HEAD ?19:14
sgh joined19:14
joeb drizzd: Thanks for the help!19:14
drizzd yw19:14
joeb left19:14
sylr wereHamster, the first :P19:14
alester joined19:15
Aikawa left19:15
fahadsadah joined19:15
sylr wereHamster, but it's okay, I reset and did it with the -n19:15
Pupeno left19:15
Pupeno_Pupeno19:15
Aikawa joined19:15
sylr wereHamster, thanks19:16
steelwil I have two branches I want to merge just a certain file from the one branch to the other, how do I do that19:16
wereHamster you can't19:16
drizzd steelwil: that is per definition not a merge19:16
you want "git checkout <branch> <file>; git commit"19:16
oh19:17
well, maybe not exactly19:17
steelwil what I did was check out the one branch, copy and paste file to another directory19:17
ok drizzd I thought there would be a more elegant way of doing it19:18
drizzd but you can use "git merge-file"19:18
HG` left19:18
beni- joined19:18
spawnyd left19:19
Heimidal_ joined19:19
steelwil I will look up the git merge-file docs, thnks19:19
altogether left19:21
Alagar joined19:22
drizzd steelwil: actually, it would be easier, starting with a clean worktree, to do "git merge <branch>; git reset; git add <file>; git checkout .; git commit"19:22
engla joined19:22
engla left19:22
engla joined19:22
drizzd oh and you probably want to use git merge --squash instead19:23
eletuchy_ left19:23
drizzd jeez, forgot --no-commit too, so it's "git merge --squash --no-commit <branch>; git reset; git add <file>; git checkout .; git commit"19:23
maxter left19:24
steelwil ok thanks drizzd19:25
Pupeno left19:26
Pupeno joined19:26
kpreid_ left19:27
eletuchy joined19:28
mindworx left19:28
coyo joined19:29
eletuchy_ joined19:32
werdan7 left19:33
steelwil drizzd wont the "git reset' reset the branch to the last committed state?19:34
nanoo left19:34
SimManiac joined19:34
eletuchy left19:34
SimManiac hi19:35
drizzd steelwil: git reset HEAD (the default) never modifies the branch, since HEAD is already the current state19:35
agibagib|away19:36
steelwil ok19:36
drizzd the point of git reset there is to undo the changes git merge made to all the files other than <file>.19:37
kpreid_ joined19:37
kpreid_ left19:38
steelwil what is stopping <file> from also being reset?19:38
drizzd unfortunately it also removes the three-way merge result in the index, so you can't do a three-way diff after that, but at least you have the merged file in the work tree19:38
icwiener joined19:38
drizzd steelwil: file is also being reset, that's why you re-add it after.19:38
steelwil ok now I understand19:39
Boriskr joined19:39
drizzd you could also do "git checkout HEAD -- $(git diff --name-only HEAD|grep -v '^<file>$')" (not tested), which would preserve the index19:40
webus left19:41
kpreid_ joined19:43
charon drizzd: far easier to GIT_INDEX_FILE=scratch_index git checkout HEAD -- .; rm -f scratch_index19:44
(or did i miss some intermediate step?)19:45
Boriskr left19:47
project2501a joined19:47
drizzd charon: we're trying to merge only a single file instead of the entire branch19:48
johnw left19:48
[Po]lentino|away left19:48
charon oh19:48
my usual take on that is 'git show --format=email HEAD...branch -- file | git am'19:49
er19:49
charon should make up his mind on whether to use show or diff19:49
johnw joined19:50
charon git diff --format=email HEAD...branch -- file | git apply19:50
the log -p | git am form can be useful to make a "filtered rebase", though19:50
drizzd but that would potentially create a lot of out-of-context commits19:50
ah, ok19:50
but that last one won't do a three-way merge19:51
charon true. IIRC you can still feed a diff to am -3 if you fix the commit message afterwards, though19:52
mssm left19:52
meanburrito920 joined19:53
meanburrito920 left19:53
meanburrito920 joined19:53
Ilari spearce: Was the missing commit problem also fixed? I know missing trees/blobs was...19:53
jklo_ joined19:53
drizzd right, so there are a few ways to do it, but no command. I wonder if something like that would be useful. But then I don't know how I feel about encouraging people to use it, since it is essentially a cvs style merge, without merge history.19:53
AAABeef left19:53
AAABeef joined19:54
drizzd but then so is cherry-pick, which does the same thing, only in the time dimension instead of the tree dimension19:54
jklo left19:54
jklo_jklo19:54
steelwil well it all seems complicated19:55
wereHamster yeah, because that's not what git was written for19:55
drizzd I don't know about that. We could easily to it, we just haven't implemented it as a single command.19:56
anzenketh left19:56
Louie` joined19:57
steelwil wereHamster explain the correct way, many commits?19:57
alexmchale left19:58
drizzd steelwil: The point is that it gets really ugly when you try to track merges on file-level. I'm sure there is a large flaming thread in somehwere in git's mailing list history.19:58
wereHamster merging a single file from another branch was not a use case that linus had in mind when he initially wrote git19:59
Twisted_Mentat joined19:59
jklo left19:59
zjason``` left19:59
AkumaStreak joined20:00
phishy joined20:00
jklo joined20:01
eighty4 left20:01
steelwil I would like do do something like git checkout experimental1branch theFile; git add theFile; git commit -m "added theFile into current branch"20:01
wereHamster you can do that20:02
project2501a left20:02
drizzd but it's not a merge20:02
unless the file didn't change in the current branch20:02
wereHamster that, however, will not preserve the history (you will later not see that the file was copied from the other branch)20:02
steelwil drizzd what is it then?20:02
wereHamster that is a plain simple commit20:03
drizzd you take the version of the other branch and overwrite the version in the current branch20:03
auslander left20:03
drizzd a merge, on the other hand, takes changes from both branches20:04
steelwil ok20:04
UncleCJ left20:05
steelwil I can see that a merge would be handy20:05
fr0sty steelwil: Something like this might work: 'git checkout -b temp_branch <merge_base>; git checkout <other_branch> TheFile; git commit TheFile; git checkout <my_branch>; git merge temp_branch'20:06
agib|awayagib20:06
fr0sty but as others have mentioned this gets ugly, messy, and is probably not what you really, truly want.20:07
pkahle_ left20:07
dgnorton left20:08
maxter joined20:09
acalbaza_ joined20:09
acalbaza_ is it possible to svn dcommit a specific hash?20:09
or should i just checkout a quick branch, make my change, commit, then revery back to my work?20:09
steelwil I would get both versions into kdiff and merge that way20:10
altogether joined20:10
Eaven joined20:11
avar acalbaza_: When I work on git-svn I do all my work on a branch and cherry-pick stuff there before pushing it20:14
Scotto_ joined20:15
froschi left20:16
unhygienix joined20:18
meanburrito920 left20:18
meanburrito920 joined20:18
meanburrito920 left20:18
meanburrito920 joined20:18
Scotto_ whats the best way to get a list of commits and nested under those the list of files comitted?20:19
jklo left20:19
jklo joined20:20
jtaby joined20:20
thiago_home git whatchanged20:20
Scotto_ that can be applied to all files?20:20
jklo left20:20
Scotto_ niice20:21
jtaby Hey, I'm having a problem which I can't fix myself: When I try to do a 'git push', it says it failed because it's not fast forward, which implies there's a newer version on the server. When I do a git pull, I get an error telling me that I didn't tell it which branch I want to merge with20:21
Scotto_ i just wish i could exclude the initial commit20:21
jtaby when I do a git fetch, nothing comes down20:21
any ideas?20:21
Scotto_ as its very long20:21
acalbaza_ avar: true... but it might be safer to stash my stuff then checkout a master branch and recommit.20:21
Scotto_ thiago_home: how about just the commits, so i can then list all the files under a certain commit20:22
timj left20:23
magn3ts left20:23
magn3ts joined20:23
rkenned left20:23
thiago_home git diff --name-status commit^..commit20:23
sjain joined20:23
nanoo joined20:24
pklingem joined20:24
Scotto_ my window buffer can only hold so much :(20:24
jlilly joined20:24
Scotto_ whatchanged should display in the opposite order, so that the most recent commit ends up displaying last20:25
atealtha joined20:25
altogether left20:25
mjf joined20:26
steelwil left20:26
thiago_home --reverse20:26
Swimming_Bird joined20:26
atealtha I'm having issues doing 'git clone ssh://git@localhost:1234/blah.git' even though I can clone from a remote host: 'git clone ssh://git@remotehost...' I can ssh inside the box itself too. anyone know what might be the issue here?20:26
weary left20:27
atealtha oh well I can't ssh into itself because of gitosis, but it still responds20:27
weary joined20:27
jaql joined20:27
dmgr left20:29
dmgr joined20:30
meanburrito920 left20:30
hobodave joined20:31
kpreid_ left20:31
AkumaStreak left20:32
AkumaStreak_ joined20:32
beni- left20:33
Ilari atealtha: What does 'ssh -p 1234 git@localhost' output (the error message)?20:33
meanburrito920 joined20:33
atealtha Ilari: http://nopaste.voric.com/paste.php?f=zu3wvj20:34
magn3ts left20:34
Ilari atealtha: And what does 'git ls-remote ssh://git@localhost:1234/blah.git' give?20:35
atealtha ssh: localhost:15556: Name or service not known20:35
josh0x0 joined20:35
atealtha fatal: The remote end hung up unexpectedly20:36
Ilari atealtha: 'echo $GIT_SSH' (it may be blank)?20:36
atealtha yes it is blank20:36
timj joined20:37
Ilari atealtha: Looks like git->ssh invocation is done incorrectly...20:37
atealtha in the box I tried remotely, $GIT_SSH is also blank20:38
Ilari atealtha: Blank means default (ssh).20:38
atealtha oh20:38
so it's something on git's side20:39
Ilari atealtha: You could put something like this to ~/.ssh/config: 'host git-localhost' 'hostname localhost' 'port 15556' 'user git'. Then try 'ssh git-localhost'.20:40
crankharder how should I set up permissions on /home/git (and the repos) such that my various users (fred, bob, etc..) can clone w/ git clone [email@hidden.address] ?20:41
atealtha Ilari: one moment20:41
crankharder add them to the git group?20:41
Ilari crankharder: Use gitolite? Or add them to git group (and create repos shared).20:41
dmgr left20:42
atealtha Ilari: same output from when I tried to SSH manually20:42
Ilari atealtha: Then try 'git ls-remote ssh://git-localhost/blah.git'.20:42
atealtha ERROR:gitosis.serve.main:Repository read access denied << interesting20:43
mindworx joined20:43
atealtha I just checked my gitosis.conf20:43
dmgr joined20:45
drizzd left20:45
deadroot joined20:46
atealtha Ilari: uhh, it actually WAS my gitosis.conf that was bad20:46
cilly left20:46
atealtha sorry for all the trouble, thanks for the help20:46
deadroot hi all20:47
i'm having a problem with git am20:47
it's saying that my "patch does not apply"20:47
Ilari atealtha: There was also some ssh problem...20:47
deadroot what should i do?20:48
atealtha Ilari: you're right, ugh20:49
ls-remote works now though20:49
Fullmoon joined20:50
codeswing left20:50
Ilari atealtha: If ls-remote works, clone should as well.20:50
atealtha if I use git-localhost it works, but not git@localhost:1555620:50
possibly an old version issue?20:50
jaql left20:51
Ilari atealtha: What git version? What OpenSSH version?20:51
iaj left20:52
iaj joined20:53
atealtha git: 1.5.2.2; OpenSSH: < 5.x. so yeah, old ssh20:53
Ilari Also, git is old version.20:54
How you manage to have that old version now? Even Debian Stable has newer version...20:54
static^ left20:54
iaj left20:54
atealtha coughslackwarecough20:54
mugwump git turns 5 soon20:54
iaj joined20:54
bentob0x joined20:55
atealtha I'm just too lazy to upgrade20:55
yn joined20:56
atealtha Ilari: but thanks for the .ssh/config tip, that really helped20:56
Zephyrus left20:56
Danielpk left20:56
acalbaza_ avar: ahh... i just looked at cherry picking again... looks like it is really the straightforward way to do what i want20:58
sjain left21:00
lucsky left21:01
AlexanderS left21:01
bburhans left21:01
ruphy left21:01
badboy_ left21:01
jakob left21:01
dirker joined21:01
jakob` joined21:01
bburhans joined21:01
patrikf joined21:01
iaj left21:01
badboy_ joined21:01
wereHamster joined21:01
yn left21:02
charon joined21:02
iaj joined21:02
ruphy joined21:02
mindworx left21:03
jast joined21:03
deadroot could my problem be because of a mix of lf and crlf?21:03
Morasique deadroot: it could be anything; for whatever reason, the patch you're trying to apply doesn't fit your current HEAD21:04
daifuku joined21:04
iaj left21:04
xou left21:04
xou joined21:04
viniciusluiz left21:05
avar acalbaza_: yay21:05
AlexanderS joined21:05
Fullmoon left21:05
deadroot Morasique: how can i find out what is the cause?21:06
daifuku Q: There's a folder that stays listed by `git status` in the "untracked files" section... even though i checked in (supposedly) all the files in the folder. Any ideas on what could cause this?21:06
wereHamster you did not (check in the files)21:07
deadroot git apply works with the same patch21:08
acalbaza_ avar: however... when i try it, it says automatic cherry-pick failed...21:08
but not sure why21:08
kipras joined21:08
gebi joined21:09
daifuku @wereHamster: I did a `git add <foldername>\*` and `git commit` and the files are listed by `git log -1 --name-only`21:09
avar you didn't give it a sha as an argument21:09
voodootikigod_ left21:09
acalbaza_ i did actually.. Automatic cherry-pick failed. After resolving the conflicts,21:09
but the files show up an unmerged and "deleted by us: ..."21:10
lhz left21:10
daifuku Is it possible to see why git thinks the folder is "untracked" ... i've tried looking for hidden files, etc and didn't see anything21:10
wereHamster daifuku: windows?21:10
daifuku @wereHamster: yep, windows vista :|21:10
rgr left21:11
shingo joined21:11
dforsten left21:11
mindworx joined21:11
pklingem left21:11
rgr joined21:11
brizly left21:13
acalbaza_ hmmm.. i had a merge conflict in one file, but cherry-pick didnt tell me which one. odd that it shows all files as "deleted by us:" i dont understand what that means.21:13
mugwump "us" probably means the branch you are merging into21:14
akahn left21:14
Aikawa left21:14
kpreid_ joined21:16
Aikawa joined21:16
Bass10 left21:16
ThiefMaster left21:17
rgr left21:18
Paraselene_ left21:20
traviscline is it possible to use mergetool when git am fails?21:22
it leaves a clean index and working dir21:22
daifuku I've done a `git ls-files` in that folder and compared it with the output of a normal directory listing... no differences21:22
ThiefMaster joined21:23
tvw joined21:23
nanooo joined21:24
doener traviscline: only when using -3, which needs a) git generated patches and b) the base objects for the patch to exist in your repo21:26
traviscline ok cool21:26
chittoor left21:26
nanoo left21:27
novas0x2a joined21:27
camonz left21:28
maxter left21:29
irc2samus left21:29
webchick left21:29
novas0x2a1 left21:30
jackieO joined21:30
agibagib|away21:30
adamholtadamholt_away21:30
agib|awayagib21:30
rotty joined21:37
agibagib|away21:37
agib|awayagib21:37
rgr joined21:38
rotty how does one do away with a merge -- i.e. keep the history as is but for omittting the second parent of the merge commit21:39
?21:39
selckin rebase?21:39
wereHamster rotty: merge -s ours ?21:40
rotty selckin: rebase gives me conflicts for some reason -- I'd guess this should be possible without conflicts21:40
johnw left21:41
rduplain left21:41
rotty wereHamster: I don't think that will do what I want21:41
wereHamster: IIUC, this creates a merge commit, while I want to get rid of one (or rather the "merge aspect" of it)21:41
wereHamster well, then rebase is what you want21:42
tstclair left21:42
ph^ left21:43
atealtha left21:43
git__ joined21:44
git__ when git does cloning, does it download one file at a time?21:44
wereHamster no21:45
selckin define file21:45
git__ based on filesystem21:45
selckin define one at a time21:45
git__ it goes fetch a file, download, save to local, fetch a file, download, save to local21:46
like that21:46
wereHamster clone downloads a single pack (and puts it into .git/objects/pack/)21:46
selckin which is basicly a single file, but probably not in the way you think of it21:46
jtaby i can freely move files within a git repo, right?21:46
meanburrito920 left21:46
wereHamster yes21:46
git__ a single pack is like a single tar.gz file?21:47
wereHamster yes21:47
git__ then local would tar zxvf21:47
if i have a clone a 2GB repo, it's a go or no go?21:47
rotty wereHamster: rebase seems to follow both branches; my history looks like this: http://i.imgur.com/NXe57.png21:47
git__ if it gets interrupted half way?21:47
err "if i clone a 2GB ..."21:47
werdan7 joined21:47
wereHamster clone can't be restarted (yet)21:47
git__ ah21:48
selckin so why can't you just ask if you can resume interrupted clones21:48
git__ no wonder why it's taking forever when I try to clone21:48
selckin, hehe :P21:48
selckin stupid people21:48
rotty wereHamster: and I want to just get rid of the black arrows to/from the [WIP] commit, keeping the history of the manpage branch otherwise intact21:48
git__ :)21:48
wereHamster rotty: git checkout manpage; git rebase master; ?21:49
rotty wereHamster: I get conflicts regarding the [WIP] commit if I try that21:49
wereHamster then resolve the conflicts21:49
rotty there should be I way without having me to do that :-/21:50
nanooo left21:50
wereHamster no, there is no way to guarantee that there won't be conflicts21:50
rotty wereHamster: I /did/ fix those now, but couldn't git apply the diff between every commit, considering just the master branch?21:51
erm, manpage branch21:51
wereHamster which diff should git apply first, the WIP commit or the 'ui cmdline split off...'?21:53
ixti left21:53
wereHamster there is no guarantee that when you apply one and then the other that there won't be a conflict21:53
rotty the split off, then diff between that and the merge result21:53
wereHamster ah, so you want to squash those two commits into one?21:54
rotty if you put it it that way, yes21:54
wereHamster I guess you could use rebase -i and then read-tree the merge result instead of fixing the conflict21:55
acalbaza_ left21:55
rotty I guess I'll rebase -i on the result of what I've now21:56
majd joined21:56
loincloth left21:58
jtaby left21:58
sixteneighty left21:59
robinbowes left21:59
khmarbaise left21:59
hugoxrosa left22:00
joeconyers joined22:01
Louie` left22:01
rotty wereHamster: thanks for your hints! (problem solved now, next time I'll try rebase -i)22:03
Bass10 joined22:03
PerlJam left22:03
dj_tjerk left22:03
deadroot oh screw the history. recommitting one by one22:04
thanks22:04
deadroot left22:04
Bass10 left22:05
robinbowes joined22:05
Bass10 joined22:05
sagsousuke joined22:06
psoo joined22:06
EricInBNE joined22:07
altogether joined22:08
pantsman left22:08
AkumaStreak_ left22:08
pano_ left22:09
psoo left22:09
majd left22:11
rook2pawn joined22:12
rook2pawn iS there a way to turn off compression on certain files when sending up to the repo?22:12
Yuuhi joined22:12
lucs left22:13
wereHamster I think git will always compress objects with zlib, but you can tell git to not try certain things (like diff, delta compression) on files by setting gitattributes22:14
Pupeno left22:15
meanburrito920 joined22:18
meanburrito920 left22:18
meanburrito920 joined22:18
dmgr left22:18
sagsousuke left22:18
Ilari The delta compression is the one that can really eat CPU time...22:19
sjain joined22:19
rook2pawn How do i set core.compression or pack.window to 0 ? I'd ideally like this just to affect this one giant .rar file we keep22:20
Ilari rook2pawn: '*.rar -delta' to .git/info/attributes (or what it was...)?22:21
rook2pawn -delta means delta only?22:22
Ilari rook2pawn: Disable delta compression on matching files.22:22
rook2pawn Oh okay. Is there a way to turn off zlib as well?22:22
Ilari rook2pawn: No there isn't.22:23
jstephenson joined22:23
flaguy48 joined22:23
ehabkost left22:24
wereHamster the real question is, why are you trying to add rar files to a git repo?22:25
o_a joined22:26
rook2pawn we have a collection of .png's but there are tens and thousands of them. sending them to git took so long, the transfers just died somewhere in the 2 -3 hour mark22:27
Theravadan left22:27
rook2pawn so i turned off compression on .rar, added the recovery record index, and decided this is better than .tar, sent it up, and it worked, about 15 minutes22:27
bauruine joined22:31
agile left22:32
_iron left22:33
sjain left22:33
robinbowes left22:33
altogether left22:35
manyoso joined22:35
thiago_home left22:35
manyoso anyone know of a quick git command to tell whether to repo's share any common objects?22:36
should be, "to tell whether two repo's..."22:36
Rick_ joined22:38
robinbowes joined22:38
tek0 joined22:38
wereHamster fetch one repo into the other, check if any two branches have a common merge-base22:38
Textmode night all22:38
Rick_ I'm new to git and I have a question about a workflow model. What would be the best way to have both a free version and pay for version of an application in one repository?22:39
manyoso wereHamster: faster to just iterate over objects dir and compare?22:39
Textmode left22:39
fool__ joined22:39
fool__ left22:39
fool__ joined22:39
wereHamster manyoso: maybe..22:39
Rick_: have two branches, one for the free, one for the pay version22:40
Rick_ wereHamster: Should I develop in the free branch, and then merge changes to the paid branch for changes that would apply to both?22:40
wereHamster: Also, how should I handle tagging version numbers then?22:40
wereHamster does the free version contain things that the paid version doesn't?22:41
sgh_ joined22:41
jrmuizel left22:41
Rick_ It will contain very small number of things that the paid doesn't like for example, a screen about the paid version22:41
sgh left22:41
wereHamster then you need three branches, one common where you develop and merge into the free and paid branches22:42
SpaT joined22:42
Rick_ so the main develop branch should be the least common denominator22:42
correct?22:42
wereHamster yes22:42
fool_ left22:42
Rick_ For a tagging system should i do something like git tag -a paid-v1.0 -m 'version 1.0 (paid)" ?22:42
wereHamster yes, I'd tag the paid and free versions separately22:43
SpaT what happens if i have modified files in the workcopy and switch branches?22:43
Rick_ Would you say there is a naming convention thats generally accepted for that already or not?22:43
WALoeIII joined22:43
wereHamster most projects use rX.Y or vX.Y for tags, but what you proposed looks fine22:44
Rick_ Thanks wereHamster , I really appreciate it22:44
frogonwheels SpaT: if it has to switch to a different revision, it wont let you .you need to stash or commit22:44
wereHamster you could even use git tag -a paid/v1.0 and tag free/v1.0 if you want to split the tags into different namespaces, but that's entirely up to you22:45
Rick_ How do the namespaces apply to git specifically?22:45
tobiassjosten left22:45
SpaT frogonwheels: thought it would do something sensible like that thanks22:46
wereHamster Rick_: it's like directories22:46
Rick_ alright I think I will do it that way22:46
frogonwheels SpaT: in the case where you've made changes, want to branch before you commit, you can happily create a new branch where you are, check it out and commit..22:47
wereHamster Rick_: branches live in refs/heads, tags in refs/tags, remote braches in refs/remotes (run git show-ref in your repo and look at the output)22:47
Rick_ I see, so then it would split the tags into two seperate subdirectories?22:47
wereHamster internally, yes22:47
Aikawa left22:47
Rick_ Works for me, thanks for the tip22:48
Pupeno joined22:48
Aikawa joined22:48
wereHamster it's mostly just for convenience (so you could push only the free tags with a single command, git push <...> refs/tags/free/*)22:48
Rick_ Oh yes, that makes sense now22:48
pklingem joined22:49
Aikawa left22:50
ntoll joined22:51
Ryback_ left22:51
Mage joined22:51
Ryback_ joined22:52
sgh_ left22:52
simNIX left22:52
Mage left22:52
alley_cat left22:52
agibagib|away22:53
Mage joined22:53
shingoaikawa22:56
gebi left22:56
git__ left22:57
Ryback_ left22:57
mike8901 joined22:59
mykeus joined22:59
mike8901 If I checkout an old commit, how can I get git log to show _ALL_ commits, including ones after the current one?22:59
tvw left22:59
bob2 git log thebranch23:00
unhygienix left23:02
aziz left23:02
unhygienix joined23:02
d0k left23:02
SpaT frogonwheels: that is the most likely case I will use it. Always refactoring and messing up a already working copy23:03
mugwump mike8901: see man git-rev-list23:04
Gitbot mike8901: the git-rev-list manpage can be found at http://git.or.cz/man/git-rev-list23:04
mugwump there is --all if you want all commits on all branches23:04
drd_ left23:04
SpaT left23:06
unhygienix left23:07
patmaddox left23:07
oal left23:08
Yuuhi left23:10
shingo joined23:10
kipras left23:11
jstephenson left23:11
Chillance left23:11
agile joined23:13
SimManiac left23:15
pax- joined23:17
pax- so.. I commit'ed and now want's to push, git is saying "already up-to-date". Easyest way to solve?23:18
mattions left23:18
cedricv left23:19
wereHamster tell git what to push (git push <remote> <branch>)23:19
icwiener left23:19
auslander joined23:19
auslander left23:19
auslander joined23:19
pax- "everything up-to-date" when I do git push origin master23:20
oh wait23:20
wereHamster git doesn't lie to you...23:20
pax- facepalms23:20
pax- I was working on another branch, thanks anyway23:20
rburton- joined23:21
ntoll left23:21
khelll left23:22
ben_h joined23:23
AAABeef left23:24
loincloth joined23:25
alester left23:25
mithro left23:25
gasull joined23:27
d0ugal joined23:27
auslander left23:28
gasull Hi all. How can I remove a file with sensitive information from the git repo removing previous versions too? Thank you.23:28
wereHamster gasull: man git-filter-branch23:28
Gitbot gasull: the git-filter-branch manpage can be found at http://git.or.cz/man/git-filter-branch23:28
Eaven left23:28
frogonwheels left23:30
madewokherd joined23:30
frogonwheels joined23:30
juan_arandaalvar joined23:32
Rick_ wereHamster: Is there an easy way to rename old annotated tags?23:32
mugwump you can use git update-ref refs/tags/newname oldname^{tag}23:33
Rick_ Is ther ea way to change the message associated with the tag?23:34
wereHamster no23:34
mugwump http://utsl.gen.nz/git/git-amend will do ti23:34
however the tools make this deliberately difficult23:34
Rick_ Basically I have a bunch of old version numbers but now my client wants a free and a paid app so i want to chnage all the old tags to be paid/oldtaghere23:35
mugwump clients for instance will not overwrite tags they already have when pulling23:35
Rick_ maybe ill just delete all the old tags since they were beta builds anyway23:35
bauruine left23:35
warlock_mza joined23:43
floppyears left23:44
pheaver joined23:45
floppyears joined23:45
gasull wereHamster: thanks. Maybe my question should be "how can I remove a file with sensitive information from a *remote* git repo?"23:46
wereHamster gasull: fetch the remote repo, run filter-branch, push the result back23:46
aryounce left23:47
dpino left23:49
magn3ts joined23:49
gasull wereHamster: I get the error "A previous backup already exists in refs/original/23:50
Force overwriting the backup with -f". But I don't know where -f should go. I get errors wherever in the command "git filter-branch --tree-filter 'rm fabfile.py' HEAD" I put the -f.23:50
wereHamster that's an option to git-filter-branch (so it goes right after the command)23:51
AAA_awright left23:51
patmaddox joined23:51
gasull wereHamster: $ git filter-branch -f --tree-filter 'rm fabfile.py' HEAD23:52
Rewrite c64e434ea03602d8371dc20cee77bb135e2ce54f (1/14)rm: cannot remove `fabfile.py': No such file or directory23:52
tree filter failed: rm fabfile.py23:52
wereHamster also, the man page has an example how to remote a file from the history, and you're not doing it like there described23:52
(and that's why it fails, btw)23:52
gasull wereHamster: can't find the word "remote" in that link23:52
wereHamster remote? Why would you look for that?23:52
aikawa left23:52
shingo left23:52
gasull wereHamster: mmm... because it's a remote repo?23:53
altogether joined23:53
gasull maybe my concept of "remote" is wrong in git jargon. But my understanding it's that it is a remote repo since it isn't in my laptop23:54
wereHamster is it a bare repo?23:54
AAA_awright joined23:54
unhygienix joined23:55
robinr joined23:55
LiamH left23:55
gasull wereHamster: I'm not sure what "bare repo" means. If you mean if it's new, it's almost new. I committed there a few times.23:55
malumalu left23:55
frogonwheels gasull: you looking at it over a file share? or didyou 'clone' it from the original23:56
mugwump gasull: clean it up in your own repository. push to the remote one. log into the remote one, clear logs, and run 'git repack -a -d' and 'git prune'23:56
wereHamster well, I have absolutely no idea which repos you have, in which you work and what you expect.23:56
I can, however, tell you how to remove a file from the history (or rather, the git-filter-branch man page will tell you that)23:56
gasull frogonwheels: the original repo is the one in my laptop. I didn't clone it from the remote23:56
giallu left23:57
wereHamster you go into the repo which has the commits, you run the filter-branch command (like described in the man page), then you remove all refs in the refs/original namespace, done23:57
Swimming_Bird left23:57
gasull mugwump, wereHamster: the remote repository is in http://www.projectlocker.com, so I cannot ssh into it. I hoped to be able to fix this running some git command locally.23:58
rook2pawn left23:58
wereHamster then clone the repo, run the filter-branch command, and push the result back23:58
naturalethic joined23:59
mugwump well, clean it up, push - the last steps involving logging in are if you want to be really really sure23:59
but automatic GC will get rid of them eventually23:59
they will be hard to find. depends on how sensitive the information is, really23:59
pax- left23:59

Logs Search ←Prev date Next date→ Channels Documentation