IRCloggy #git 2010-08-03

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-08-03

sammcd left00:00
spaceonline joined00:00
infinity0 left00:00
Yuuhi left00:01
sivy left00:01
MattDiPa_ joined00:01
sivy_ left00:03
Paraselene_ left00:03
sivy joined00:04
mw left00:04
hotwings joined00:04
hotwings is it possible to download just a single dir from a git repository or are you forced to download the whole thing? i only need the latest v4l drivers but so far it seems im forced to download the whole kernel just to get the dir00:05
Jferro left00:06
Magicmat joined00:06
bentob0x left00:07
MattDiPa_ left00:08
rane_ it's not00:09
hotwings in that case it seems idiotic that v4l doesnt at least offer daily snapshots of drivers like alsa does. very disappointed to hear that but thanks for the answer rane_00:10
Paraselene_ joined00:10
tedoc2000 left00:12
zimbres joined00:15
jim0203 left00:15
infinity0 joined00:16
Magicmat left00:19
tstclair left00:20
airborn hotwings, or it should be avaible as a submodule IMO00:21
shiba_yu36 left00:22
hotwings yes, something better then forcing an entire kernel download.00:22
need about 17MB worth of files, forced to download 872MB just to get it is absurd00:23
samer joined00:23
sako joined00:25
DrNick add it as a remote to your existing kernel repository00:26
fbrunel joined00:26
masterkorp left00:27
hotwings i dont want any kernel repository00:29
airborn hotwings, which repo did you use? git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git00:30
toni joined00:31
MartinKonicek joined00:31
hotwings git://linuxtv.org/v4l-dvb.git00:31
00:31
avar you may be interested in the patch series on-list that's working towards partial checkouts00:32
hotwings that would be great. im surprised such a feature doesnt already exist to be honest00:33
jrmuizel left00:34
airborn ok, time for me00:34
night00:34
avar well, because mostly people complain and don't implement00:34
And there are still a lot of issues with it, it probably won't get in.00:35
airborn left00:35
jrmuizel joined00:35
fbrunel left00:36
sh1mmer left00:36
JoeyA joined00:37
rettub_ left00:37
JoeyA Does git perform deduplication when you commit files into it?00:38
avar Yes, inherently.00:38
It's a content addressable filesystem00:38
JoeyA (not semantically, but in terms of memory usage)00:38
(disk space, I should say)00:38
hotwings avar - was the feature intentionally left out or just not thought of @ design time?00:39
JoeyA I have about a million files taking up 200GB or so of space, and I want to put them in a deduplicative archive.00:39
ignatp left00:39
rettub_ joined00:39
Arrowmaster well now i cant find it but i thought there was an article named 'git from the ground up'00:39
JoeyA That's sort of an abuse of git, though. I'm not sure that's a well-trodden path.00:40
avar hotwings: Do you know how Git tracks content?00:40
hotwings: It was considered, but usually you want entire projects, not some subset.00:40
MartinKonicek__ joined00:40
avar hotwings: And it's inherently hard in Git, due to how it does tracking00:40
hotwings that seems like a pretty big assumption to make that you'd want an entire project. the kernel itself is a perfect example as you may be working on one portion thats completely unaffected by everything else.00:41
ignatp joined00:41
avar How are you going to build the kernel to test out your changes if you don't have the whole tree?00:42
hotwings well, doesnt that assume you need to build a kernel every time instead of just a module?00:42
Paraselene_ left00:43
scarabx joined00:43
MartinKonicek left00:43
hotwings or rather, changes dont automatically mean a new kernel needs to be built when compiling modules00:44
avar Yeah, I don't build the kernel a lot.00:44
intripoon left00:44
ExtraSpice left00:44
hobodave left00:45
hotwings i build the kernel pretty much only once, but i build alsa and dvb driver modules often for testing purposes00:45
shiba_yu36 joined00:46
Arrowmaster there was a really good article i read that basically walked through the creation of a dvcs exactly like git by using usage scenario examples for each design decision00:47
shiba_yu36 left00:48
avar "meh"00:49
Git is pretty much the biggest git thingy I've ever cloned, but it's still only 1GB or so, that's nothing.00:49
MartinKonicek__ left00:49
kpreid joined00:49
JoeyA left00:50
shiba_yu36 joined00:52
_numbers joined00:53
hotwings v4l lost scores of testers when they switched to git. for that matter, a bunch of the devs wont even use it either because they dont want to be forced into using a testing kernel rather then stable00:53
_numbers left00:53
Theravadan joined00:54
valeo left00:54
avar That doesn't make sense, they lost testers because they switched to Git? Did they make some code changes that made it impossible to run v4l on stable kernels while doing that?00:54
If those testers really mind the big linux-2.6.git checkout then setting up a repo that uses git-filter-branch to provide only v4l is only 10 line cronjob away.00:55
hotwings its not git they hate, its being forced to download the kernel constantly00:56
Arrowmaster that still makes no sense00:56
hotwings people have complained about it all from metered bandwidth to just disliking it and everything in between00:56
time, diskspace, etc00:57
take your pick, its been a complaint00:57
avar < Arrowmaster> that still makes no sense00:57
Arrowmaster are they doing a full clone or something everytime?00:58
avar My linux git is ~400MB once I've downloaded it *once* doing git pull is only a few hundred K00:58
Arrowmaster avar: git.git?00:58
avar So if anything they're probably using less bandwidth in the long term00:58
no, linux-2.6.git00:58
gigamonkey left00:58
Arrowmaster oh, not sure i have linux-2.6.git00:58
avar "to just disliking it and everything in between" is also a bit unclear00:58
Arrowmaster git.git is tiny though00:58
hotwings yup, full clone. end-users dont seem very keen on the idea of maintaining a git repository00:58
Arrowmaster then they arent using the system properly so they have no right to complain00:59
avar Anyway, like I said it's *trivial* for someone to maintain a shallow subdir export of linux-2.6.git if those testers really want that.00:59
guilhermeblanco joined01:00
hasen_ left01:00
hotwings you dont need a right to complain about something and considering all those users are a pretty important piece of the puzzle, i dont think its wise to just brush them off like they dont matter01:00
keep in mind, ive seem tons of commits to v4l that wernt even tested, and written by people that dont even have the hardware. that in itself is a big mistake in my opinion -- committing patches hoping they work, and if not then hoping someone will report problems quickly.. thats just asking for broken code to wind up in the kernel01:02
linusoleander left01:02
slyphonslyphon_away01:02
adxp-2`` left01:03
adxp-2`` joined01:03
SOCiETii left01:03
avar That applies to 99.9% of all Linux commits. Most of the codepaths are going to be run on hardware that the committer has never tested.01:03
hotwings i dont find that to be the case regarding dvb drivers01:04
avar Anyway, if this really is a problem for v4l folks as you claim then you could contribute usefully by offering shallow + partial linux clones to people that want them.01:04
gigamonkey joined01:04
nuoHep joined01:04
gebi are the v4l trees now in git? thought they used mercurial for development01:06
linusoleander_ joined01:06
hotwings yup gebi01:07
there are several git trees now01:07
the mercurial one still exists but is lagged far behind. its not even up-to-date with the newest stable kernel01:07
flaguy48 joined01:08
gebi ah nice :)01:08
sako left01:10
nuoHep left01:11
Vampire0 joined01:12
rettub_ left01:12
linusoleander_ left01:13
parasti left01:13
rettub_ joined01:13
andrewl left01:13
mithro left01:14
Vampire0_ left01:14
SoCo_cpp_ left01:17
sako joined01:17
SoCo_cpp_ joined01:18
rayners joined01:19
unreal left01:19
unreal joined01:19
masonkramer joined01:20
Aaaarg left01:21
dreiss left01:24
jspiros left01:24
jspiros joined01:24
SoCo_cpp_ left01:25
SoCo_cpp_ joined01:25
SOCiETii joined01:26
Bombe left01:28
Bombe joined01:28
hobodave joined01:28
frogonwheels left01:29
frogonwheels joined01:29
andrewwatts left01:30
andrewwatts joined01:30
sagsousuke left01:32
nuoHep joined01:34
andrewwatts left01:34
frogonwheels left01:36
frogonwheels_ joined01:36
RobertLaptop left01:37
flazz left01:38
Zyclops joined01:41
nuoHep left01:42
mar77i left01:46
whaley left01:46
MattDiPasquale left01:46
SoCo_cpp_ left01:47
SoCo_cpp_ joined01:47
kpreid left01:48
whaley joined01:48
orafu left01:48
orafu joined01:48
aziz_ left01:49
hagabaka left01:49
nuoHep joined01:54
dumb_ass left01:59
redondos left02:01
redondos joined02:02
nuoHep left02:02
flaguy48 left02:05
masonkramer left02:07
sh1mmer joined02:08
adxp-2`` left02:08
adxp-2`` joined02:08
Aaaarg joined02:09
Oxf13 left02:12
coderdad joined02:12
kenyon left02:17
scarabx left02:17
kukks left02:18
nuoHep joined02:19
portablejim_ joined02:19
EvanR joined02:20
stringoO left02:20
EvanR gah. git diff shows me the diff in color, but it shows control codes instead of colors02:20
vim works in color02:20
cytrinox_ joined02:21
EvanR is there some term config option for git?02:21
kenyon joined02:22
frogonwheels_ EvanR: it should pick up the reported term .. what terminal?02:22
EvanR xterm02:22
portablejim_ How do I pull a new branch from a remote?02:22
frogonwheels_ EvanR: perhaps it is your pager then?02:22
beatak left02:23
frogonwheels_ portablejim_: just fetch/pull02:23
EvanR hmm02:23
frogonwheels_ (that's what termcap/terminfo is for, after all)02:23
EvanR man pages show with bold on some words02:23
frogonwheels_ portablejim_: then you should be able to checkout <branch>02:23
avar export LESS="--IGNORE-CASE --LONG-PROMPT --QUIET --chop-long-lines --RAW-CONTROL-CHARS"02:23
frogonwheels_ avar: thanks :)02:24
cytrinox left02:24
cytrinox_cytrinox02:24
EvanR right now LESS is -M ;)02:24
it worked02:25
frogonwheels_ EvanR: .. well I was right .. avar possibly a touch more actually useful :)02:25
EvanR where did you learn these magic words02:25
rchavik joined02:27
nuoHep left02:27
hagabaka joined02:28
zimbres left02:29
portablejim_ frogonwheels_: I did a git pull origin, and it made origin/new-branch . I am guessing I need to do a 'git merge' to fix it up, am I right?02:31
frogonwheels_ portablejim_: is there a 'new-branch' branch there?02:32
portablejim_ only origin/new-branch02:32
frogonwheels_ programble: ok I think git checkout --track origin/new-branch should create and switch you to a tracking branch called new-branch02:33
.. after that git checkout new-branch willdo.02:33
Mage_Dude_ How can I check what ssh protocol is being used from git bash?02:33
It's echo $GIT_SSH?02:34
frogonwheels_ Mage_Dude_: what does that give you?02:34
Mage_Dude_ Blank line02:35
frogonwheels_ Mage_Dude_: os?02:35
Mage_Dude_ Win 702:35
frogonwheels_ yeah GIT_SSH should be the one.02:36
Elfe left02:36
Elfe_ joined02:36
Mage_Dude_ Weird. That works on WinXP02:37
portablejim_ frogonwheels_: is there a way to track new branches on a pull?02:37
Mage_Dude_ I had the keys setup on WinXP, but trying to get it going on Win7 isn't going as well02:37
frogonwheels_ shrugs02:38
frogonwheels_ portablejim_: you creating that many new branches?02:38
Mage_Dude_: you want to use plink or ssh?02:38
portablejim_ more wanting automation.02:39
Mage_Dude_ frogonwheels_: SSH I think.02:39
frogonwheels_ well that would be the default.02:39
Mage_Dude_: GIT_SSH is just a pointer to the SSH program AFAIK02:39
Mage_Dude_ Hmmm. Just typing 'ssh' hints to the fact that there is an ssh program installed. But I might need to install a different one too?02:40
SoCo_cpp_ left02:41
frogonwheels_ Mage_Dude_: nah, should be good. just need to set up your keys in the right dir.02:41
.. I think git gui has some nice helpers even for that.02:41
SoCo_cpp_ joined02:42
Mage_Dude_ The weird thing is that pulling works fine, but pushing doesn't02:42
But I'm pushing from Eclipse and pulling from git-bash02:43
cirwin joined02:44
cirwin I often look through diff, and see a file I need to fix. Is there a better way of choosing which file to edit in this situation than parsing the output of git status through dmenu and then to vim?02:46
(the main problem I have with the dmenu approach is that dmenu appears a long way from the current terminal window)02:47
tstclair joined02:48
offby1 dunno what dmenu is.02:48
gebi left02:48
cirwin it's just a way of selecting one item from a list using the keyboard02:48
I'd like a nice way to do that in the current terminal02:49
offby1 really don't understand your question.02:49
If you see a file name in the output of "git status", why not just run vim on that file?02:50
cirwin because I see multiple file names02:50
and I want to select only one of them02:50
offby1 I'm still failing to understand02:50
Are you trying to avoid retyping the name?02:50
cirwin yes02:50
offby1 ah02:50
I just use the mouse -- select the name, then type "vim" and paste02:50
cirwin as there are only 3 or 4 files, I shouldn't have to type 15 -> 20 chars02:51
Arrowmaster i use tab complete02:51
offby1 (actually I live inside Emacs, and use a function called "ffap")02:51
cirwin unfortunately I am the victim of a wierd X bug which means my mouse is confined to one of my virtual desktops02:51
SoCo_cpp_ left02:51
offby1 huh02:51
cirwin tab complete is a bit rubbish for files within directories02:51
offby1: I did say wierd :P02:51
Arrowmaster well i use zsh and not bash so my tabcomplete is awesome02:51
cirwin Arrowmaster: oh?02:52
timj__ left02:52
timj__ joined02:52
SoCo_cpp_ joined02:53
offby1 I have this dim recollection that "git status" isn't intended to be machine-readable ... which implies there's some other command which is.02:53
cirwin git status --porcelain02:53
archis joined02:53
spearce left02:53
offby1 ha, you're ahead of me02:53
archis left02:54
cirwin ah well, I'll stick with dmenu, it's not as though 10 cm is `that` far to move focus, it just feels slow02:54
offby1 here's an insane idea -- git status --porcelain | cut -c 4- | xargs vim02:56
:)02:56
You'd have to :q across all the ones you don't care about02:56
hasenj joined02:56
cirwin yeah02:56
and I don't want to open any icons02:56
offby1 but vim is like über-programmable. Isn't there a git interface for it?02:57
cirwin sure is02:57
but you first need to be in vim :p02:57
maybe I should stay there more02:57
offby1 git status --porcelain | fgrep -v '.xmp' | cut -c 4- | xargs vim02:57
cirwin but the commandline interface isn't very good02:57
offby1 s/xmp/xbm/02:57
you get the idea02:57
cirwin yes02:57
it's a reasonable idea02:57
but I think dmenu is faster than my buffer navigation skills02:58
maybe i can get vim to present me with a choice02:58
hrm, too much hardness02:58
offby1 The hardness, I hates it02:59
SoCo_cpp_ left02:59
SoCo_cpp_ joined02:59
v0n joined03:03
SoCo_cpp_ left03:03
m41n1 left03:04
hilem joined03:04
spearce joined03:05
spearce left03:05
portablejim_ left03:05
hotwings left03:06
ari-__-e joined03:07
cirwin bashes builtin "select" function is what I'm using now - if anyone cares03:08
bash's even03:08
ComaWhite left03:10
ari-_-e left03:11
mdel joined03:11
cirwin left03:15
Zyclops left03:15
nadavoid joined03:16
frakturfreak_ joined03:17
alt-dot-net-geek joined03:18
Zyclops joined03:20
frakturfreak left03:20
ProperNoun left03:21
alt-dot-net-geek left03:23
__name__ left03:24
unclown joined03:24
dreiss joined03:24
Zyclops left03:25
slonopotamus left03:28
skeeziks Is it possible for me to track a branch in a remote that is itself a remote tracking branch?03:32
(i.e. when the server with the remote tracking branch is a bare repo?)03:32
dumb_ass joined03:35
Heimidal joined03:35
ProperNoun joined03:36
nevyn sure03:37
skeeziks Can you give me an example of what the remote's fetch line would be for my local tracking branch?03:38
Er, sorry03:38
s/local tracking branch/local repo/03:38
gbacon left03:39
skeeziks The default `fetch = +refs/heads/*:refs/remotes/origin/*' just ain't cutting it.03:39
Blackguard left03:43
nevyn hrm wait..03:48
the branch has to exist on the origin.03:48
nevyn is confused now.03:49
skeeziks X is my local, non-bare repo, Y is the intermediate, bare repo, and it routinely does a fetch from Z for all its branches. I'd like to track in X one of Z's branches via Y's remotes.03:50
doener skeeziks: add a second line like: fetch = +refs/remotes/*:refs/remotes/origin/* (adjust to your needs)03:50
friskd left03:51
skeeziks doener: OK, trying...03:51
webchick joined03:51
friskd joined03:51
doener skeeziks: e.g. instead of using globs, you could specify the full name for the one ref you actually want03:52
hohoho joined03:52
webchick Hey, there. I'm with the Drupal project and we're in the process of migrating our crappy lame CVS repo to shiny awesome Git. In CVS we had some "pre-commit hooks" that would do things like prevent you from uploading blacklisted files (*.tar.gz, LICENSE,.txt, etc.). We're discussing our options in Git and it sounds like there's not much, since commits happen locally, and we could only check at push-time.03:53
Could someone check over this comment http://drupal.org/node/869746#comment-3281340 and just verify that that is indeed the case?03:53
skeeziks doener: Success! I added `fetch = +refs/remotes/*:refs/remotes/vendor/*' and it pulled them all down. Thanks!03:53
jfkw left03:53
doener skeeziks: you're welcome03:53
webchick Cos if that's the case, it sounds like our recourse is either abandoning this plan (and then how do we stop people from committing warez) or else shifting the burden of clean-up from the developers to the infrastructure maintainers.03:53
skeeziks Is there some magic that happens when the lhs of the fetch spec specifes refs/remotes rather than refs/heads?03:54
webchick of which we have something like a 1000:1 ratio03:54
anyway, thoughts would be awesome. :)03:54
doener skeeziks: no, you're just selecting a different set of refs to be fetched03:54
skeeziks: branch heads live in the refs/heads/ namespace, remote tracking branches live in the refs/remotes/ namespace03:55
skeeziks: the left side of the refspec tells git what to fetch, the right side tells it where to store it03:55
RobertLaptop joined03:56
doener skeeziks: so "refs/remotes/*:refs/remotes/vendor/*" means: Fetch everything from refs/remotes/ and store it locally in refs/remotes/vendor/03:56
skeeziks doener: OK, I was thinking about it in reverse then, and I can simplify the second fetch line (the one I posted ended up creating `remotes/vendor/vendor/...' locally)03:56
doener skeeziks: no magic involved there03:56
dumb_ass1 joined03:56
doener skeeziks: right03:57
skeeziks: by adding the "vendor" thing to the left: +refs/remotes/vendor/*:refs/remotes/vendor/*03:57
skeeziks dbatbold: I feel like I figured this out once before, heh. Thanks a lot!03:58
dumb_ass left03:59
MacHat joined04:00
doener webchick: provide a pre-commit hook so everyone can run the checks locally, but also and a pre-receive hook to your main repo04:01
webchick: if a push gets rejected by the pre-receive hook, it should be because the pusher refused to use the pre-commit hook, his fault, so he'll have to deal with the consequences04:02
webchick doener: but then we'd have to tell 5,000 developers to change their local .gitconfig x each of their repositories?04:02
hrm.04:02
I wish I could say they were that good at reading documentation, but… ;)04:02
doener webchick: .gitconfig isn't involved, just "cp pre-commit .git/hooks"04:02
webchick doener: and thats global, or per-repo?04:03
per-repo, looks like.04:03
doener webchick: per repo, but you could have some kind of "bootstrapping" script and does such setup stuff04:03
s/and does/that does/04:03
webchick I don't think that'll work. :\ We literally have at least 5,000 active developers. Each one of which might have between 5 and 300 repositories.04:03
We do have a set of shell scripts called "drush" (drupal shell) where we were thinking of adding some of this integration, since probably at least 30% of them use this.04:04
but.. it's a sticky problem.04:04
doener 300 repositories? Didn't know that drupal has so many subprojects04:04
webchick So there's no way for us to enforce this server-side without the clients each doing manual config, via script or whatever.04:04
doener: Oh. Drupal has 6,000 sub-projects.04:04
doener: But each developer won't have a checkout of all 6,000. Just the ones they maintain/work on.04:05
doener heh, call me clueless ;-)04:05
webchick np. :) There's not really a big reason for a git person to know what drupal even is. :D04:05
but it makes for lots of "fun" trying to wrap our heads around how to do this migration.04:06
we're trying to do a sort of "middle-ground" phase where we keep our same centralized workflow for most things, but swap out CVS to Git, to help ease the training burden.04:06
But the more we dig into it, the less likely it looks like that's going to be workable.04:06
aresnick left04:06
phlowx left04:07
unclown left04:07
webchick doener: it's also fun because we have a non-trivial number of those 5,000 devs who are Windows/Mac designers/themers and work in Dreamweaver and have no effing clue what a version control system is, working entirely in GUI. So asking them to make modifications to a config file, or run a shell script is… challenging.04:07
anyway, my problems are not your problems. ;)04:07
doener hm, I wonder how the eclipse guys handled that, AFAIK they have some strict policies as well04:08
webchick But it sounds like our git lead's well-informed and there's not some obvious option that we missed.04:08
i just had to try. ;)04:08
doener: Oh, interesting. I could try asking around.04:08
doener: anyway, thanks a lot for your help!04:09
apsysoev left04:09
doener no problem04:09
zenazn left04:09
d-snp joined04:10
paradoxx left04:14
luis left04:21
electrogeek left04:21
electrogeek joined04:21
luis joined04:21
WebDragon joined04:22
terinjokes joined04:22
terinjokes is it possible to setup git to use a specified ssh key?04:23
thiago left04:23
avar no, but you can set up *ssh* to do that04:25
terinjokes avar: we looked at that on kernel.org's wiki04:25
the probablem is, the use that needs to run git doesn't have a home directory04:25
s/probablem/problem/g (it's been a long day)04:26
avar give him a homedir?04:26
terinjokes him is apache04:26
can i just define $HOME?04:27
adxp-2`` left04:27
adxp-2`` joined04:28
blueshift webchick: the fix for you #9 comment failure is that the dev needs to rewrite their commit rather than do a new one04:28
that is not a big deal when you get into git04:29
webchick yeah?04:29
dreiss left04:29
comcor_ joined04:29
webchick blueshift: now imagine you're talking to someone who's never seen a command line before and works primarily in Photoshop and Dreamweaver on Windows. Is it still not a big deal? :D04:29
blueshift not sure how the push errors work but I assume you can send them some text?04:29
v0n left04:29
webchick Yeah, I guess there's something called a … well it says in the issue somewhere. "pre-merge" or something04:29
hook04:29
comcor left04:30
blueshift how are they going to use git w/o a command line?04:30
webchick blueshift: misys and tortoisegit04:30
apparently04:30
or ide integration04:30
lots of ways04:30
they're web developers. they're very, very crafty at getting around having to learn stuff. ;)04:30
it's an always interesting time seeing how they can stuff up our CVS repo. ;)04:31
terinjokes webchick: some of us love learning new stuff04:32
webchick me too. :D04:32
blueshift I'm not sure git is really compatible with people who aren't prepared to learn it to a moderate extent. although it is getting friendlier as time goes on04:32
webchick but for a lot of people, it's pulling teetht o get them to contribute their code back, so we need to make it as easy on them as possible.04:32
blueshift: yeah, there will definitely be a learning curve. we've acepted that. but re-writing commit history doesn't have an analog in anything else I can think of, so it's a tricky thing to explain, IMO.04:33
I can see it being very useful04:33
but I can see it also confusing the living crap out of a good 20-30% of our contrbutor base04:33
blueshift webchick: if you want to make it really easy, you could let them push to a staging repo which sanitises their commit and rewrites it if needed, by scripts04:33
webchick (if not more)04:33
blueshift: So re-write the commit on the server side..?04:34
blueshift their commit will arrive but be out of sync with what they pushed, the individual dev will have problems later on04:34
but, you get their work and.. hmm.. the more I think about it the more problems that would probably cause04:34
webchick Right.04:34
blueshift it makes it easy *once*. :D04:34
webchick AFAIK our git lead has ruled out that option for the reasons you state04:34
Yep. :D04:34
SandCube left04:34
guilhermeblanco left04:37
blueshift you could bundle a script which rewrites history to remove offending files and put that in the tree04:38
then the push error could say "you messed up, run xyz.sh and try again"04:38
mdel left04:38
blueshift or history-fixup.bat for the windows people. they can even run it from explorer.04:39
nadavoid left04:43
dumb_ass joined04:44
dumb_ass1 left04:47
batok left04:47
tstclair left04:51
mdel joined04:51
alester joined04:58
bemson joined04:59
freimatz joined04:59
bemson does git auto-generate docs from commits?04:59
I'm creating js projects, and currently employ jsdoc comments...05:00
girishr joined05:01
Mage left05:01
bambule joined05:01
bemson newb here - does git auto-generate docs from commits?05:01
jonmasters left05:02
bemson I'm working on some js projects and use jsdoc comments for documentation05:02
How does this work with wikis, read-mes, etc?05:02
There seems to be no documentation on how to integrate/trigger documentation05:02
hilem left05:03
zenazn joined05:04
jspiros left05:04
jspiros_ joined05:04
frogonwheels_ bemson: hmm.. the git-cola I know has some kind of auto-generate rlease notes thing happening'05:04
git-cola project I mean.05:04
bemson frogonwheels_: fair enough and I expected/heard as much - I'm just trying to get a handle on documenation/tutorials to this end05:05
Or is it all, just wiki and what I manually upload, regarding docs?05:05
frogonwheels_ bemson: I wrote a _batch_ file to generate the developer release notes for our meetings :)05:05
bauruine left05:05
blueshift bemson: when do you want to generate docs? locally on the dev machine when they commit, or on the server when they push?05:06
frogonwheels_ bemson: Git-cola has auto-generated release notes collated by developer.05:06
bemson but what about API docs? YUI is on git, and they use jsdoc comments - does git auto-generate these?05:06
frogonwheels_: I guess when I commit05:06
I'm definitely not talking about release notes05:06
I'm learning git, but it seems it would not auto-update/generate API docs for a project05:07
frogonwheels_ bemson: ooh ... API docs.. just put a post-receive hook on the server.. or a ??post-commit?? hook that could, I guess regeenrate api docs for that file??05:07
blueshift well, have a look at the hooks05:07
frogonwheels_ bemson: you have hooks.05:07
bemson frogonwheels_: ok, so I can't do this all online? I have to use the terminal?05:07
blueshift you can write or adapt a hook to do what you want (whatever that is)05:07
bemson @all, didn't know about "hooks"! :-)05:07
hilem joined05:08
bemson I'll look into that, and see how to set this up on my terminal - I was hoping to just cut/paste and save and git would do the rest05:08
(yes, I'm that lazy)05:08
hasenj left05:08
bemson many thanks for the tips - I'll look into this in the morrow :-)05:08
blueshift I'd think you want it to be server side.. a commit hook will slow down commits and be annoying05:08
bemson blueshift: duly noted05:08
thanks again all!05:08
lata05:08
bemson left05:09
blueshift maybe a push hook if you want to enforce some doc build sanity checks05:09
hum05:09
madduck how do I test whether git-pull would update the checkout?05:13
frogonwheels_ madduck: you can always git-fetch and manually merge it.05:13
madduck one trivial way might be to fetch, and then to compare05:13
git show --pretty=format:%H HEAD origin/master05:13
but I cannot stop git-show from printing the diffs05:14
oh!05:14
jonmasters joined05:14
madduck if 'git log --pretty=format:%H HEAD..origin/master' outputs no lines…05:14
Guest30979 joined05:15
frogonwheels_ madduck: you probably also want to know if you're going to merge05:15
blueshift madduck: you could compare merge-base to remote/branch05:16
frogonwheels_ madduck: whcih I guses is if the common ancestor isn't the same as the tracking branch05:16
madduck frogonwheels_: nah, not in this case.05:16
in this case i just want to know if a git-pull would do anything at all05:16
frogonwheels_ madduck: which is what blueshift said :)05:16
blueshift madduck: just looking at the output from git pull isn't good enough I supose..?05:17
er, git fetch05:17
those names are pretty shitty05:17
fetch/pull ambiguity05:17
madduck blueshift: frogonwheels_ well, the log check is cleaere I think05:18
adxp-2`` left05:19
adxp-2`` joined05:19
doener left05:20
doener joined05:20
dumb_ass left05:20
hasenj joined05:21
whatdoesitwant joined05:21
maleknet joined05:21
friskd left05:22
webchick headed off. thanks for the feedback, folks!05:23
webchick left05:23
bambule___ joined05:26
bambule left05:26
MacHat left05:27
MacHat joined05:27
mattikus joined05:27
mar77i joined05:29
brothers joined05:30
gigamonkey left05:31
slonopotamus joined05:31
hakunin joined05:32
Guest30979 left05:33
hakunin left05:35
hakunin joined05:35
brothers left05:36
girishr left05:36
nataraj joined05:37
nataraj Hi05:37
JonathanT joined05:37
nataraj how to get a datewise sorted list of branches?05:38
choey joined05:38
Modius left05:39
BryanWB left05:39
blueshift nataraj: date the branch pointer changed, or the date of the commit it points to?05:41
johnw joined05:41
blueshift if you want the former, ls -t .git/refs/heads05:41
hilem left05:42
nataraj date of creation05:42
amerine joined05:42
nataraj or else a tree like display of branches05:43
blueshift date of the first commit on that branch? git doesn't record that05:43
johnw left05:43
blueshift oh that you can do. gitk.05:43
johnw joined05:43
apsysoev joined05:43
ignatp left05:44
nataraj blueshift, need to find out which branch derives from which05:44
blueshift I don't know a simple way to do that. someone may05:45
ToxicFrog left05:45
blueshift have you tried git show-branch?05:45
mattikus left05:46
blueshift or maybe05:47
git log --graph --decorate --pretty=oneline --abbrev-commit05:47
hasen joined05:49
whatdoesitwant left05:49
hasen_ joined05:50
jrmuizel left05:50
girishr joined05:51
terinjokes it looks like I really should have been using GIT_SSH05:51
jrmuizel joined05:51
hasenj left05:52
hasen left05:53
blueshift nataraj: the problem is that git only thinks of the tip of a branch, it doesn't know what branches earlier commits were05:54
Titosemi joined05:57
hasen_ left05:57
poseid joined05:58
nuoHep joined05:58
nataraj blueshift: need to search for a string in the logs , spanning all the branches05:58
i meant commits05:58
Eaven left05:59
bauruine joined06:00
giallu joined06:01
doener nataraj: git log --grep=whatever --all ?06:02
MacHat_ joined06:02
MacHat left06:03
MacHat_MacHat06:03
nuoHep left06:04
nataraj doener, grep works06:06
Magicmat joined06:06
slonopotamus left06:06
mastroDani joined06:07
slonopotamus joined06:07
nataraj would like to get last commit dates of all branches, (getting old you know ;)06:11
nuoHep joined06:11
ph^ joined06:12
jrmuizel left06:13
madewokherd left06:13
elitexray joined06:13
lanthan_ joined06:13
nuoHep left06:14
Nemurenai joined06:14
doener nataraj: git for-each-ref --format='%(refname:short) %(committerdate)' refs/heads06:15
cbreak_work joined06:15
lanthan left06:16
priidu_ joined06:17
priidu joined06:17
apsysoev1 joined06:17
ari-__-eari-_-e06:17
slonopotamus left06:17
d1zzy left06:18
uau left06:18
adxp-2`` left06:19
adxp-2`` joined06:19
roop joined06:19
bauruine left06:19
nataraj doener:how to specify a date format? %(committerdate:"dd-mm-yy")?06:19
apsysoev left06:20
jamescarr left06:20
Schmallon joined06:22
jspiros_ left06:22
jspiros joined06:22
bambule___ left06:22
MacHat left06:23
\ask_ joined06:23
paradoxx joined06:24
\ask_ left06:25
\ask_ joined06:25
\ask_ left06:25
trodrigues left06:25
d1zzy joined06:25
trodrigues joined06:26
hagebake joined06:26
hagebake left06:26
hagebake joined06:26
hagabaka left06:27
eletuchy left06:29
eletuchy joined06:30
vu3rdd joined06:32
opalka joined06:34
dunny left06:36
rretzbach left06:37
hagebake left06:37
giallu left06:38
jamescarr joined06:38
johnw left06:39
hasenj joined06:40
zenazn left06:41
Amorphous left06:42
urkud joined06:42
rayners left06:44
alester left06:45
Magicmat left06:45
airborn joined06:46
Magicmat joined06:47
ChrisBuchholz joined06:48
eletuchy left06:52
[Po]lentino joined06:52
marc_kdab joined06:55
joevano left06:55
Rene joined06:55
Rene hi all!06:55
jason237 joined06:55
Rene Is it possible with a git command to push to a server a local git repo, and that this repo would be initialized and added under eg. /var/lib/git? I could not find any notes about this..06:56
Sieben KIKOOOOOOOOOOOO RENE !!!!!!!!!!!!! :o)))))))))))06:56
Rene :-)06:57
what i found was to log in with ssh, create that directory, and do a bare-init..06:57
Amorphous joined07:00
hebz0rl joined07:00
Mage_Dude_ Rene: Are you not using a repository manager?07:00
Rene Mage_Dude_, what's a "repository manager"?07:01
xiong joined07:01
leo2007 joined07:01
Mage_Dude_ Rene: It's a system that helps you manage all your repositories including giving access rights to specific users.07:01
cbreak_work Rene: you can only push to git repositories, so if there's nothing inited, you can't push07:01
Rene ahaa..07:01
ok, so to my question i have to log on with eg ssh, do a eg --bare init and start from there?07:02
cbreak_work you could use a program that creates empty repositories in places where you try to push to I guess.07:02
for example07:02
yes07:02
Mage_Dude_ An exception to that... is using something like 'gitolite' which allows you to declare a repository exists...then push to it07:02
Rene ok, that's then ok07:02
enherit joined07:03
cbreak_work no exceptions :)07:03
Titosemi hey guys, any good doc about integrating git and kdiff3 as the merge & diff tool ?07:04
Tommy[D] left07:05
Rene cbreak_work, this is really fine with me :-) I just wanted to check that i did not any unnessesary steps :-)07:05
enherit left07:05
Tommy[D] joined07:06
enherit joined07:06
nuoHep joined07:07
skoop joined07:08
joevano joined07:09
sitaram Titosemi: why do you need docs? "git config diff.tool kdiff3" and similarly merge.tool07:09
joeytwiddle joined07:09
Titosemi sitaram: if i make git diff, it just shows like always and if i make git difftool i think t doesnt find it07:13
i guess it´s not in path07:13
amerine left07:13
Rene thanks Mage_Dude_ and cbreak_work for your help! cu!07:13
Rene left07:13
nuoHep left07:13
Mage_Dude_ Oh... I was thinking of emailing you sitaram.07:13
Nemurenai left07:14
ethy joined07:15
adxp-2`` left07:15
adxp-2`` joined07:15
Mage_Dude_ sitaram: I was searching through GitHub and Google Groups trying to see if the issue comes up but I can't seem to find any talk of the issue. That means it's my mistake. It's fixed now but didn't know if you'd like teh solution or whether it's important or not.07:15
jexmexjexmex_07:16
opalka left07:19
vu3rdd left07:20
poseid left07:20
sivy left07:20
opalka joined07:21
giallu joined07:22
airborn left07:22
airborn joined07:23
eletuchy joined07:26
workmad3 joined07:27
chittoor joined07:29
Schmallon left07:30
galderz joined07:32
napster_123 joined07:32
Heimidal left07:32
napster_123 hi, i see many changes in my file's diff that are just due to line endings "^M"07:32
is there any way to get rid of it07:33
i'm using giv-svn on windows07:33
sgronblo Is it possible to stash untracked files?07:34
nuoHep joined07:36
opalka left07:36
opalka joined07:37
valeo joined07:39
mtkd joined07:39
mtkd_ joined07:40
nuoHep left07:40
Paraselene_ joined07:40
mtkd left07:41
ChrisBuchholz left07:42
hasenj left07:43
ntoll joined07:43
cbreak_work sgronblo: you can start tracking them07:44
Aaaarg left07:45
napster_123 cbreak_work, any thing about "^M" stuff?07:45
cbreak_work, i see a lot of fake changes which is really annoying.07:46
trivol joined07:46
mtkd_ left07:46
blueshift napster_123: maybe not much use to you but I fixed all the windows line endings in my history yesterday with this command, under unix:07:48
git filter-branch --tree-filter 'find . -path ./.git -prune -o -type f -print0 | xargs -0 sed -i "s/\x0d//;s/[ \t]*$//"' HEAD07:48
FauxFaux left07:48
blueshift that also strips trailing whitespace.. and may damage any binary files you have in git07:48
programble left07:48
choey left07:49
napster_123 blueshift, have you tried this command? did it successfully work for you?07:49
blueshift napster_123: you can either store files with windows line endings under git, or better may be to store unix line endings and configure git to auto convert to windows style when checking out on windows07:49
napster_123 blueshift, but then i'll also need to configure it to change line-endings back to unix style while committing changes right?07:50
blueshift yes it worked for me but may not be what you want. you should understand that it will rewrite history and what that means07:50
FauxFaux joined07:50
blueshift correct. the one config switch does both07:50
napster_123 blueshift, yeh that's why i re-asked you about that command07:50
blueshift, ok and what's that nice config switch?07:51
v0n joined07:51
charon napster_123: which side has the CRs? is the diff you're seeing that the repo has LFs and your editor saves CRLF, or is it the other way around?07:51
blueshift can't remember, sorry :) there are several ways to do it though. there's a global auto eol thing, and then per wildcard or per file attributes07:51
sitaram Mage_Dude_: I didn't understand the context. What were you searching for?07:52
napster_123 charon, i'm not exactly sure about what to call this but i see "^M" append to eol as mine made changes to the file07:53
shiba_yu_ joined07:53
blueshift napster_123: related, your editor sucks.07:53
workmad3 left07:54
napster_123 blueshift, i think platforms' differences suck07:54
charon napster_123: in that case it should be sufficient to set core.autocrlf = input, see man git-config. note that i have never actually used this feature because i use a real editor on a real OS, so YMMV, but rewriting history won't do any good.07:54
Gitbot napster_123: the git-config manpage can be found at http://git.or.cz/man/git-config07:54
charon (also, running g-f-b on windows is quite silly anyway because it's so slow)07:55
blueshift napster_123: they do, but you can't change them. you can change to a better editor, though07:55
shiba_yu36 left07:55
FauxFaux left07:55
hasenj joined07:55
freshtonic left07:55
blueshift charon: rewriting history won't stop him from producing messed-up line endings, but may clean up history if some have been committed already07:56
pantsman joined07:56
Fullmoon joined07:56
LiHong joined07:58
asmega left07:59
LiHong left07:59
FauxFaux joined07:59
mtkd joined08:00
stepnem left08:00
charon shrugs08:00
charon blueshift: we'll just direct all questions about suddenly disconnected history and such things to you then :)08:01
Jaxan joined08:01
hasenj left08:01
charon it's true, if he already committed the changes it needs some rewriting, but the wording of the first line seems to indicate it's only in 'git diff' so far08:01
justin-george joined08:01
blueshift I shall go mysteriously silent when history rewrite problems arise :)08:03
_Vi left08:03
froschi1 joined08:03
blueshift though refs/original, the reflog and reset --hard are useful get out of jail free cards08:04
drizzd_ can I fool git diff into thinking that output is to the terminal, even though it's to a pipe?08:08
adxp-2`` left08:08
adxp-2`` joined08:08
zidoh joined08:08
napster_123 not sure if should feel good or not... this thing has happened to only one file of mine08:08
drizzd_ I am doing something like (git diff a; git diff b) | less -SFRX08:09
napster_123 i can go through the pain to saving my good changes to a temp file, delete the repo file and restore my changes after i checkout a fresh copy of this file08:09
drizzd_ so git turns off color, but if pass --color to diff I force it on even if it's off by default08:10
blueshift napster_123: you just need to fix the line endings on one file?08:10
most editors can do that with "save as"08:11
napster_123 blueshift, yeh.. i'm surprised none other file has been affected08:11
blueshift or document properties or somesuch08:11
or you can do it with sed or tr if you have them08:11
napster_123 blueshift, can i remove these "^M" line ending with sed/awk?08:11
anybody knows the command for that?08:11
AAA_awright left08:12
drizzd_ napster_123: note that git diff shows ^M only at the end of new changes, even if the file had CR line endings already08:13
sako left08:13
drizzd_ napster_123: sed -i 's/\r//g'08:13
napster_123 drizzd_, my problematic file has ^M appended to it even if there are no new changes.. and you know there's like 200 lines like this08:14
drizzd_ or dos2unix08:14
asmega joined08:14
drizzd_ in vi it's :set ff=unix08:15
blueshift napster_123: or, sed -i "s/\x0d//"08:15
AAA_awright joined08:15
blueshift (and then your filename)08:15
davidw joined08:16
davidw left08:16
davidw joined08:16
nuoHep joined08:17
napster_123 blueshift, drizzd_ these both command do same thing? removing the ^M from any line ending if there's any08:17
jason237 left08:18
blueshift should do. I don't know if sed understands \r but \x0d should work.08:19
make a copy of your file and try it08:19
stepnem joined08:19
napster_123 blueshift, ok08:19
Aaaarg joined08:21
nuoHep left08:21
ExtraSpice joined08:23
poseid joined08:24
hyperair joined08:24
pantsman left08:27
lhz joined08:27
ProperN[out] joined08:27
ProperN[out] left08:27
ProperN[out] joined08:27
knittl is it possible with gitk to display all branches of a remote?08:28
zz_rubydiamondrubydiamond08:29
charon knittl: given a sufficiently new git you can 'gitk --remotes=trast' etc, see the description of --remotes in man git-log08:30
Gitbot knittl: the git-log manpage can be found at http://git.or.cz/man/git-log08:30
knittl charon: yeah, i build git frequently from source08:30
ProperNoun left08:30
ProperN[out]ProperNoun08:30
knittl seems to work. thanks!08:31
mulp joined08:31
mulp hello everyone08:32
enherit left08:33
justin-george left08:33
knittl can i configure a remote to only pull a single branch?08:34
charon you mean fetch? edit the remote.<nick>.fetch line08:35
knittl i only need a single branch08:35
zrbecker joined08:35
ojii joined08:39
ojii hi everyone08:39
jason237 joined08:39
ojii I have problems setting the default push location for a branch, can someone help? for some reasons it tries to push master->master instead of currentbranch->currentbranch08:39
cbreak_work by default, it will push all matching08:42
Schmallon joined08:44
dwmw2_gonedwmw208:44
cbreak_work does currentbranch exist on the remote?08:44
psankar joined08:44
courtain joined08:45
jspiros left08:45
jspiros_ joined08:45
HG` joined08:46
gebi joined08:47
nevyn left08:47
orangemeetyou joined08:51
tizbac joined08:51
ojii cbreak_work, yes it does08:51
eletuchy left08:53
cbreak_work but git push remotename just pushes master?08:53
what does git push remotename : do? (the : means to push all matching)08:53
Theravadan left08:54
ixti joined08:54
ixti left08:54
ixti joined08:54
cbreak_work ojii: also check out man git-push, the examples section08:55
Gitbot ojii: the git-push manpage can be found at http://git.or.cz/man/git-push08:55
bluenovember joined08:56
aspotashev joined08:58
candybar left08:59
nevyn joined08:59
Sieben left09:00
workmad3 joined09:00
orangemeetyou left09:02
engla joined09:02
rindolf joined09:02
rindolf Hi all.09:02
engla left09:02
engla joined09:02
rindolf How do I tell which branch the current branch was forked from?09:02
zaytsev joined09:03
zaytsev Hi! Anybody using git for latex? I'm looking for a way to make diff wrap lines09:03
cbreak_work rindolf: not really possible09:04
charon rindolf: you can't, in general. if you're lucky your branch has an "upstream" configured, which you can see in 'git branch -vv'09:04
zaytsev I have already found --word-diff, which is of HUGE help, but... I don't want to wrap and rewrap the paragraphs manually all the time09:04
charon zaytsev: take -S out of the core.pager for that repo09:04
or manually type -S<ENTER> in less when you need it09:04
fivetwentysix joined09:05
ndim Is there a way to get a hash for all all the filesystem content a certain branch contains, regardless of what commit history and commit comments lead to that content?09:06
jtdowney joined09:06
ndim I want to find branches that are identical on the filesystem, but differ in the history.09:06
cbreak_work ndim: commits have a tree object, which is basically a hash of the content only09:06
ndim cbreak_work: That sounds just like what I need.09:07
charon ndim: you can read the tree sha1 with 'git rev-parse commit_sha1^{tree}'09:07
phryk joined09:07
phryk Hi there.09:07
adxp-2`` left09:07
adxp-2`` joined09:07
ndim charon: THanks a lot09:07
phryk I am pretty new to git, and a merge failed. What do I do? I edited the file it failed at. Now what?09:07
ndim (THough I wonder why ^{tree}, not @{tree})09:08
zaytsev charon, just added pager = "" to [core] in .git/config. Looks utterly cool, MANY thanks. I was actually under impression that it was using vim for paging because of ~ on empty lines. Are you aware of any page that summarizes nice latex tips? I'm googling them one by one... maybe there's more to it?09:08
girishr left09:08
cbreak_work ndim: I don't get the logic behind that notation either09:09
rubydiamondzz_rubydiamond09:09
workmad3 ndim: ^ is used in several places to get parts of a commit object09:09
uau joined09:09
charon zaytsev: umm, an *empty* pager?09:09
workmad3 don't know why ^ instead of a different char, but that's the way it is09:09
charon ndim: @{} is the reflog access09:09
zaytsev charon, interestingly it worked :)09:09
charon zaytsev: anyway, you may also want '*.tex diff=tex' in .gitattributes09:09
cbreak_work there's @{upstream}09:09
zaytsev charon, is there a way to set this globally?09:10
From what I know .gitattributes is per repo09:10
ndim ah, reflog. well, upstream is reflog, parts of commit object are not reflog.09:10
makes sense.09:10
charon don't think so, but a core.attributesfile patch would be welcome09:10
ndim thank you all.09:10
cbreak_work upstream is not reflog :)09:10
charon ndim, cbreak_work, workmad3: and btw it's not just for commit object's "parts". you can also say foo^{commit} which guarantees that you will get a commit pointed to by foo, even if foo is an annotated tag09:11
gebi left09:11
workmad3 charon: right :) still seems to be referring to 'parts' (I don't know a better word... maybe sub-objects?) of a composite object... just not exclusively commits09:12
(and I didn't know about that notation for annotated tags, so thanks :) )09:12
ntoll left09:12
zaytsev charon, actually pager = less -FXR (w/o S) still does not wrap lines.09:12
raichoo joined09:12
vital joined09:15
project2501b joined09:15
maleknet left09:16
maleknet joined09:17
candybar joined09:17
charon zaytsev: maybe your $LESS includes -S. try adding -+S09:19
avar hrm, is there a printf() format for unsigned int?09:19
avar tries to compile git with clang09:19
jast %u09:19
actually that's not in the standard implementation09:19
oh yes, it is09:19
just missed it because the manpage is formatted in an annoying way09:20
avar hrm, odd, it'll still warn09:20
log-tree.c:297:21: warning: field width should have type 'int', but argument has type 'unsigned int' [-Wformat]09:20
"Subject: [%s %0*u/%d] ",09:20
poseid left09:21
charon avar: sounds like it's complaining about the type for the *, not the u09:22
jast for some reason the field width is supposed to be signed09:22
zaytsev charon, YESSS! Thanks!09:22
raichoo left09:22
avar ah, it's too earlie. Guess the right thing is just an (int) cast there09:23
it'll still die on this though: http://paste.scsys.co.uk/4753509:23
"usage.c:56:1: error: function declared 'noreturn' should not return"09:23
silly09:23
sagsousuke joined09:24
courtain left09:24
girishr joined09:24
zz_rubydiamondrubydiamond09:24
phryk left09:24
jast well, what part of that is line 56?09:25
avar just the } that closes the function09:25
charon i'd just assert(0, "usage_routine must not return") there09:26
disclaimer: i made up the assert() syntax09:26
cilly joined09:28
frerich The common pattern for such assertions is assert( !"Unreachable" );09:29
courtain joined09:29
avar It doesn't like that either, I think it just hates everything.09:30
johto abort();?09:30
jast what is the declaration of usagef?09:32
krawek left09:32
avar void usagef(const char *err, ...), it's a vararg09:32
charon i think the point is that it's also NORETURN09:32
jast yeah, that's what I was after09:33
you can easily satisfy the noreturn constraint by calling exit(1) at the end of the function09:34
FauxFaux Apparently I'm in the middle of a rebase from aaages ago, but git rebase --abort reports "error: Ref refs/heads/imp is at bd.. but expected 5a..; fatal: Cannot lock the ref 'refs/heads/imp'. Could not move back to refs/heads/imp", probably because I've fiddled with that branch in other ways. How else can I get out of a rebase?09:34
jast FauxFaux: remove the .git/rebase-apply directory (and manually recover anything that the partial rebase might have lost back then, if possible and if you actually want to recover stuff)09:35
FauxFaux Deleting the branch has unsuprisingly made it more angry. ¬_¬09:36
ereslibre joined09:36
FauxFaux That gets it, cool, thanks.09:36
engla left09:37
maleknet left09:38
toni left09:38
avar Ah, I see the problem. It's defining NORETURN on __GNUC__09:38
workmad3 left09:40
cbreak_work left09:41
charon avar: but then usage() wouldn't be noreturn either09:42
avar it's just hating the void __attribute__((__noreturn__)) prototype, it needs to just be void09:43
ojii left09:44
avar This works: http://paste.scsys.co.uk/4753809:46
v0n left09:46
cbreak_work joined09:47
charon which is even wackier since now it apparently lets you a pointer to a function *not* declared __noreturn__ into a pointer field which *is* declared __noreturn__09:48
comawhite joined09:48
charon anyway my point was that if it properly ignored the __GNUC__ bit, then there shouldn't have been a problem to begin with09:48
since then none of the usage() and friends would actually be __noreturn__ so there's nothing to complain about09:48
Textmode joined09:49
charon well, unless it pretends to be MSC of course.09:49
avar nope, it's pretending to be __GNUC__, I checked manually09:49
leo2007 left09:51
toni joined09:51
charon at second reading i just think it completely ignores __noreturn__ on pointers09:52
that should be consistent with what you're seeing09:53
maleknet joined09:53
avar otoh I can't build the perl stuff because I confusingly get this:09:56
v perl (clang) $ /usr/bin/perl Makefile.PL PREFIX='/home/avar'09:56
Only one of PREFIX or INSTALL_BASE can be given. Not both.09:56
on master, maybe our Makefile.PL doesn't work with some new EU::MM09:57
tatsuya joined09:57
napster_123 i think git config core.whitespace cr-at-eol was something i was looking for09:58
tomoyuki28jp joined09:58
tomoyuki28jp How can I get a list of remote branches?09:58
schweizer git branch -a09:58
tomoyuki28jp schweizer: thanks!10:00
rchavik left10:02
adamholtadamholt_away10:03
adamholt_awayadamholt10:03
adxp-2`` left10:04
adxp-2`` joined10:04
jason237 left10:05
froschi1 left10:05
yngress joined10:05
whatdoesitwant joined10:06
rousing joined10:06
nuoHep joined10:10
scarabx joined10:11
bauruine joined10:12
fivetwentysix left10:12
hipe joined10:13
kipras joined10:13
intripoon joined10:13
Magicmat left10:14
happypolla joined10:14
steph021 left10:15
Guest31675 left10:16
andyj left10:21
zorzar joined10:24
shiba_yu_ left10:24
jtdowney left10:24
asic joined10:27
zorzar_ left10:27
asic left10:27
rubydiamondzz_rubydiamond10:30
avar /w 410:30
sent a patch for the perl thing, odd that nobody saw it before10:30
beni- joined10:31
courtaincurtana10:34
intripoon left10:35
priidu left10:35
happypolla left10:36
hipe left10:36
priidu joined10:36
priidu_ left10:38
parasti joined10:40
priidu_ joined10:40
lemmy joined10:43
marcob joined10:43
lemmy hi, is it possible to selectively check out a subfolder from a git tree? E.g. smallSubFolder/ from hugeGitRepo/10:44
maxb I'm fairly sure it isn't10:47
Yuuhi joined10:47
napster_123 left10:50
avar no10:51
formale joined10:52
aspotashev left10:54
bentob0x joined10:54
sagsousuke left10:54
kipras left10:54
jetienne_ joined10:55
bauruine left10:56
tvw joined10:58
herdingcat joined10:58
herdingcat left10:59
kumbayo joined10:59
fr0sty left10:59
jetienne_ q. i got submodules in a repo, and i would like to move the folder location inside the repo, how can i do that ?11:00
rindolf jetienne_: git mv11:00
gebi joined11:00
fr0sty joined11:00
jetienne_ rindolf: ?11:01
rindolf jetienne_: that's the answer to your question.11:01
jetienne_: use git mv11:01
jetienne_ rindolf: it will modify .submodule and .git/config ?11:02
rindolf jetienne_: what?11:02
jetienne_: what is .submodule?11:02
FauxFaux Good to see that neither ditz nor ticgit work at all (due entirely to being written in Ruby), time for a project in a serious language, like cmd.11:02
froschi1 joined11:03
jetienne_ $ git mv contrib/vendor/underscore .11:04
fatal: source directory is empty, source=contrib/vendor/underscore, destination=underscore11:04
rindolf: git mv doesnt seem to understand submodule... or im missing something11:04
Elfe joined11:05
Elfe_ left11:06
bloopletech joined11:08
aziz_ joined11:08
adxp-2`` left11:12
adxp-2`` joined11:12
picardo12 joined11:13
Schmallon left11:13
MattDiPasquale joined11:13
Aikawa joined11:13
intripoon joined11:14
Liberum left11:16
MattDiPasquale left11:16
tcurdt joined11:17
aspotashev joined11:18
jim0203 joined11:20
_Vi joined11:21
daethorian left11:27
t0rc joined11:30
ixti left11:31
ixti joined11:32
mar77i left11:33
d0k joined11:35
jason237 joined11:35
jfb joined11:37
Schmallon joined11:37
alinalin-food11:38
jfbDjiDji11:38
bloopletech Is there a way via the git:// protocol to get the size of the repo without doing a full clone?11:39
I.e. the "xxMB to send" when you do a clone?11:39
interferon joined11:42
_Vi left11:42
interferon i have a branch B originally created from A. I'm in the B branch and i have a number of unstaged changes. i want to apply just two of these changed files back to the parent branch A. how can i do this? it won't let me switch branches with local changes and git stash stashes all unstaged files but i want to have my two relevant changes left alone.11:43
FauxFaux At worst, just commit them, switch, and cherry-pick or git checkout B path/to/file11:44
crab interferon: commit those two changes, and cherry-pick the commits on A11:45
frerich You can switch branches with unstaged changes, no? I do that all the time.11:46
beni- left11:46
frerich I suppose it might be a problem in case switching a branch involves checking out a file which was modified.11:46
engla joined11:48
engla left11:48
engla joined11:48
psankar left11:49
whatdoesitwant left11:53
whatdoesitwant joined11:54
hakunin left11:54
Liberum joined11:54
Dave^| joined11:57
saidi joined11:57
snitko joined11:57
t0rc left11:58
frakturfreak_frakturfreak11:58
timotei joined11:59
timotei is any way I can FORCE git to make eol style to be unix?11:59
automatically on commit?11:59
coderdad left11:59
jetienne_ q. i got submodules in a repo, and i would like to move the folder location inside the repo, how can i do that ?12:00
masonkramer joined12:00
workmad3 joined12:00
rindolf left12:00
bremner left12:02
airborn left12:03
luis timotei: I think you want core.autocrlf=input12:03
timotei hmm, ok, I'll checkit12:03
jetienne joined12:04
khelll joined12:09
ToxicFrog joined12:10
valeo left12:11
becomingGuru joined12:11
saidi jetienne_, maybe git mv12:11
alin-foodalin12:13
blaines joined12:14
blaines left12:14
jetienne saidi: several people told me that: but git mv submodule1 submodule2 deosnt work. and git mv doesnt talk at all about submodule12:15
ne0futur left12:16
zrbecker left12:16
scarabx left12:17
NetHawk left12:17
cubuanic joined12:18
adxp-2`` left12:18
adxp-2`` joined12:18
charon jetienne: mv A B && git rm --cached A && git add B12:18
and send a report to [email@hidden.address] so we hopefully won't forget to fix12:18
(the above is just spelling out what 'git mv A B' should do anyway)12:18
NetHawk joined12:19
jetienne charon: and this will handle the .gitmodules and .git/config ?12:19
charon ah, no12:19
jetienne git submodule mv A B <- would love this12:19
timotei left12:19
ajpiano left12:20
jetienne_ left12:20
charon i'm also doubting my advice now, i tested and for some reason i can't understand yet the 'git add B' doesn't do anything for me12:20
jetienne B is an empty dir ?12:21
charon ah, other mistake.12:21
maleknet left12:21
charon no, i don't actually use submodules so i dug up a testing repo i had from a dir->submodule conversion test, and for some reason the submodule wasn't checked out12:21
bloopletech_ joined12:21
charon the above only works if you have it cloned12:21
nchase joined12:22
bloopletech left12:23
masonkramer which parent is which in a 2-parent merge commit?12:23
blaines joined12:23
DjiDji left12:23
Rearden joined12:24
blaines left12:24
masonkramer I merge feature into master, and HEAD is now pointing at the resultant merge commit12:24
HEAD^1 is the old master or the old feature?12:24
blaines joined12:24
picardo12 left12:25
charnel joined12:25
charnel what is svn update in git ?12:25
blaines left12:25
codejunky git pull12:25
TheNewAndy joined12:26
Woody2143 left12:26
blaines joined12:27
Woody2143 joined12:27
charnel codejunky Thanks.12:27
hohoho left12:28
wereHamster masonkramer: first parent = the branch/commit which was HEAD before you did the merge12:29
masonkramer wereHamster: thanks, I couldn't find that in the docs anywhere12:29
saidi i have committed a big binary file long time a go, and now i want to remove it from the object database, i deleted that commit by re-basing my repo, what should i do next?12:29
q0rban joined12:30
frerich Run 'git gc'; that will remove any unreachable objects from the harddisk.12:31
However, note that if you have any commits around which you might want to ressurrect later, but there is no branch which can be used to access them - those commits will be gone, too.12:31
voxpelli joined12:32
fr0sty frerich: assuming they are not referenced in the reflog12:33
Ryback_ joined12:34
interferon FauxFaux, crab: thanks, i just did git checkout B file12:34
zrbecker joined12:35
Rearden left12:35
_Vi joined12:38
interferon left12:38
IslandUsurper joined12:39
thiago joined12:39
roop left12:39
saidi frerich, that's all?12:39
frerich saidi: That's it, yes.12:39
saidi okay, thank you12:40
jrmuizel joined12:42
name joined12:47
frerich Does anybody know of a script which lets me merge git branches without explicitely having a checkout of the branch I want to merge into?12:48
teuf what would it do when there is a merge conflict ?12:48
frerich It would complain, just like normal git merge.12:49
coderdad joined12:49
teuf and fail without doing anything ?12:49
tstclair joined12:49
frerich Yes, asking me to resolve, or to run 'mymergescript --abort' (a bit like git rebase --abort) in case I want to drop my work (and the temporary checkout)12:50
jacobwg joined12:50
poseid joined12:50
teuf to resolve ? but how would you do that since the working dir isn't where the merge happens ?12:50
frerich Well it is during the merge, but not after the merge.12:50
So in case there's a conflict, the script bails out and I'm left in a detached HEAD12:51
in case everything works out, I get my working tree reset to whatever it was before I did the merge.12:51
charon frerich: you can probably build your own from clever usage of read-tree12:51
name__name__12:52
jacobwg Is it possible to prevent a file from being committed using a pre-receive hook?12:53
charon jacobwg: you cannot stop the user from committing anything (they could override the hooks) but you *can* prevent the server from accepting commits containing such files12:54
(since git-commit is local, but git-push asks the remote side to accept something new)12:54
jacobwg charon: right... makes sense, but is it possible to rewrite the commit to not include a file?12:55
In a hook?12:55
charon bad idea12:55
just reject12:55
it's most likely possible but it would violate all sorts of expectations, so don't do that12:55
jacobwg I see. I'm thinking of a repo for a CMS where it basically enforces a gitignore on the config file that contains the database passwords.12:56
Sort of like an automatic .gitignore12:56
frerich jacobwg: If you don't want people to commit a certain file, I suggest to just reject the commit. To make it less inconvenient from people who push to you, they could add the file in question to .gitignore so that a 'git add .' doesn't add it every time.12:56
jacobwg Right... probably the way I'll have to go.12:57
frerich jacobwg: I think you *can* adjust commits in a hook, but I'd refrain from doing so since *I* tend to forget about such silent things.12:57
So eventually I wonder why I can't adjust a particular file without realizing that some clever script fixes things up on the server side.12:58
In fact, wouldn't that bring your local repository and the upstream repository out of sync? You local commit includes an evil file, but the server rewrites the commit before accepting so that the file is not included. That means the server gets a different commit in his repository than you have.12:58
jacobwg Good to know... I'm trying to setup a CMS-smart repo server that would auto-detect what to commit and what not to commit.12:58
rane_ wise words12:58
jacobwg frerich: right, I hadn't thought of that...12:59
Although, you might want the config file in your local repo but not the remote one since it has a different setup... probably easier to have the remote server do a checkout and then rewrite the config file.13:00
unclown joined13:05
charon jacobwg: maybe this helps: http://thomasrast.ch/git/local-config.html13:05
jacobwg charon: Thanks! Looks like it will be helpful...13:06
flazz joined13:07
jacobwg I'm thinking now that I probably don't want the repository to have the remote config file, either, so it's probably better to just keep whatever's in the repo, and then modify the config file after an export on the app server.13:08
Nemurenai joined13:09
urkud left13:09
urkud joined13:10
jacobwg Trying to build heroku for PHP (for my projects), if that makes sense13:11
EvanR left13:11
thurd joined13:14
zrbecker left13:14
rgr joined13:15
shvedsky joined13:15
mquin left13:16
shvedsky hi. Is there any version of git, which has an option to fetch subprojects at clone stage?13:16
Like, git clone --with-subprojects git://repo/repo.git13:16
thiago git clone --recursive13:17
andrewwatts joined13:17
mquin joined13:17
saidi frerich, my repository size didn't change after doing that13:17
coderdad left13:20
coderdad joined13:20
saidi removing an big file from history by re-basing the repo should reduce that repository size?13:22
redbaritone joined13:22
saidi an/a13:22
andreaa joined13:22
thiago no13:23
you need to expire the reflog first13:23
saidi git reflog expire?13:26
thiago and set the limit to 013:27
to expire everything now13:27
then repack + prune13:27
roop joined13:27
beatak joined13:28
nataraj left13:29
jacobwg left13:31
saidi how can i set the limit to 0? i didn't find that in the doc13:32
jaql joined13:33
ph^ left13:33
giallu left13:33
urkud left13:35
formale left13:36
hoijui joined13:37
stefl joined13:38
TeckniX joined13:39
hilem joined13:39
stefl Hi all - wondered if a kind person could help me with a strange git / chef deployment problem..?13:40
Ilari_antrcomp stefl: Error messages?13:41
stefl @Ilari_antrcomp Chef checks out the current head from a repo, does various capistrano-like things and brings the new app up. I'm getting this though, which I've never seen before (repo works and I can clone it manually on the server):13:44
git ls-remote [email@hidden.address] HEAD13:44
STDOUT: 7f6029a5db06a2e22549832dcb528b997475ac62 HEAD13:44
git fetch origin && git fetch origin --tags && git reset --hard 7f6029a5db06a2e22549832dcb528b997475ac6213:44
STDERR: fatal: Could not parse object '7f6029a5db06a2e22549832dcb528b997475ac62'.13:44
b0fh_ua joined13:45
Ilari_antrcomp stefl: Could not parse object indicates it can't read that object. What does 'git fsck --full | egrep -v "^dangling"' say?13:46
b0fh_ua Hello there! Can somebody please advice - if I do have SVN and branches A and B, then those branches were "merged" in SVN with trunk using "reintegrate" feature - will it still be possible to correctly merge them with GIT?13:46
or there's no way of merging things correctly in git with SVN?13:47
stefl @Ilari_antrcomp thanks - it gives me no output. In fact git fsck —full gives me no output too. Hmm...13:48
PerlJam b0fh_ua: if you've already merged with svn, why do you need to merge with git?13:48
Ilari_antrcomp stefl: That giving no output means it didn't find any problems from that repo.13:49
b0fh_ua PerlJam: in case if I did some changes and committed them into my local GIT repository13:50
fr0sty stefl: is 'origin' == github.com:steflewandowski... ?13:50
'git ls-remote origin HEAD' ?13:50
darkskiez_ left13:50
darkskiez_ joined13:51
stefl @fr0sty yep I've just checked .git/config and all is in order...13:52
dwmw2 left13:52
urkud joined13:52
stefl @fr0sty and it gives me back the same via ls-remote13:52
dwmw2_gone joined13:52
marc_kdab left13:53
xuxc000 joined13:53
stefl Thanks guys - pretty stumped.13:54
tty1 joined13:54
Theravadan joined13:54
tty1 can someone tell me why i am getting this error: http://pastebin.com/LwBQgZK0 also what are the reprocutions and how do i fix it?13:55
psankar joined13:56
adxp-2`` left13:56
mar77i joined13:56
adxp-2`` joined13:56
MattDiPasquale joined13:56
ajpiano joined13:56
Schmallon left13:57
bilboa joined13:58
tech13 joined13:58
bilboa hi, that's me again ;)13:58
Schmallon joined13:58
Ilari left13:58
Ilari_antrcompIlari13:58
snitko left13:58
offby1 ducks13:58
tech13 is there a way to get a portion of an other git repo as a submodule? http://pastie.org/private/jey0m7whzzwinkezqb3lng13:58
fr0sty stefl: and 'git fetch origin' claims everything up-to-date?13:58
ivan-kanis joined13:59
jrmuizel left13:59
jexmex_jexmex13:59
mkramer joined14:00
smuf joined14:00
offby1 tech13: I doubt it14:01
steph021 joined14:01
freimatz left14:01
bilboa is there any way to tell git that some locally modified and committed files are pristine files from upstream (so that they get auto-merged)? (some attribute or something)14:01
stefl @fr0sty it does on my local machine. I'm using chef-solo to do the deployment on the server. It checks the repository out into a local cache, then moves the files into the deployment location. It doesn't get that far...14:02
ryanakca left14:02
stefl @fr0sty only thing I can think to do is rsync the repo to the server, then ask chef to pull from that repo instead of checking it out. This has only failed for one repo out of five… odd.14:03
ehabkost joined14:03
tty1 anyone?14:04
blaines left14:05
opalka left14:05
fr0sty tty1: faq non-bare14:06
Gitbot tty1: Pushing to non-bare repositories is discouraged. See https://git.wiki.kernel.org/index.php/GitFaq#non-bare14:06
girishr left14:06
tty1 Gitbot: it isnt a non-bare repository though, ive been using this same repo for ages and the warning just recently started showing up14:07
Gitbot: so im not sure how it could have just randomly turned itsel non-bare14:07
codejunky lol14:08
hobodave left14:08
hobodave joined14:08
tty1 err i meant fr0sty14:08
shvedsky tty1: perhaps, it was always non-bare? And new verion of git, to which you updated, started showing the warning?14:09
tty1 let me go double check jsut to make sure14:09
Ilari_ joined14:09
tty1 shvedsky: its def bare by the looks of it, i went to the repo ont he server and did an ls, and it looks liek the content i usually see in .git .. which as far as i know means its bare14:10
b0fh_ua left14:10
bloopletech_ left14:10
hobodave left14:13
JonathanT left14:14
bilboa left14:15
hohoho joined14:15
sivy joined14:15
HG` left14:16
elmob joined14:17
tty1 any ideas?14:18
am i misunderstanding what bare means?14:18
or maybe i am checking if its bare the wrong way?14:18
spaceonline left14:18
Ilari_ tty1: Well, bare is just that.14:19
leo2007 joined14:19
tty1 other than doing a ls ont he directory how can i check it is bare?14:19
bilboa joined14:19
Ilari_ tty1: See if it has .git directory in it?14:19
loincloth joined14:19
ivan-kanis i have a problem with git an a large repo, it takes all the memory on the server when compressing objects14:19
Ilari_ tty1: And if it hasn't, check that it has HEAD, objects and refs.14:20
ivan-kanis: Large files do that...14:20
IlariIlari_antrcomp14:20
Ilari_Ilari14:20
tty1 Ilari: other than doing ls14:21
see i think what happened is that i was non bare14:21
bilboa when i clone a.git, modify file.c inside, then upstream modify file.c the same way as i did, then I change again file.c i another place, when pulling it's going to conflict. if i didn't modify file.c the same way as upstream first, it wouldn't conflict. Since git uses "heuristic algorithms" to find the ancestor i would think it would make no difference. Any way to override this?14:21
tty1 but i had just copied the .git contents out to make it look bare14:21
but i think it still thinks its non-bare as a result14:21
ph^ joined14:21
saidi left14:21
yngress left14:22
wereHamster bilboa: which of the two changes conflicts? Both? Or only the second change?14:22
|REM| joined14:22
ivan-kanis Ilari: thanks14:22
TheNewAndy left14:22
mtkd left14:22
cubuanic left14:22
mtkd joined14:22
bilboa wereHamster, it's my yesterday's problem, only the first one conflict actually14:23
Ilari ivan-kanis: Basically, RAM usage is 2 * largest file + some quasi-constant.14:23
vital left14:23
tty1 assuming this is what happened, how do i make a repo that thinks its non-bare think it is bare?14:23
wereHamster bilboa: and are you sure you edited it the exact same way upstream did? Do the two conflict hunks look the same?14:23
tty1: git config core.bare true14:24
bilboa wereHamster, maybe i didn't explain precisely enough in fact:14:24
wereHamster, on linux-2.6.git, there was a commit made locally with a newer linux version, then new updates have been pulled from upstream and these updates conflict because there's been more changes in between (upstream changes)14:24
that is, upstream made the same changes, then in later commits modified them again14:24
tty1 wereHamster: do i have to do that from the server itself, or is it done ont he client side? and if its done on the client side will it be applied tot he server when i push?14:24
wereHamster tty1: in the repo you want to amke bare14:25
tty1 thanks14:25
i think that did it...14:25
bilboa wereHamster, at this point i pull upstream, and the files conflict - but the changes have been integrated upstream already (and modified again upstream)14:25
charnel left14:25
tty1 wereHamster: how could i confirm it worked? is there some way i can double check from the client side?14:25
ivan-kanis Ilari: thanks again that really helps14:26
darkskiez__ joined14:26
rousing left14:26
apsysoev1 left14:26
darkskiez_ left14:26
Aaaarg left14:26
spearce joined14:27
WebDragon left14:28
wereHamster bilboa: so.. how do the conflict hunks look like? Do they differ?14:28
if yes than it means it's a genuine conflict14:28
bilboa the hunk differs; but i'm not sure if you understood me14:29
frakturfreak_ joined14:29
bilboa file.c has some piece of code inside, it gets updated and comitted locally, the exact same update is made upstream and committed14:30
jrmuizel joined14:30
ivan-kanis the largest object is 100M however git takes 4G ...14:30
bilboa then upstream changes this piece of code again, and commit it14:30
then it is pulled and conflicts - the hunk has to look different since upstream has changed it further14:30
ari-__-e joined14:30
wereHamster bilboa: and you don't undersdtand why it causes a conflict?14:30
bilboa in a 3 way merge, if the file was not modified locally, it would be automatically merged with fast forward14:31
(even if theres a different hunk)14:31
Ilari ivan-kanis: Maybe some large file has gotten committed and then "removed"?14:31
jspiros_ left14:31
jspiros joined14:31
frakturfreak left14:31
wereHamster bilboa: there would be no 3-way merge if the file wasn't modified locally14:31
ivan-kanis Ilari: i don't think so, it's a repo that's been converted from StarTeam14:32
CoinOpeBoy joined14:32
bilboa wereHamster, well the thing is i want the file to be "fast forwarded" and the local commit to be ignored, or the merge to be replayed properly in order from upstream so that it does not conflict14:32
Ilari ivan-kanis: The types and sizes of objects can be obtained from: "git rev-list --branches --tags --objects | cut -b 1-40 | git cat-file --batch-check". The third column is size.14:32
ivan-kanis: What's the biggest value there?14:33
munichlinux joined14:33
bilboa it seems like it merges HEAD from upstream without looking at commits in between (this is probably how git works since it doesnt use any attribute to store last pull)14:33
mspitsc joined14:33
wereHamster bilboa: you want to ignore all local changes? Or only those to that particular file?14:33
bilboa i want to ignore only the changes made by this commit (it affects 300 files ><)14:33
mspitsc left14:33
wereHamster bilboa: revert that commit, then merge14:33
ari-_-e left14:34
bilboa wereHamster, as far as i understand, git-revert creates a new commit that reverse the effect of the earlier commit, wouldn't i get the same problem next pull?14:35
that is, the very next pull will work, then upstream will change a few times and it will conflict again, won't it?14:35
wereHamster bilboa: no14:35
bilboa does that heuristic algorithm see theres a commit record "type revert" somehow?14:36
wereHamster well, it's possible. BUt then you have no other choice than fixing the conflicts manually14:36
no14:36
bilboa hmm all i found to solve this was git rebase -i and delete the commit, unfortunatel its a pretty old commit and rebase eventually fails with a nonfixable error14:36
paradoxx left14:37
sivy left14:37
vals_tango_14:37
bilboa i feel like i'd better extra a patch of the current state and apply it on top of a fresh clone, so that theres no conflicts on files i don't modify in the future14:37
ixti left14:37
bilboa however it means losing history14:37
sivy joined14:37
wereHamster you could merge --ours to avoid losing the history14:37
|REM| hey guys. I'm setting up Git and moving from SVN. What's the best frontend for Git?14:38
wereHamster |REM|: git14:39
charon bash ;)14:39
uau left14:39
bilboa wereHamster, hmm, if i get that right, i make a new branch (or clone) and i merge --ours from my current repos/branch and that takes only the side which is modified by me and keep the modifications as commits?14:39
|REM| ha. ok sounds good thanks14:39
charon |REM|: make sure you use the bash (or zsh, if that's your thing) completion and prompt scripts14:40
bilboa |REM|, if you mean web front-end somehow, there's git-web14:40
slonopotamus joined14:40
tizbac left14:40
|REM| yeh, i was refering to the web frontend. Does git work with apache like svn?14:41
wereHamster bilboa: sorry, it's merge -s ours. And the descriptino from the man page: This resolves any number of heads, but the resulting tree of the merge is always that of the current branch head, effectively ignoring all changes from all other branches.14:41
slonopotamus |REM|: git doesn't need apache, it has own very efficient server14:41
|REM| ok cool14:41
thats what i was wondering14:41
uau joined14:41
|REM| thanks again for the info14:42
bilboa |REM|, git-daemon serves git without apache but its not a web front-end14:42
|REM|, git-web requires a web server afaik14:42
git-daemon let you serve files faster than via http, without requiring ssh (i use it for anymous checkouts) for example, git-web is an interface like http://git.kernel.org/<some git repos>14:43
wereHamster, im not sure to make sense of it to be honest, i will just try lol14:43
wereHamster, thanks by the way14:43
wereHamster bilboa: you make a fresh clone, apply all the patches you want so that the tree looks just like you want it to14:44
bilboa: then you merge -s ours your old history14:44
kukks joined14:44
ivan-kanis Ilari: i'll tell you as soon as it finishe cloning...14:46
radarek joined14:46
smuf_ joined14:46
MattDiPasquale left14:47
MattDiPasquale joined14:48
smuf left14:49
Ilari ivan-kanis: If you have access to server, run it on server?14:49
tureba joined14:51
becomingGuru left14:51
project2501b left14:51
letas left14:53
tstclair left14:54
mfacenet joined14:54
fod left14:58
sagsousuke joined15:00
hakunin joined15:01
ivan-kanis Ilari: 3033402415:01
khelll left15:01
ivan-kanis does that mean I have a 30G file ?15:01
wereHamster MB15:02
Ryback_ left15:04
WebDragon joined15:04
MattDiPasquale left15:04
MattDiPasquale joined15:04
Ryback_ joined15:04
redbaritone left15:07
khelll joined15:07
second left15:08
zimbres joined15:09
yaotti_aw joined15:09
yaotti_awyaotti15:09
radarek left15:09
|REM| left15:09
MattDiPasquale left15:09
mar77i left15:09
Ilari ivan-kanis: Hmm... Is the repo extremely large in number of objects, revisions or files?15:09
khelll left15:10
opalka joined15:11
beni- joined15:11
bilboa left15:12
hobodave joined15:15
akahn joined15:15
akahn Is there a way to remove a file from a commit I just made? I didn't mean to include it.15:15
cbreak_work left15:16
adamv joined15:16
wereHamster akahn: git checkout HEAD~1 -- <file>; git commit --amend; git checkout HEAD@{1} -- <file>15:16
paradoxx joined15:17
alester joined15:17
fmardini left15:17
akahn wereHamster: cool, thanks15:17
ivan-kanis Ilari: 174798 objects15:17
charon or just 'git reset HEAD^ -- <file>; git commit --amend' which avoids the reflog dance15:17
Ilari ivan-kanis: That's not pracicularly lot.15:18
LeLutin joined15:18
bremner joined15:18
urkud left15:20
urkud joined15:20
ivan-kanis Ilari: shall I count the files?15:20
nchase if my working directory is clean, why would git rebase -i HEAD~5 return "Working tree is dirty" ?15:20
LeLutin_ left15:20
zz_rubydiamondrubydiamond15:21
wooden joined15:21
zaytsev left15:21
slonopotamus nchase: submodules?15:22
razvand joined15:22
davidw__ joined15:23
davidwGuest1578815:23
nchase slonopotamus: not using any submodules15:23
davidw__davidw15:24
davidw left15:24
davidw joined15:24
ivan-kanis Ilari: 17564 files15:24
charon nchase: run 'git update-index --refresh'. if after that your tree is still dirty, i'd have to agree with git-rebase15:25
xuxc000 left15:25
altrux joined15:25
mfacenet left15:25
Guest15788 left15:26
nchase hmm15:26
thurd left15:27
vital joined15:27
MattDiPasquale joined15:28
a_l_e_x joined15:28
IslandUsurper left15:29
ivan-kanis Ilari: the largest file is 125M, i don't see why it's taking 4G of memory on the server...15:29
WebDragon nchase: you using the setgitperms.perl program to track permissions via hooks ?15:29
nchase WebDragon: no15:31
WebDragon: no idea even what that is :)15:31
WebDragon something I ran into a while back myself. this patch fixes the problem with setgitperms.perl leaving the working tree dirty http://fpaste.org/4HTk/15:31
it's a contrib/hooks/ mod that tracks ALL perms not just +/-x15:32
for some webdevel I need to make sure to preserve the directory perms on some things as 77715:32
easier to have git do it than write custom makefiles to do it after the fact15:32
marc_kdab joined15:33
nchase yeah15:33
zaytsev joined15:33
stringoO joined15:34
tizbac joined15:34
aep joined15:34
andrewwatts left15:34
WebDragon but if you're not using it, then something else caused it.15:34
nchase yeah15:34
skoop left15:34
nchase the mind wonders15:34
andrewwatts joined15:35
xiong left15:35
montylounge joined15:35
nchase confusing15:36
jason237 left15:38
adxp-2`` left15:38
adxp-2`` joined15:38
ivan-kanis left15:38
WebDragon did charon's suggestion work, though?15:39
paradoxx left15:39
altrux left15:40
second3 joined15:41
j0shua joined15:42
paradoxx joined15:42
tedoc2000 joined15:43
marc_kdab left15:43
marc_kdab joined15:45
nchase WebDragon: no15:46
mumboww joined15:47
giallu joined15:48
mumboww greetings everyone15:48
offby1 wonders if mumboww is related to the tasty Chinese dumpling15:48
mumboww is there a command that can show when a particular line was introduced in a source file?15:48
DjiDji joined15:48
rane_ git-blame15:49
offby1 or git annotate.15:49
Similar but subtly different.15:49
mumboww oh cool15:49
thanks guys15:49
engla left15:49
yaottiyaotti_aw15:50
raichoo joined15:51
zz1 joined15:51
zz1 left15:52
paradoxx left15:53
hipe joined15:53
priidu_ left15:53
andrewwatts left15:55
letas joined15:56
zorzar_ joined15:57
priidu_ joined15:58
letas in my exclude file I have this: /app/connect/setup.xml but git still tracks the file, any idea why?16:00
oops without the first /16:00
wereHamster letas: rm --cached app/connect/setup.xml; commit16:01
letas werehamster - just in case using git rm or just rm ?16:02
wereHamster yes, and git commit instaed of commit16:02
git rm that is16:02
letas ok - thanks let me try it now16:02
parasti left16:03
DjiDji left16:03
davidw left16:04
Heimidal joined16:05
EricInBNE left16:05
Jaxan left16:06
Eaven joined16:07
blaines joined16:12
[Po]lentino left16:13
blaines left16:14
froschi1 left16:14
friskd joined16:14
mw joined16:15
mw left16:15
mw joined16:15
friskd left16:15
sixteneighty joined16:15
offby1 it was the same in #svn -- people just don't "get" that excluding a file has _no effect_ if it's already checked in16:15
tjholowaychuk joined16:16
[Po]lentino joined16:18
hipe left16:18
lanthan_ left16:19
fxn joined16:19
fxn I forked a project in github and did some commits... can I format-patch against the original repo?16:20
trivol left16:20
kenichi joined16:21
mastroDani left16:22
rudi_s fxn: Sure git format-patch origin/master (or change the master if you worked on a different branch).16:22
bnovc joined16:23
fxn oh cool, I assumed origin/master was my own forked repo16:24
rudi_s fxn: It's the master branch of the remote repo.16:24
intripoon left16:24
second3 left16:26
frakturfreak__ joined16:27
frakturfreak__frakturfreak16:27
frakturfreak_ left16:28
ProperN[out] joined16:29
ProperN[out] left16:29
ProperN[out] joined16:29
dreiss joined16:30
ProperNoun left16:30
ProperN[out]ProperNoun16:30
adxp-2`` left16:33
adxp-2`` joined16:33
rgr left16:34
Nemurenai left16:35
kpreid joined16:36
kenichi_ joined16:36
steph021 left16:37
aspotashev left16:38
mtkd left16:39
mtkd joined16:39
mtkd left16:39
kenichi left16:39
kenichi_kenichi16:39
LinuxFetus joined16:40
IslandUsurper joined16:41
jayam joined16:42
tvw left16:46
loincloth left16:48
poseid left16:48
loincloth joined16:49
justin-george joined16:49
bbell joined16:50
theli0nheart joined16:51
kenichi need help tracking down an issue, here's the deal: changes were made to file A like a week ago, co-worker made a commit in his local branch without pulling changes to A (i.e. parent sha was old), then he pulled, which resulted in a merge, couple of conflicts, but not in file A. without saying anything, git chose "his" for file A and all changes for the past week were lost. how can this be? doesn't even show in history/github...16:51
LinuxFetus Hey I entered in a command into my terminal and received the following error (https://gist.github.com/300a6010701272594bb1)16:52
zaytsev left16:53
Lgb left16:54
g3d joined16:55
kenichi LinuxFetus: looks to me like you have to configure your networking properly.16:56
Lgb joined16:57
krawek joined16:58
LinuxFetus kenichi, What does that mean, and how do I go about doing that?16:59
Lgb left16:59
montylounge left17:00
kenichi LinuxFetus: what distro?17:00
LinuxFetus kenichi, Oh, and I googled the error before posting here and it looks like someone else got something identical (for a different URL). http://sourceforge.net/apps/trac/sourceforge/ticket/595317:00
kenichi, AV Linux 4. http://www.bandshed.net/AVLinux.html17:00
zrbecker joined17:00
Lgb joined17:01
tcurdt left17:02
fxn left17:03
incandenza joined17:03
fxn joined17:03
fxn left17:03
Schmallon left17:03
whatdoesitwant left17:04
kenichi LinuxFetus: well, the short answer is your box can't connect to git.or.cz. the long answer probably belongs in another channel. google something like 'how to set up networking in debian' or 'avlinux' and read up.17:06
troyt_ joined17:06
ereslibre left17:07
troyt_ left17:07
workmad3 left17:10
a_l_e_x hey17:11
is it ok to ask for usage help in this chan?17:11
PerlJam yes, but it's not ok to ask to ask :)17:11
xorian joined17:11
a_l_e_x dammit17:11
a_l_e_x left17:11
second3 joined17:11
a_l_e_x joined17:11
a_l_e_x trying to reset the cache on a fresh repo; "git reset" gives me: fatal: Failed to resolve 'HEAD' as a valid ref.17:12
rgr joined17:12
DrNick left17:13
jast nothing committed at all, ever? rm .git/index17:13
a_l_e_x brillant, thanks17:13
adamholtadamholt_away17:13
adamholt_awayadamholt17:13
slyphon_awayslyphon17:13
a_l_e_x parfait17:13
is that a bad thing to do in any other situation?17:13
jast well, it'll make git forget what is staged17:14
but then you can simply call git reset to rebuild the index from the last commit17:14
a_l_e_x makes sense17:14
xorian I have a small patch to the git merge code on which I'd like feedback: http://codepad.org/1FowZtzC17:14
a_l_e_x i added lots of .svn files :( they're very intrusive17:14
zorzar_ left17:15
jast xorian: ideally you look at the document about submitting patches. the mailing list is absolutely the right place to get feedback, especially if you mark a patch as RFC (though patches always get reviewed anyway as part of the whole process)17:15
and fwiw I can't access that pastebin site right now17:16
right, works now17:16
xorian jast: Yeah, I just figured since this would be my first patch it wouldn't hurt to ask here first.17:16
galderz left17:17
jast all the more reason to go to the mailing list, where you'll get sensible feedback from the people who actually know how that part of the code works17:17
you don't even have to subscribe17:18
jayam left17:18
DrNick joined17:18
jayam joined17:18
andrewwatts joined17:18
jast I'm not too familiar with the merge code, so I can only guess at what that thing you wrote there is actually doing :)17:18
bbell Anyone here ever looked at Plastic SCM, and have an opinion to share? Some people at my company view it as "commercial git", with commercial git, fancy GUI, etc. There's not much by way of comparisons that I can find.17:19
er, "with commercial support"17:19
"Plastic SCM sucks rocks compared to git because ..." would be wonderful. :-)17:19
PerlJam bbell: ... it requires a relational DBMS17:20
well ... relational-ish if it can use mysql17:20
slonopotamus left17:20
jast bbell: the blurbs from the website sound interesting, at least. I can't really say anything about how it performs in practice, though.17:20
bbell I noticed that. Apparently it has support for SQLite, so at least you don't necessary have to set one up on each machine.17:20
jast sqlite isn't great for extreme concurrency, but you probably don't need that anyway17:21
MattDiPa_ joined17:22
jast hmm, .NET-based.17:23
so the server part only officially runs on windows17:23
adxp-2`` left17:23
adxp-2`` joined17:23
coldboot Is there a way to do `git log --before-some-commit=afeafea7d7 -- some_file.txt` similar to --before=<date> ?17:24
jast the setup guide doesn't actually mention the need to use a RDBMS17:24
d1b left17:25
jast coldboot: git log afeafea7d7^ some_file.txt17:25
hipe joined17:25
coldboot jast: Oh yes, of course, thanks!17:25
bentob0x left17:25
bambule___ joined17:26
d1b joined17:26
jast one apparent downside of plastic is that you can only configure one server for the client to use17:27
which makes for less of a truly decentralized scenario17:28
ProperN[out] joined17:29
ProperN[out] left17:29
ProperN[out] joined17:29
ProperNoun left17:29
ProperN[out]ProperNoun17:30
jast okay, several servers is possible but cumbersome17:30
the whole thing reeks of unnecessary complexity if you ask me17:30
adamholtadamholt_away17:31
adamholt_awayadamholt17:31
munichlinux left17:31
parasti joined17:31
Heimidal left17:32
beni- left17:32
programble joined17:34
raichoo1 joined17:34
bauruine joined17:35
raichoo left17:36
raichoo1raichoo17:36
leo2007 left17:36
jason237 joined17:36
LinuxFetus left17:39
mspitsc joined17:39
bambule joined17:39
bambule___ left17:39
Heimidal joined17:39
resmo left17:40
jason237 left17:41
jayam left17:42
jayam joined17:42
nchase anyone still listening: the problem that i described earlier may be because my git repo is on a windows file system and i'm running commands on a mac17:43
steph021 joined17:46
kipras joined17:46
a_l_e_x nchase: missed that; were you getting problems with case-sensitivity?17:47
nchase i was trying to rebase and it kept returning that my working tree was dirty17:48
j0shua left17:50
valeo_ joined17:50
rlb3 joined17:51
valeo_valeo17:51
xorian jast: Branch 1 does "mv a b", branch 2 adds b with identical contents. Merging the two gives "CONFLICT (rename/add) ..." and you wind up with two files named "b" and "b~branch2" in the working tree with identical contents. This seems a little pointless.17:52
jast: But yeah, I'll go to the mailing list. :-)17:52
a_l_e_x nchase: ah. i get dirty issues with line-ending differences sometimes17:52
a_l_e_x left17:52
nchase a_l_e_x: windows makes me want to cry :(17:52
jast yeah, without thinking too deeply about it, that sounds like a good change17:52
nchase ah, gone17:52
resmo joined17:52
patthoyts joined17:53
rlb3 left17:53
esc /../wc17:54
ls17:54
beni- joined17:54
amerine joined17:54
esc er :-/ .. sorry17:54
aspotashev joined17:54
patthoyts Something bad has happened to repo.or.cz ? Seems unreachable from here.17:54
zenazn joined17:55
notjohn joined17:55
telemachus joined17:56
telemachus left17:57
bambule___ joined17:57
CoinOpeBoy left17:57
kenyon left17:58
bambule left17:58
hohoho left17:58
__name__ patthoyts: same here17:59
sammcd joined17:59
patthoyts thanks. not just me then :)18:00
tstclair joined18:00
__name__ "It's not just you! http://repo.or.cz looks down from here."18:00
kenyon joined18:03
MattDiPa_ left18:03
slonopotamus joined18:03
telemachus joined18:08
npetrov left18:08
andrewwatts_ joined18:08
bbell jast: The model is distributed in that you run a local server, and use your client on a local server. OR you can use it in a centralized fashion by connecting to a remote server. I agree that using a local server seems unnecessary complex.18:09
Heimidal left18:09
xorian left18:10
telemachus left18:10
bbell __name__: Is that http://downforeveryoneorjustme.com/repo.or.cz ? :-)18:11
__name__ bbell: Indeed18:11
andrewwatts left18:11
andrewwatts_andrewwatts18:11
roop left18:12
patthoyts neat. I'll have to remember that on.18:13
kumbayo_ joined18:13
adxp-2`` left18:15
adxp-2`` joined18:15
jayam left18:17
kumbayo left18:17
curtana left18:17
tatsuya left18:17
sagsousuke left18:18
uau left18:18
SOCiETii left18:18
sagsousuke joined18:18
tobiassjosten joined18:19
radarek joined18:19
tvw joined18:21
telemach1s joined18:24
jjuran bbell: http://downforeveryoneorjustme.com/downforeveryoneorjustme.com18:24
naquad left18:25
RG|Lappy joined18:25
hebz0rl left18:26
slackstation joined18:26
telemach1stelemachus18:27
slackstation I set vim as my editor but, when I edit my commit message and :wq (write quit) I get an error: There was a problem with the editor 'vim'. Is there a flag I should be passing to vim?18:27
jast usually not18:27
do you get anything else?18:27
ToreadorVampire joined18:27
slackstation jast: Please supply the message using either -m or -F option.18:28
is the error I get18:28
tobiassjosten left18:28
naquad joined18:28
jast did vim output anything interesting?18:29
resmo left18:29
ToreadorVampire left18:29
slackstation jast: nope18:30
just quit normally18:30
telemachus left18:30
leo2007 joined18:31
incandenza left18:31
drizzd joined18:33
jast I think for some reason vim exits with a code that isn't 018:33
slackstation jast: I've tried using 'vi' instead of 'vim' for editor and it's the same result18:34
Is there some log that I can check what code vim exits with?18:34
jast not really18:34
drizzd_ left18:36
slackstation How do people ever get work done in UNIX? I feel like I spend all my time messing with config options for every tool I touch.18:36
drizzd slackstation: you can just edit a random file with vim, :wq and then type "echo $?"18:38
paradoxx joined18:38
slackstation drizzd: trying that...18:38
drizzd: output: 118:39
__name__ slackstation: I wonder the same thing about Windows.18:39
bluenovember left18:39
__name__ How can one work with that?18:40
slackstation drizzd: I guess that means that vim is not exiting with a code 018:40
drizzd_ joined18:40
drizzd_ slakmagik: it should say 018:40
fr0sty slackstation: bingo. What distro are you using? what does 'which vim' tell you?18:40
lyosha joined18:41
drizzd_ slakmagik: oops, wrong address18:41
slackstation "distro": OS X 10.6.418:41
stringoO left18:41
slackstation "which vim": /usr/bin/vim18:41
resmo joined18:42
jast yeah, seems to be a problem in vim for OS X18:42
I just found someone else having that problem18:42
drizzd_ well, the easy fix is writing a script which simply has "vim; exit 0"18:42
ahem, I mean workaround. that doesn't fix the real problem vim is having18:42
Titosemi_ joined18:43
Jaxan joined18:43
jast rumour says you can set EDITOR=/usr/bin/vim (full path!) or git config --global core.editor /usr/bin/vim18:43
lyosha Hi. I have a remote that I set up by doing "git remote add -t branch origin git://...". How can I add fetching of another branch to it?18:43
jast that allegedly fixes it for some reason18:43
drizzd_ how strange18:44
ijuma_ joined18:44
drizzd left18:45
ijuma left18:45
Titosemi left18:45
Titosemi_Titosemi18:45
drizzd_ lyosha: you need to edit .git/config, it should have something like [remote "origin"] fetch = refs/heads/branch:refs/heads/origin/branch18:45
gebi left18:45
jast lyosha: edit .git/config, find the line in [remote "origin"] that says fetch = <something with that branch in it>, and create an additional line that goes similarly18:45
razvand left18:45
drizzd_ jast: oh? multiple lines are concatenated?18:45
brosner_brosner18:45
jast don't we have this big feature of multi-value settings precisely for that?18:46
lyosha jast: thanks. I just add another line that looks similar? There is no formal way using git commands?18:46
andreaaandreaa`afk18:46
drizzd_ jast: I didn't know, but that's useful18:46
jast lyosha: none that I'm aware of18:46
drizzd_: see the --add switch and friends on git config18:46
I think it's especially for settings like the refspecs18:46
lyosha jast: yep, that worked. Thanks!18:46
stringoO joined18:47
uau joined18:47
CoinOpeBoy joined18:51
galderz joined18:52
drizzd joined18:52
RG|Lappy left18:54
smuf_ left18:54
bcardarella joined18:55
kenichi left18:56
drizzd_ left18:56
rpg joined18:56
letas is it better to git pull remote branch_name or just git fetch?18:56
lyosha left18:57
chrispitzer joined18:58
chrispitzer I've started making changes, and now I realize i should have created a branch. Can I move my uncommitted changes to a branch?18:58
jast letas: pull actually combines fetch and merge, so if you want to update your local branch with changes from elsewhere, git fetch alone won't do the trick18:59
bambule___ left18:59
jast chrispitzer: uncommitted changes are not really attached to anything. git checkout -b newbranch and that's it.19:00
bambule___ joined19:00
mattikus joined19:00
chrispitzer thanks19:00
kenichi joined19:00
letas jast thanks - I think my question is actually: Which should I use? I remember attending a conference and the guy saying that he advises to use git fetch and then git merge19:01
rane_ bad advice19:01
jast letas: the advantage of that is that you can locally review the changes you fetched before deciding whether you want to merge and what19:01
if you know that the changes are going to be good, just do a git pull19:01
letas jast gotcha - makes total sense19:02
rane_ typically you don't have to review what you're about to merge19:02
jast that depends completely on your scenario19:02
rane_ yeah19:02
that's why I said typically19:02
jast decentralized projects can have totally unpredictable changes in some remote repositories19:02
letas so in a regular collaboration environment with 4 to 6 branches - I think u need to review them - right?19:03
jast it's up to you, really :)19:03
if I know who can push to the repository I'm fetching from, and I trust that person to push only good things, I typically don't bother reviewing things every time19:03
pantsman joined19:04
jast and if I'm the only person working on that repository, just in different places, it's really a foregone conclusion :}19:04
because, you know, I never trust myself. I'm a really untrustworthy kind of guy.19:04
adxp-2`` left19:04
adxp-2`` joined19:04
hilem left19:05
loincloth left19:07
masterkorp joined19:08
loincloth joined19:08
gigamonkey joined19:09
hipe left19:09
_Vi left19:09
hipe joined19:09
letas makes sense19:10
_Vi joined19:10
letas thanks a lot all :D19:10
adamholtadamholt_away19:10
adamholt_awayadamholt19:10
ProperN[out] joined19:10
ProperN[out] left19:10
ProperN[out] joined19:10
zrbecker left19:12
calin joined19:13
ProperNoun left19:13
ProperN[out]ProperNoun19:13
redondos left19:13
hipe left19:14
redondos joined19:14
slackstation I have a directory (sto-rails) that is in my repo but, when I cloned it to another machine, it didn't update the contents, it was just empty when I pulled it. I put files in there manually and they don't show up when 'git status'. What could be going on?19:14
Garoth left19:14
jast slackstation: were those files ever actually committed to the source repository?19:15
Garoth joined19:15
brntbeer joined19:15
slackstation I think so but, when I put files in that directory on the remote machine directly and do 'git status' they don't show up at all. I've cleared out the .gitignore but, it won't show up. Is there a file permissions issue?19:16
jast there shouldn't really19:16
valeo left19:16
jast after all, you cloned the repository yourself and the rest of it got created without problems, right?19:16
does git ls-files -o show them?19:17
sixteneighty left19:17
slackstation 'git ls-files -o' shows nothing at all19:18
hipe joined19:18
poseid joined19:19
[Po]lentino left19:20
jast it's supposed to show untracked files19:21
git ls-files -c shows tracked+unchanged files, ignoring ignore patterns19:21
mbroeker joined19:21
stefl left19:22
CaelumMDMA19:24
Jaxan left19:24
MDMACaelum19:25
sixteneighty joined19:26
mulp left19:26
_Vi left19:26
_Vi joined19:28
stringoO left19:29
khelll joined19:29
khelll left19:30
opalka left19:34
unreal left19:34
slackstation it just lists sto-rails as one line while everything else it lists... Maybe I set sto-rails as a symlink on the original machine?19:35
jast that might be possible19:35
ls -l should show you whether it's a symlink19:36
fod joined19:36
blaines joined19:37
mumboww hi all19:37
what's the right way to "fix" whitespace diffs19:38
slackstation jast: no symlink on the original machine19:38
mumboww i have two versions of a file that the only differences are extra newlines19:38
but i dont want to ignore the whitespace diffs... just want to get rid of teh extra newlines in the new file19:38
bentob0x joined19:38
gebi joined19:38
blaines left19:39
unreal joined19:39
blaines joined19:40
mar77i joined19:40
galderz left19:40
mumboww actually sorry19:41
hmm19:42
blaines left19:42
mumboww ok i was confused19:42
rubydiamondzz_rubydiamond19:43
jeffszusz joined19:43
whatdoesitwant joined19:44
mattikus left19:45
jast slackstation: are the files listed in: git show HEAD:sto-rails19:45
(assuming that sto-rails is at the top level of the repository)19:45
blaines joined19:45
sixteneighty left19:46
gebi left19:46
gebi joined19:46
cubuanic joined19:47
slackstation I did 'git show HEAD:' and sto-rails was listed without a slash after it. Does this mean it wasn't a directory?19:47
cilly left19:47
slackstation I'm about ready to just blow this repo out and start over.19:47
blaines left19:47
khmarbaise joined19:48
drizzd__ joined19:50
sam_ joined19:50
second3second19:51
second left19:51
second joined19:51
second left19:51
second joined19:51
jast slackstation: in the original repository, what does git cat-file tree HEAD: | grep sto-rails say?19:51
oh wait19:51
I forgot something there :)19:51
slackstation jast: Thanks for all the help but, I'm gonna shelve this for now and get to work.19:52
jast it's actually: git cat-file -p HEAD: | grep sto-rails19:52
oh, right19:52
see you around, perhaps19:52
sam_ Git ignores the tmp directory under all .svn directories (.svn/tmp is igored) . Any reason for this? I don't have any exclusions in the repository.19:52
felipec joined19:53
drizzd left19:53
chrispitzer i'm ending up with branches that I've deleted locally hanging around on github... how do I make it so github kills a branch when i delete it locally and push?19:55
reuteras joined19:55
parasti sam_: Git does not track directories19:57
paradoxx left19:58
sam_ parasti: the temp directories contain other files and directories and they are all ignored.19:58
fr0sty left19:58
psankar left19:58
sam_ parasti: the ".svn/tmp"19:58
parasti sam_: .svn/tmp has only directories in it19:59
sam_: at least in the test I just did19:59
tech13 left19:59
radarek left19:59
anjen joined19:59
ProLoser|Work joined20:00
ProLoser|Work hello20:00
$ git remote rm origin20:00
error: Could not remove config section 'remote.origin'20:00
what is causing this?20:00
jeffszusz_ joined20:00
sam_ parasti: you're right. I should have looked closer. Now I need to figure out how to get svn to deal with this.20:00
parasti: Thank you!20:01
sylr joined20:01
sylr Hi20:01
non git related question: When using --prefix with configure, how do I retrieve its value IN the makefile ?20:01
jast chrispitzer: that sort of thing is only implemented for *completely* mirroring a repository to somewhere else, which probably won't do you too much good. generally, the idea is that you usually push branches that are meant to keep existing on the other side, and use git push --delete to get rid of them once you decide you don't need them anymore20:01
sgh joined20:02
ProLoser|Work left20:02
jast sylr: @prefix@ in Makefile.in20:03
(do read the docs of autotools :))20:03
Heimidal joined20:03
sylr jast: thanks, I was looking at --prefix20:03
jeffszusz left20:04
felipec left20:04
redondos left20:04
redondos joined20:05
tvw left20:05
reflectivedev joined20:05
Titosemi left20:05
ft left20:06
ryoshu_ joined20:06
ft joined20:08
Jaxan joined20:08
zorzarzorzar_20:08
blaines joined20:10
paradoxx joined20:11
mtkd joined20:11
blaines left20:12
zorzar joined20:14
webus joined20:15
ph^ left20:15
RORgasm joined20:16
Jaxan left20:17
patthoyts left20:17
sam_ left20:19
rpg left20:19
rgr left20:19
rpg joined20:19
rainvt joined20:20
rpg left20:21
adamholtadamholt_away20:21
adamholt_awayadamholt20:21
orafu left20:27
__name__ is there an easy way to determine if a change has been done by pull when scripting operations?20:27
orafu joined20:28
stringoO joined20:30
RORgasm left20:30
RORgasm joined20:31
reuteras left20:32
nchase left20:32
bcardarella left20:33
yaotti_awyaotti20:33
Theravadan left20:33
drizzd__ __name__: check the sha1 before and after the pull?20:33
__name__ drizzd__: i wondered if there was an easy way. thanks :)20:33
*easier20:33
drizzd__ not sure how much easier it can get though20:34
__name__ i thought i might have missed an option of pull20:34
that gives me that info in the return code20:34
vital left20:34
drizzd__ but pulling in a script comes with other problems anyways20:34
__name__ drizzd__: merges?20:35
drizzd__ or dirty files20:35
vital joined20:35
phlowx joined20:35
__name__ no the repo is clean.20:35
I'm writing a small buildbot-like thing.20:35
redondos left20:36
redondos joined20:36
yaottiyaotti_aw20:39
TheUni left20:39
yaotti_awyaotti20:39
apsysoev joined20:41
ChrisBuchholz joined20:42
sgh left20:43
rgr joined20:43
rgrGuest485020:44
johnw joined20:44
brntbeer_ joined20:45
rgr___ joined20:45
lhz left20:45
reuteras joined20:45
rgr___ left20:46
Guest4850 left20:46
rgr__ left20:46
brntbeer left20:46
ShooterMG joined20:47
eletuchy joined20:47
Lars_G joined20:47
Lars_G Hi all.20:47
Is there any way I can change config so that I push ALL my branches (new and all) to my origin?20:48
sgh joined20:49
Blackguard joined20:49
TheUni joined20:49
aresnick joined20:51
tg left20:51
tg joined20:51
adamv left20:52
jaql left20:53
sgh left20:53
gigamonkey left20:54
marc_kdab left20:54
marc_kdab joined20:55
rgr__ joined20:55
andrewwatts left20:57
sgh joined20:57
andrewwatts joined20:57
raichoo left20:58
wereHamster Lars_G: man git-config -> push.default20:58
Gitbot Lars_G: the git-config manpage can be found at http://git.or.cz/man/git-config20:58
coderdad left20:59
tvw joined20:59
coderdad joined20:59
rgr__ left20:59
kipras left20:59
rgr__ joined20:59
Lars_G The thing wereHamster is that do I have to config a [Branch] for each new branch in each client?21:00
mtkd left21:00
coderdad_ joined21:01
coderdad left21:01
andrewwatts left21:01
wereHamster Lars_G: ah, push.default will not do it. But 'git config remote.origin.push refs/heads/*:refs/heads/*' will..21:02
Lars_G ok21:02
I'll try, thanks21:02
rgr__ left21:02
rgr__ joined21:03
Lars_G See you and thanks21:03
Lars_G left21:03
rgr__ left21:03
adam__adam-_-21:03
rgr__ joined21:03
aspotashev left21:04
znake joined21:04
sylr is repo.or.cz down for you ?21:05
rainvt left21:05
EricInBNE joined21:05
andrewwatts joined21:05
gebi left21:06
adxp-2`` left21:06
adxp-2`` joined21:06
picardo12 joined21:08
wereHamster yes, seems down21:08
rgr__ left21:08
rgr_ joined21:09
rgr_Guest2800421:09
slonopotamus left21:10
p3rg2z joined21:11
mar77i left21:12
blaines_ joined21:13
beni- left21:13
thiago sylr: http://downforeveryoneorjustme.com/repo.or.cz21:13
pantsman- joined21:13
blaines_ left21:13
pantsman- left21:14
ajpiano left21:14
hoijui left21:15
blaines_ joined21:17
znake left21:17
pantsman left21:17
blaines_ left21:17
workmad3 joined21:18
Guest28004 left21:20
Schmallon joined21:21
redondos left21:21
Theravadan joined21:22
unclown left21:22
redondos joined21:22
gcl left21:24
masterkorp left21:24
blaines joined21:24
Mage joined21:24
apsysoev left21:26
blaines left21:26
zenazn_ joined21:28
zenazn left21:28
sgh left21:29
gigamonkey joined21:29
bambule___ left21:29
adamholtadamholt_away21:30
adamholt_awayadamholt21:30
rpg joined21:30
bambule___ joined21:31
pantsman joined21:32
g3d left21:32
stringoO left21:32
spaceonline joined21:33
devurandom left21:33
resmo left21:34
andrewwatts left21:34
voxpelli left21:36
resmo joined21:38
blaines joined21:38
mspitsc left21:39
blaines left21:41
lresende joined21:41
lresende left21:41
mdel left21:42
IslandUsurper left21:44
rpg left21:44
johnw left21:44
tstclair left21:44
rpg joined21:44
Jaxan joined21:46
malev joined21:50
gcl joined21:51
malev hi everyone! is it posible to get only one file from a remote branch with git?21:51
blaines joined21:51
sylr left21:51
flaguy48 joined21:52
airborn joined21:53
galderz joined21:54
jeffszusz_ left21:54
letas left21:55
d0k left21:55
Heimidal left21:55
gigamonkey left21:56
Schmallon left21:56
picardo12 left21:56
adam-_-adam__21:56
bin1010 joined21:56
Heimidal joined21:56
picardo12 joined21:56
malev malev: fasda21:56
Reticenti left21:57
Jaxan left21:59
airborn hello22:00
khmarbaise_ joined22:00
malev hello22:00
drizzd__drizzd22:00
hipe left22:00
Blackguard left22:00
khmarbaise left22:00
khmarbaise_khmarbaise22:00
hipe joined22:00
ping-pong joined22:02
p3rg2z left22:02
yaottiyaotti_aw22:03
unix_remote left22:03
hipe left22:05
q0rban left22:05
zenazn_ left22:05
RORgasm left22:05
hsa2 joined22:05
fod left22:06
hsa2 hello22:06
i installed "Full installer for official Git 1.7.0.2" on windows, but i can't make git recognize my ssh keys, where should i put them?22:07
jpieper left22:07
ChrisBuchholz left22:07
malev left22:07
altrux_ joined22:08
jpieper joined22:08
madewokherd joined22:08
thiago hsa2: Git doesn't deal with ssh keys, ssh does22:09
zenazn joined22:10
lresende joined22:10
lresende left22:10
hsa2 thiago: i know, but ssh is included in windows package of git, i din't install openssh22:10
thiago ah, I see. So the ssh won't find your keys22:10
hsa2 thiago: yes22:10
exactly :)22:11
thiago I don't know what ssh considers as $HOME on Windows, sorry22:11
hsa2 windows is great, but i hate it's being gui dependent22:11
malev joined22:11
altrux_ left22:12
malev left22:13
hsa2 thiago: i think i found it C:\Users\<username> works :)22:13
Nemurenai joined22:13
tvw left22:14
gorozco joined22:15
mstormo hsa2: You can override by actually setting HOME to something22:17
normally uses USERPROFILE or HOMEDRIVE+HOMEPATH or HOME22:19
paradoxx left22:19
poseid left22:19
[reaVer] joined22:21
bin1010 left22:21
engla joined22:22
leo2007 left22:23
unclown joined22:23
engla left22:23
engla joined22:23
reaVer left22:23
akahn left22:24
whatdoesitwant left22:24
notjohn left22:25
MacHat joined22:25
resmo left22:27
chittoor left22:27
Jippi_mac joined22:28
scarabx joined22:28
_Vi left22:29
mar77i joined22:31
beatak left22:31
redondos left22:31
redondos joined22:31
phlowx left22:32
hsa2hsa2|gone22:32
ProperN[out] joined22:33
ProperN[out] left22:33
ProperN[out] joined22:33
amerine left22:33
hsa2|gonehsa222:34
xiong joined22:34
batok joined22:35
loincloth left22:35
ProperNoun left22:36
ProperN[out]ProperNoun22:36
galderz left22:36
slyphonslyphon_away22:37
slyphon_awayslyphon22:37
kumbayo_ left22:38
ping-pong left22:38
ping-pong joined22:39
malev joined22:40
Aaaarg joined22:40
andreaa`afkandreaa22:42
Nemurenai left22:43
sagsousuke left22:44
Jippi_mac left22:45
hilem joined22:45
blinky left22:46
rudi_s left22:46
metze left22:46
kakos left22:46
hipe joined22:46
Helios left22:46
khmarbaise left22:47
mjf joined22:48
elmob left22:49
coderdad_ left22:49
Yuuhi left22:50
Ryback_ left22:50
metze joined22:50
rudi_s joined22:50
candybar left22:51
Helios joined22:51
blinky joined22:51
Dave^| left22:52
hsa2hsa2|gone22:52
candybar joined22:52
MacHat left22:53
jksz joined22:53
jksz left22:53
terinjokes left22:55
ajpiano joined22:56
mjf left22:57
toddr joined22:57
hsa2|gonehsa222:57
vinse joined22:58
MacHat joined22:59
jfkw joined23:00
Heimidal left23:02
toddr left23:02
freshtonic joined23:03
tizbac left23:06
Theravadan left23:08
Eaven left23:09
coderdad joined23:10
guide_ joined23:10
malev left23:10
MacHat left23:10
metze left23:10
Helios left23:10
guide left23:11
hsa2hsa2|gone23:11
hipe left23:12
guide_ left23:14
ribasushi is there some command or whatnot23:14
guide joined23:14
thiago to do what?23:14
ribasushi that will fire my $EDITOR for evey conflict file available?23:14
Helios joined23:14
MattDiPasquale left23:15
sammcd left23:15
samer left23:15
Heimidal joined23:16
engla left23:16
metze joined23:16
gnoel joined23:17
slonopotamus joined23:17
engla joined23:18
engla left23:18
engla joined23:18
paradoxx joined23:19
gnoel hi folks, how does one figure out from which remote branch a local branch was created?23:22
vmiklos git config branch.foo.remote and git config branch.foo.merge23:23
paradoxx left23:24
elitexray left23:27
Theravadan joined23:27
LeLutin does anyone know something about remote helpers? I'm trying to pull out a bzr helper and there's some details I can't quite figure out..23:27
thiago ribasushi: git mergetool23:28
WebDragon left23:31
pantsman left23:32
brntbeer_ left23:33
brntbeer joined23:33
lemonchicken left23:35
paradoxx joined23:35
xiong left23:35
Heimidal left23:36
Nightsorrow joined23:37
Fangorn_ joined23:38
dr_win left23:40
tureba left23:41
dr_win joined23:41
tureba joined23:42
andreaa left23:44
jrmuizel left23:48
tjholowaychuk left23:50
lemonchicken joined23:52
mbroeker left23:52
LongBeach left23:53
hsa2|gonehsa223:53
hsa2 left23:54
chapter_29 joined23:55
slackstation left23:55
masonkramer left23:55
masonkramer joined23:56
yngress joined23:56
coderdad left23:58
alice|wl left23:59

Logs Search ←Prev date Next date→ Channels Documentation