IRCloggy #git 2010-07-20

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-07-20

steveire left00:00
steveire joined00:01
steveire left00:01
steveire joined00:01
hobodave left00:02
hobodave joined00:02
Joeconyers joined00:03
scarabx left00:04
masonkramer joined00:04
priidu left00:05
ianmcorvidae|alt joined00:05
ianmcorvidae left00:06
ianmcorvidae|alt left00:07
ianmcorvidae joined00:07
ianmcorvidae left00:07
ianmcorvidae joined00:07
hearit joined00:08
hobodave left00:08
hipe joined00:08
unreal left00:09
unreal joined00:10
amerine left00:10
frogonwheels joined00:10
sshc_ joined00:12
godsflaw left00:12
cpgcpg|away00:13
felipec left00:14
tyru joined00:16
frakturfreak left00:24
frakturfreak joined00:25
tstclair left00:25
nevyn left00:26
nevyn joined00:28
hasrb joined00:29
jaql left00:29
warthog9 left00:31
eletuchy left00:31
eletuchy joined00:31
nevyn left00:32
steveire left00:33
steveire joined00:34
steveire left00:34
steveire joined00:34
nevyn joined00:39
Raydiation joined00:42
alezandro left00:42
Raydiation if i push data on the server and i want to update the working tree immediately (i run a webserver) i have to use a post-receive hook right?00:42
Ilari Raydiation: Or post-update.00:43
Raydiation Ilari: whats the difference?00:43
Ilari Raydiation: post-receive gets full update commands (stdin), post-update only branches updated (via arguments).00:45
Raydiation: *refs updated00:45
carutsu left00:46
Raydiation Ilari: whats better for deploying the files on a webserver?00:46
i suppose post-receive00:46
Ilari Raydiation: Well, both are about as good.00:47
Raydiation ok thx00:47
batok I've installed gitolite, in my case I cant that one update hook on the remote ( gitolite controlled ) repo , deploy some files to web server , what would be the best way to do this?00:49
s/cant/want00:49
jmcantrell joined00:50
Tuller left00:50
Ilari batok: IIRC, you can just edit hooks that are not reserved by gitolite (reserved hooks include update in any repo and post-update in gitolite-admin. Since deploying files is done from post-receive/post-update, those can be used.00:50
And for gitolite-admin, there's second chainload hook for running actions after gitolite post-update has run.00:51
Using that secondary hook is pretty rare (but I do use it to reload SRP user databases on config change).00:52
batok I ve used update.secondary ( that's how gitolite let do additional things ) but my question is more git related. How in a hook should I get those repo files ?00:52
Ilari batok: Search git website HOWTO?00:52
batok do I need to make a git archive ?00:53
Ilari batok: http://toroid.org/ams/git-website-howto00:54
Yuffster left00:56
eighty4 left00:56
batok thank you very much llari00:58
Mage left00:59
Mage joined01:00
Camel___ joined01:00
Camel_ left01:00
batok so the key is using git checkout -f01:02
hearit left01:03
ExtraSpice left01:03
alezandro joined01:03
beatak_tksh left01:06
Yuuhi` left01:08
jrmuizel left01:11
sitaram possibly with the addition of using GIT_WORK_TREE, because usually the repo you're working off of is a bare repo and should not *have* a work tree01:13
(git checkout should refuse to do that unless GIT_WORK_DIR is set, IIRC)01:13
hobodave joined01:14
edt joined01:14
edt what does "fatal: This operation must be run in a work tree" mean? And how do I fix it?01:14
It does not mater if I trash the tree for subsequent pull - its easy to reclone it.01:15
Vampire0 joined01:15
edt I need to apply a test patch...01:16
mar77i edt: well, see if you're in the right directory. either the one where .git is or one where git is in a parent directory.01:16
edt git lot works does that not imply I am ok?01:16
batok sitaram , have you ever documented anything like that ?01:17
mar77i edt: I'm not understanding you. what are you talking about again?01:17
batok I mean the "git website HOWTO" adapted to gitolite?01:17
quentusrex_ left01:18
Ilari edt: What operation are you trying to run? From hook? From command line?01:18
edt gentoo -9999 packages use git.01:18
Vampire0_ left01:18
edt I need to apply a patch to one of the git trees01:18
I can do git log01:18
but trying to do almost any other operation gives the message above01:19
Ilari edt: What does 'pwd' give?01:19
edt I want to do 'cat ../patch_file | patch -p1; git commit -a'01:20
pwd will give: /usr/src/ati which is a symlink to /usr/portage/distfiles/git-src/xf86-video-ati01:20
adamm joined01:20
Ilari edt: Try changing directory to /usr/portage/distfiles/git-src/xf86-video-ati first.01:22
edt going directly to /usr/port... does not help01:22
same message01:22
enherit left01:22
mar77i I'm off01:22
Ilari edt: 'git rev-parse --show-cdup'?01:22
edt no output01:23
Ilari edt: And also what does 'git rev-parse --git-dir' say?01:23
tr3buchet joined01:23
edt .01:23
Ilari edt: That's a bare repository then.01:24
chrislerum joined01:24
Ilari edt: It does not have a working copy and applying patches needs one.01:24
frogonwheels left01:24
edt how do I add a working copy?01:25
Ilari edt: There is directory called '/usr/portage/distfiles/git-src/xf86-video-ati/objects', right?01:25
edt yes01:25
Ilari edt: Clone that repository ('git clone file:///usr/portage/distfiles/git-src/xf86-video-ati' from suitable place).01:26
mar77i left01:27
hipe left01:28
Bombe left01:28
edt that works. How do I get the fix back into the original repo once I commit the change on the new repo01:28
Bombe joined01:28
DrNick joined01:30
Guest76213 joined01:30
Guest76213 Hey all01:30
Wondering if you can help me with a git checkout on a multicore system, I want git to use all available CPU cores but its only using one01:31
royalty left01:31
Guest76213 Running on Ubuntu 10.04 LTS Server 64-bit using git-core from repos01:31
edt Ilari thanks. Git push worked to add the fix01:31
friskd joined01:32
Guest76213 And it's running on EC201:32
Ilari Guest76213: Only some operations like delta compression use multiple cores.01:33
tildeequals left01:33
Ilari Guest76213: And usually operations are not CPU bound but either I/O bound or network bound.01:34
Guest76213 Yeah, looking in top shows high CPU usage01:34
I'm checking out a 30GB repository which is why it's taking so long01:34
But it's a local repo01:34
Ilari Guest76213: Wow... And large binary files do really bad things to git perfromance.01:34
Guest76213 Yeah I know01:34
It's an emergency server move and used git to keep track of local modifications01:35
It's just taking so long to checkout...01:35
Got it running on a 8 core EC2 instance but as it's single threaded that isn't helping in the slightest01:35
sitaram batok: I don't understand... the git website howto applies to any central server, gitolite is just another one, why mix the two. That way I'd be documenting *anything* you can do with a central git server, no?01:35
Guest76213 Ilari, any tips to speed this up?01:35
Ilari Guest76213: What operation is slow? clone? Checkout?01:35
Guest76213 checkout01:36
It's a 6.5G repository with ~30GB worth of checked out data01:36
rchavik joined01:36
Ilari Checkout should write index followed by working copy files and that should be quite much I/O bound... Hmm...01:36
sshc_ left01:37
Guest76213 Running the checkout I don't even get the object count01:37
It's maxing out CPU and display nothing in terminal01:37
sshc joined01:37
Guest76213 On a similar but smaller (2G) repo it works reasonably fast01:37
AAA_awright As fast as Git is it's optimized for maximum compression of file size on highly compressible plain text files01:37
Ilari Guest76213: How many files there are in the repo?01:37
Guest76213 Hundreds of thousands01:38
Mostly small files <1MB in size01:38
Text majority - CSS, PHP etc01:38
Ilari Guest76213: That's enough to do bad things to performance also...01:38
AAA_awright That doesn't stop me from backing up my ~ directory with it, including GB-size photos01:38
Guest76213: How big are your largest directories?01:39
Guest76213 22G01:39
Ilari Guest76213: Strace shows what kind of activity (you can attach it to existing process)?01:39
AAA_awright I mean, number of files01:39
I have had speed problems with more than thousands of files inside a directory, as if trees aren't as efficient as blobs or something01:40
Guest76213 Yeah01:40
What strace args do you want01:40
Ilari Guest76213: 'strace -p <pid>' (where <pid> is some process using lots of CPU).01:41
tedoc2000 left01:41
Ilari Guest76213: Collect some syscall messages and then hit CTRL+C to detach (save log to file).01:42
jrmuizel joined01:44
jksz left01:44
Guest76213 lstat("path/to/file", 0x7fffdf1a6630) = -1 ENOENT (No such file or directory)01:45
Getting a lot of calls like that01:45
Camel_ joined01:46
jksz joined01:46
Camel___ left01:49
rayners_afk left01:50
frogonwheels joined01:51
Guest76213 left01:56
jtdowney left01:56
Azrathud joined01:56
Azrathud left01:56
edt left01:59
jksz left02:01
jksz joined02:02
ignatp joined02:02
parasti left02:04
treak007 joined02:05
thwart joined02:08
sh1mmer left02:08
robbe- joined02:09
flaguy48 left02:10
robbe- Hi, I'm looking for a way to pull from gitweb url's. Is that possible? Is it (not) recommended?02:11
saiyr left02:11
outoftime joined02:12
outoftime any ideas on why I might not get color even when color.ui is set to 'auto' ?02:12
(but I do when it's set to 'always')02:12
I'm running bash with screen on top of it (but I see the same behavior in vanilla bash)02:12
Ilari robbe-: It is not possible. You need something like git daemon or sshd for serving.02:14
chrislerum left02:15
mithro joined02:15
tildeequals joined02:16
ajpiano joined02:17
Mage left02:19
Bass10 left02:19
Mage joined02:20
cytrinox_ joined02:20
Raydiation left02:21
jtbandes joined02:21
robbe- Thanks Ilari. Any other options worth looking into? I've been using ssh access to clone my own repositories, but now I'd like to enable anonymous cloning/pulling. I'll look into the git daemon for starters.02:21
sh1mmer joined02:22
ajpiano left02:22
ajpiano joined02:23
cytrinox left02:23
cytrinox_cytrinox02:23
Ilari robbe-: Yeah, git daemon is for anonymous fetch/clone/pull.02:26
batok left02:28
robbe- Thanks a bunch, reading the docs already. :-)02:28
Bass10 joined02:28
Ilari robbe-: And as hint: Whitelist entries better be in sync with --base-path or daemon won't serve anything, and whitelist entries do not set base path.02:31
batok joined02:32
robbe- I don't know yet what you're talking about, but I reckon I will soon enough. I'll definately keep it in mind. :-)02:32
Camel__ joined02:33
Camel_ left02:33
Ilari robbe-: Usually its easiest to use --base-path to restrict what can be served and not use those <directory> arguments at all.02:33
cehteh left02:34
robbe- Okay.02:35
masonkramer left02:36
konr left02:37
konr` joined02:37
Elfe left02:37
Elfe_ joined02:37
Belna_ left02:38
Ilari robbe-: Also useful for testing is running it from command line with --verbose but without --detach. That causes messages to be printed to stdout.02:38
cehteh joined02:40
hasrb left02:42
khaije|amalt left02:43
scarabx joined02:43
alexmchale joined02:48
kenyon left02:50
timj_ joined02:52
dget left02:53
robbe- I'm modifying my gitweb configuration currently, discovered it can do a bit more than I knew. :-)02:53
timj__ left02:56
kenyon joined02:56
sh1mmer left02:56
spearce left02:59
spearce joined03:00
Blackguard left03:00
kukks left03:01
alexmchale left03:03
lanthan joined03:11
hasrb joined03:13
fishey left03:15
justin-george left03:16
Mage left03:17
Mage joined03:18
hyperair left03:18
thiago_home left03:19
Camel_ joined03:23
Camel__ left03:23
ramsey left03:23
alexmchale joined03:23
anjen left03:23
AkumaStreak left03:24
alexmchale left03:27
bradallen137_ left03:28
ComaWhite left03:28
unreal left03:29
unreal joined03:29
comawhite joined03:31
adamv joined03:31
spearce left03:31
bradallen137_ joined03:33
carutsu joined03:33
tchan left03:35
Joeconyers left03:36
Joeconyers joined03:39
hyperair joined03:41
konr` left03:41
cpg|awaycpg03:41
dr_win left03:43
jjcmjjcm_kingOfWit03:48
jjcm_kingOfWitjjcm03:49
hohoho joined03:53
welly joined03:54
welly left03:54
welly joined03:54
warthog9 joined03:55
jmcantrell left03:57
montylounge joined03:59
bandu joined03:59
guilhermeblanco joined04:04
montylounge left04:06
jrmuizel left04:07
alexmchale joined04:08
alexmchale left04:08
scarabx left04:09
johnw joined04:12
jrmuizel joined04:13
banducoyo04:13
guilhermeblanco left04:14
aresnick left04:14
jrmuizel left04:15
Joeconyers left04:15
Camel__ joined04:21
adamm left04:23
zenazn left04:24
Camel_ left04:25
dr_win joined04:27
cpgcpg|brb04:29
jfkw left04:31
steveire left04:33
steveire joined04:34
steveire left04:34
steveire joined04:34
pgib joined04:35
BlindOracle left04:36
sh1mmer joined04:37
xxthink joined04:38
BlindOracle joined04:38
xxthink left04:38
esr joined04:40
esr After a git cinversion, I moved a bunch of tags files from refs/remote/tags to refs/tags. But they're not visible in gitk. Any suggestions?04:44
apsysoev joined04:45
blueshift esr: can you see any tags in gitk? istr there may be an option you have to wiggle04:45
esr blueshift: You may be right. They show up in git tag --list04:45
babusri joined04:45
esr However, man gitk contains no obvious option04:47
Gitbot However: the gitk manpage can be found at http://git.or.cz/man/gitk04:47
radioman-lt joined04:47
apsysoev left04:47
blueshift played around with the gui buttons?04:47
Ilari esr: Do they show up in 'gitk --tags'?04:48
esr Ilari: Checking...04:48
Ilari: Yes. Why that's not on the gitk manpage is now the mystery :-)04:49
blueshift because maintaining documentation isn't fun or cool04:50
Ilari esr: gitk accepts rev-list revision options. And if tag doesn't point to any commmit that would be otherwise be shown, it isn't shown.04:51
robbe- Ilari: I enabled pulling from http using apache configs; basically when you request git.server.org, it gives you the gitweb, git.server.org/repo.git gives the gitweb for 'dumb' clients (using rewrite rules), but it actually serves the repo (well a bare clone of it), so when you request specificfiles which are not index, it works. :-)04:51
esr Ilari: OK, this was me not grokking gitk well enough, then. Thanks.04:51
Ilari robbe-: Dumb HTTP serving is _deprecated_.04:52
robbe-: (at least for servers that can run CGI scripts).04:52
robbe- Ilari: Oh, but it was in the gitweb documentation. :(04:52
brosner left04:53
Ilari robbe-: And http-backend has optional compatiblity mode for dumb clients anyway.04:53
aziz joined04:53
Ilari robbe-: Performance of dumb HTTP is _bad_.04:53
robbe- Darn, well .. at least I learned something about configuring apache. :)04:53
brosner joined04:53
zoyd joined04:54
robbe- Ilari: Ah, I see, are there more reasons why it is deprecated, except it's slow? (It is only a very small repo I tested it with so I don't noticed it.)04:54
didn't*04:54
zoyd hi, is "git checkout" the equivalent of a "svn export"?04:54
blueshift no, it's the equiv of svn update04:55
Ilari zoyd: More like equiv of svn switch04:55
zoyd: And svn revert in some other modes.04:56
cmyers robbe-: you will notice it more with certain specific useacases. The "smart" http has a script on the server side which can create custom packfiles with exactly what you need. with dumb http it often has to download extra stuff That is why it is slower. YOu might not notice on the initial clone, but for future "fetches" where you only need to pull a few recent changes, there is a big difference.04:56
zoyd no way to 'export' a repository then?04:56
Ilari robbe-: Slow, bad push support...04:56
maleknet joined04:56
Ilari zoyd: 'git archive'?04:56
zoyd: (it even has remote snapshot mode).04:57
cmyers zoyd: you want a "checkout" without the history/repo part?04:57
pgib zoyd, not so much a problem anyways since git doesn't throw .svn directories all over the place04:57
zoyd oh, 'git help' doesn't return an 'archive' .. lemme se04:57
robbe- Oh, but I don't want push support :P - of course if it's deprecated I'll switch to the git daemon; Just interested as to why it's deprecated. :-)04:57
Ilari zoyd: 'git help archive'.04:57
robbe-: Anyway, smart HTTP is superrior to dumb HTTP. And HTTP is bit second-class anyway.04:58
robbe-: Might be good idea to offer as secondary to git:// since there are nasty firewalls out there.04:58
robbe- Ilari: Yes, I see that completely, thanks to the info you and cmyers are giving me, which is of course very much appreciated.04:59
unreal left05:00
cmyers ugh, I am still in 'git svn' hell =( Does anyone know how to make git-svn ignore something it *thinks* is a branch - that creates those branch@rev remote branches?05:01
Ilari Also, AFAIK, currently smart HTTP can't do remote snapshot. Only file://, git://, ssh:// and co (everything supporting CONNECT) can do remote snapshot.05:01
unreal joined05:01
zoyd Ilari: i would think the remote repository needs to allow for 'git archive' to work. because it appears that it's rejecting my request.05:01
Ilari Yeah, not all remote repositories allow remote snapshotting.05:01
freimatz joined05:02
jonmasters left05:02
pastie joined05:02
Arrowmaster i didnt think it was enabled by default05:03
zoyd can't afford cloning a 200+megs repo :/05:03
Camel__ left05:03
Arrowmaster but you can do a shallow clone then run archive locally05:03
Camel_ joined05:03
zoyd shallow clone?05:03
doener joined05:04
robbe- Okay, so there's good reasons to provide primarily git:// and smart http:// as second option, I'll see to it. Thanks!05:04
cmyers do a full clone to local, then do a clone with '-s' and it will use hardlinks to clone, and barely take up any extra space05:04
zoyd reads http://rds.yahoo.com/_ylt=A0oGdE9bLkVMfTkBVrxXNyoA;_ylu=X3oDMTEyaTdsbHRqBHNlYwNzcgRwb3MDMgRjb2xvA3NrMQR2dGlkA1lZWTFfNzg-/SIG=12pufq609/EXP=1279688667/**http%3a//www.kernel.org/pub/software/scm/git/docs/technical/shallow.txt05:04
cmyers then you can remove the .git dir and zip it up05:04
zoyd reads http://kernel.org/pub/software/scm/git/docs/technical/shallow.txt05:05
zoyd cmyers: problem is b/w, storage isn't a problem05:05
meuh left05:06
cmyers ah, that is a problem then =/ Is there a remote machine you could use to do the pull?05:06
meuh joined05:06
cmyers if this is a one-time thing, there is that. if this is a regular thing, you only have to clone it once, so maybe paying the b/w once isn't so bad.05:07
doener cmyers: -s makes it use alternates, not hardlinks05:07
cmyers doener: alternates?05:07
zoyd nevermind. i'll ask a friend to git clone for me05:07
thanks cmyers, Ilari, pgib, blueshift :)05:08
doener cmyers: basically a file that tells git to also look into another repo's object database to find objects it cannot find locally05:08
cmyers oh, so like git-specific symlinks05:08
slonopotamus joined05:08
cmyers if that is how you are gonna do it, why not just use actual symlinks?05:08
doener cmyers: because you could only have one of those. And you wouldn't be able to have objects local to this repo at all05:09
zoyd i suppose repository servers can't handle the archive/compression load either05:09
doener cmyers: alternates work in addition to the local object database not instead of05:10
cmyers I mean, why not have a symlink for each object in the DB that points to the original object in the source DB. I guess that is a lot of symlinks that way though.05:10
brosner left05:11
doener cmyers: any repacking/gc'ing in the other repo would break all the symlinks...05:11
bdiego left05:13
cmyers doener: ...oh. that makes sense =)05:14
jony joined05:14
doener cmyers: that's also what alternates offer that hardlinks don't: You don't lose the space savings on a repack/gc run05:17
cmyers: but you're dependent on the other repo not suddenly dropping objects it no longer needs, but this repo does (usually that means history rewriting or branch deletion)05:17
jonmasters joined05:18
zoyd left05:19
cmyers well my understanding of that is vastly improved now05:20
now if only I understood git-svn well enough to un-fuck it and get my history imported =(05:20
ProperN[out] joined05:23
ProperN[out] left05:23
ProperN[out] joined05:23
hyperair left05:23
tvw joined05:25
ProperNoun left05:25
ProperN[out]ProperNoun05:25
sivy left05:26
batok left05:26
hyperair joined05:29
AAA_awright Hm whhy haven't I read that before... so should it be possible to remove earlier commits from your local repository, by setting a more recent shallow commit, and repacking?05:30
vu3rdd joined05:33
tchan joined05:33
urkud left05:34
coppro .join #pv605:35
bradallen137_ left05:35
LongBeach joined05:35
cpg|brbcpg05:36
urkud joined05:36
babusri left05:36
girishr joined05:37
poseid joined05:37
coppro left05:40
doener cmyers: I had to look up your problem in the logs, and only found a rather vague description... But maybe --ignore-paths?05:40
unreal left05:40
unreal joined05:40
coppro joined05:40
hasrb left05:43
hagabaka left05:44
molokai left05:44
adamv left05:44
BlindOracle left05:44
agile left05:44
urkud left05:45
BlindOracle joined05:45
SlickT10 left05:45
agile joined05:45
tildeequals left05:46
roop joined05:47
Camel_ left05:47
Camel_ joined05:48
Bass10 left05:48
friskd left05:49
SlickT10 joined05:50
friskd joined05:50
Schmallon joined05:51
friskd left05:55
amerine joined05:57
nevyn^_ joined05:58
nevyn^_ left05:59
urkud joined05:59
adamholt left05:59
agile left06:00
kadoban joined06:00
tehbaut left06:00
agile joined06:00
molokai joined06:01
cilly joined06:01
adamholt joined06:01
xrogaan joined06:02
xrogaan left06:02
xrogaan joined06:02
tehbaut joined06:02
ignatp left06:04
Guest49745 joined06:05
Titosemi joined06:05
Guest49745 left06:06
cbreak_work joined06:07
urkud left06:09
urkud joined06:10
psankar joined06:14
apsysoev joined06:14
galderz joined06:15
[Po]lentino joined06:16
opalka joined06:17
slonopotamus left06:18
tildeequals joined06:20
urkud left06:23
skoop joined06:23
urkud joined06:23
sako left06:26
aziz left06:28
steveire left06:28
lat left06:29
steveire joined06:32
unreal left06:35
brntbeer left06:35
unreal joined06:35
priidu joined06:37
brntbeer joined06:38
Camel__ joined06:38
rox` joined06:38
urkud left06:39
Camel_ left06:41
unreal left06:42
unreal joined06:42
bauruine left06:42
steffkes joined06:44
mtkd joined06:45
jtbandes left06:46
programble left06:47
nevyn^_ joined06:49
cirwin joined06:49
cirwin is there an easy way I can see a tree of my branches, without the noise of intervening commits?06:50
thwart left06:50
johnw you mean, confine to merge commits?06:52
cirwin yes06:52
johnw good questio06:52
git log --merges --graph?06:53
cirwin hrm06:53
I think i need to include the heads as well06:53
johnw git log --all --merges --graph?06:53
frakturfreak_ joined06:54
cirwin it just shows merges06:54
which is half way there :)06:54
johnw yeah, you just asked for that06:54
cirwin i know06:54
but that's not what I meant06:54
I'd like to see the tree of branches - which is horrendously complicated - but in order to make sense of that, i'd intuitively show the merge commits06:54
thwart joined06:55
frakturfreak left06:55
cirwin github's format is pretty close to being usable, but I'd like to compress all the commits where there are no merges so that I can see more branches - I don't know whether that makes sense06:56
johnw i don't know the answer06:58
johnw left06:58
johnw joined06:59
eighty4 joined06:59
thwart left07:00
giallu joined07:01
project2501b left07:01
Belna left07:04
thwart joined07:04
timyhac joined07:05
tvw left07:06
dpnux joined07:07
valeo joined07:07
warthog9 left07:10
plediii joined07:11
__ed left07:12
sgronblo Is there a way to show some sort of svn blame output which includes commit messages?07:13
__ed joined07:13
brntbeer left07:14
thwart left07:15
aziz joined07:15
leo2007 joined07:20
warthog9 joined07:22
FauxFaux joined07:22
Camel_ joined07:23
Camel__ left07:23
Wraithan joined07:23
Wraithan Is there a way to do a git log for just one committer?07:23
nvm07:23
rane_ git log --author=Wraithan07:23
Wraithan is blind07:23
ExtraSpice joined07:25
steveire left07:28
Schmallon left07:28
steveire joined07:28
steveire left07:29
steveire joined07:29
rchavik left07:32
n2g left07:35
heliostech left07:36
mithro left07:37
Camel_ left07:37
nevyn^__ joined07:38
carutsu left07:39
ExtraSpice left07:39
project2501b joined07:40
ExtraSpice joined07:40
nevyn^_ left07:40
workmad3 joined07:40
nevyn^__ left07:41
tr3buchet left07:41
nevyn^_ joined07:42
project2501b left07:45
project2501b joined07:45
barismetin joined07:46
nevyn^_ left07:46
drizzd joined07:48
shruggar joined07:49
SlickT10 left07:51
mithro joined07:53
tahseen joined07:58
tahseen wonders if there's a good solution if my index file got zeroed07:58
cbreak_work why?08:00
priidu left08:01
Belna joined08:03
unreal left08:04
unreal joined08:05
valeo left08:07
steveire left08:10
poseid left08:11
steveire joined08:11
steveire left08:11
steveire joined08:11
unreal left08:11
unreal joined08:12
trivol joined08:13
johnw left08:13
urkud joined08:14
steveire left08:15
steveire joined08:16
bauruine joined08:17
mattwynne left08:17
poseid joined08:18
nicoulaj joined08:20
nicoulaj left08:21
priidu joined08:23
PointMan joined08:24
PointMan I removed a directory in a branch, then added them as submodules (git repos), then merge the branch into master. Now the directories are shown as modified, I cant rm or git submodule init to get rid of them..ideas?08:25
masterkorp joined08:26
ProperN[out] joined08:27
ProperN[out] left08:27
ProperN[out] joined08:27
Schmallon joined08:28
PointMan ok Ive deleted the directories and committed the changes. However when I do git submodule init and git submodule update, nothing happens08:29
ideas please?08:29
froschi1 joined08:29
ProperNoun left08:31
ProperN[out]ProperNoun08:31
jony1 joined08:33
jony left08:33
cbreak_work no idea about submodules, sorry08:35
_Vi left08:36
PointMan I figured it out, I ended up removing the dirs manually and then readded them using git submodule add to get the repos files back08:36
jony1 left08:37
PointMan left08:37
urkud left08:38
tahseen cbreak, my colleague's system rebooted and I'm finding the HEAD and index file zeroed out08:39
I copied the index from my working dir and it shows up now as a working git repo with old branches .. just not sure if its anything safe that I did :(08:40
Ilari tahseen: ext4 or xfs?08:40
poseid left08:41
dpnux left08:41
tahseen xfs it seems08:42
Ilari tahseen: 'git fsck --full' might be good idea to discover possible more corruption.08:42
tahseen it gives the same error :( ... not a git repository08:43
thats what I tried first08:43
Ilari tahseen: Restore .git/HEAD too ('ref: refs/heads/master' or something like that).08:45
tahseen yes did that and then copied my index08:45
it seems to be working showing the branch and commits but I'm not sure if this is the best thing to do08:45
or its actually gonna screw thigns up more08:45
mbroeker joined08:46
tatsuya joined08:46
Ilari tahseen: The repository detection is: 1) .git/HEAD exists and is valid. 2) .git/objects exists and is directory, 3) .git/refs exists and is directory.08:47
tahseen: You saying 'git log' works but 'git fsck --full' from same directory doesn't?08:48
tahseen sorry I missed one thing08:48
initially no git command was working08:48
cirwin left08:48
tahseen it seeems after restoring .git/HEAD .. git fsck --full is working08:48
says notice: HEAD points to an unborn branch (master)08:49
fatal: object 03fb0d8fcb23c052836209869c1d7fe686c9e26d is corrupted08:49
I think I'm getting somewhere now08:49
not sure exactly where08:49
Ilari tahseen: '.git/objects/03/fb0d8fcb23c052836209869c1d7fe686c9e26d' is zero-length, right?08:50
rlotun joined08:50
tahseen yup it is08:50
tahseen wonders how he guessed that08:50
TDJACR left08:51
unreal left08:52
Ilari tahseen: You might generate list of all empty regular files (in .git and subdirs) at once (and pastebin that).08:53
unreal joined08:53
curtana joined08:54
Ilari tahseen: Considering how HEAD and index file are updated, HEAD or index file being invalid (neither old or new version) points to _serious_ bugs in the filesystem drivers.08:56
tahseen: invalid after sudden reboot, that is.08:56
tahseen yuck ..08:57
and it wasn't even being updated08:57
petercoulton joined08:57
tahseen she just did a fetch-merge and was building it got reboot08:57
so you want the zero length files in .git right?08:58
and its subdir .. oh got it08:58
Ilari I saw XFS do _ABSOLUTELY_ _INSANE_ stuff on sudden system reboot years ago. Any filesystem doing stuff like that is completely unacceptable.08:59
tahseen http://pastebin.com/tQhLf1qM08:59
curtana left09:00
FauxFaux Nice objects.09:00
Ilari tahseen: You have '.git/logs/refs/heads/tms-redesign'?09:01
tahseen I remember hearing xfs zeroing unsynched blocks or something on reboot?09:01
barismetin left09:01
Ilari tahseen: What I saw was _WAY_ worse than that.09:01
frogonwheels tahseen: hey - that's not delphi TMS is it?09:02
tahseen I mean does that issue cause this whole zeroing of files? or its even worse then that?09:02
offby1` joined09:02
tahseen nope09:02
its a module in our project09:02
the file is there just zero size09:02
bluenovember joined09:02
tahseen sorry missed the path09:02
frogonwheels :) worth asking.09:02
tahseen yup '.git/logs/refs/heads/tms-redesign'? is there09:03
so many objects zeroed out09:03
Ilari tahseen: Take seocnd hash in last line there and write it to 'refs/heads/tms-redesign'09:03
offby1 left09:04
Ilari tahseen: (one of the zero length files). Follow that by LF. The result should be 41 byte file.09:04
tahseen ./objects/f5/9cd21aaea2de2f1924031d92026e5cc9752ad4 .. you mean the part after f5/ ?09:04
Ilari tahseen: No.09:05
tahseen: What's the last non-blank line in '.git/logs/refs/heads/tms-redesign'?09:05
apsysoev1 joined09:06
tahseen oh09:06
jtauber left09:06
tahseen there's just one long line09:06
no blank one09:06
Ilari tahseen: That line has two 40 char hash values, timestamp and some message, right?09:07
Mage left09:07
tahseen yup commiter and some message09:07
so put the second hash in refs/heads/tims-redesign?09:07
Ilari tahseen: Yes.09:08
tahseen: That should result refs/heads/tims-redesign being 41 bytes.09:08
tahseen one thing I don't really need the tms-redesign branch09:08
workmad3 tahseen: so prune it09:08
tahseen the actual development is available in anther repo09:08
cool09:08
Ilari Bad idea with corrupt repo!09:09
workmad3 hmm, good point09:09
don't prune anything until you've uncorrupted your repo :)09:09
tahseen just letting you know if it helps09:09
got it :D09:09
Ilari tahseen: All those blank files in objects/ look like they should be removed (but don't delete any other files there!)09:10
hobodave left09:10
divVerent I have yet another crlf problem09:10
hobodave joined09:11
divVerent is there NO way to get git to handle crlf properly in a repo without havint to manually set config settings?09:11
cbreak_work sure. just turn off autocrlf09:11
divVerent *.map -crlf09:11
*.mapinfo crlf=input09:11
I _need_ autocrlf09:11
cbreak_work why?09:11
divVerent or all the windows users commit CRLFs09:11
cbreak_work git can deal with that I think09:11
divVerent not really09:11
cbreak_work it'll just be ugly09:11
frogonwheels yeah you can't have CRLFs committed to a git repo if you want anything to work.09:11
divVerent it shows as lots of changes in blame then09:11
frogonwheels cbreak_work: nah it can't.09:12
divVerent I want the files to stay with LFs in the repo09:12
frogonwheels cbreak_work: I mean core git can't, but diff/blame doesn't09:12
cbreak_work it will only show up as change if they change lines09:12
divVerent some users even commit mixed CRLF-LF files with some IDEs09:12
tahseen ok 41 byte it is09:12
elmob joined09:12
divVerent cbreak_work: haha, IU got the opposite here09:12
frogonwheels divVerent: yes, you definitely want o have LF only in the repo :)09:12
cbreak_work if they only commit theirr own changed lines or new files with CRLF it will work no problem09:12
tahseen so now I should all zero length file in ./git/objects Ilari ?09:12
divVerent so I am trying to use gitattributes to force the text files to LF09:12
Ilari tahseen: Yeah, remove those files.09:12
tahseen ok09:12
divVerent however, the option crlf=input seems to only work if core.autocrlf is set09:13
frogonwheels divVerent: depends on the version.. there's now a git.lf or soemthing09:13
divVerent and that defeats the point of setting that in gitattributes09:13
does the eol=lf setting work even if core.autocrrlf is off?09:13
in that case, I'd at least be fine in git.git :P09:13
frogonwheels divVerent: it apparently works ONLY when it's not set09:13
divVerent very odd09:14
frogonwheels divVerent: but isn't that about local files..not repo files?09:14
divVerent crlf=input in the attributes is, undocumentedlys, ignored if core.autocrlf is not set09:14
so people STILL commit CRs all the time09:14
frogonwheels divVerent: I was under the impression that with eol=* it will always store lf only in the repo.09:14
divVerent so was I also under the impression about crlf=input when reading the manpage09:14
so I simply want to know - is eol= reliable?09:14
Ilari tahseen: 'grep tms-redesign .git/packed-refs'. Any hits (missing file counts as no hits)?09:15
frogonwheels divVerent: I have no idea, sorry.09:15
divVerent basically, the problem is that the gitattributes file seems to work for some people but not for others09:15
hobodave left09:15
divVerent so some commit CR stuff and some not09:15
and yet others get merge conflicts between09:15
real hell broke out from this09:15
FauxFaux Social problem; hurt the Windows users.09:15
frogonwheels divVerent: yuck. that sounds like you're gonna have to filter-branch all the crs away :(09:15
curtana joined09:16
divVerent frogonwheels: I'd like to avoid that09:16
I am fine if all NEW files are sane09:16
I just want to someone enforce no FUTURE CR commits come09:16
tahseen there's no .git/packed-refs09:16
Ilari divVerent: Hooks on serveside.09:16
divVerent just saying: svn can handle this well09:16
why not git?09:16
Will| left09:17
divVerent according to the DOCUMENTATION, git c an09:17
gebi joined09:17
frogonwheels divVerent: I think the problem is that there's been a bit of a transition about how this should be handled.09:17
divVerent in svn I simply set svn:eol-style for a file, and then it is fine and stays fine09:17
Ilari tahseen: Actually, if you don't need tms-redesign, 'mv .git/refs/heads/tms-redesign .git/tms-redesign.head.bak' and 'mv .git/logs/refs/heads/tms-redesign .git/tms-redesign.log.bak'.09:17
divVerent and works for about any existinmg svn version in the wild09:18
kenyon left09:18
cbreak_work just blame the windows users.09:18
let them shoot their feet off09:18
divVerent frogonwheels: transition?09:18
so you say, this is a bug part of the crlf=input to eol=lf transition?09:18
cbreak_work if they want to turn on auto-crlf, they can for their repositories09:18
divVerent BTW, does it make sense to specify BOTH attributes in the .gitattributes file?09:18
cbreak_work it has to be done at commit time.09:18
Ilari tahseen: And also similarly for .git/refs/remotes/yan/tms-redesign and .git/logs/refs/remotes/yan/tms-redesign09:18
HG` joined09:19
divVerent cbreak_work: I want it enforced by the repository09:19
Ilari divVerent: update hook.09:19
divVerent not have to tell them to set an obscure option in git09:19
isn't that exactly what .gitattributes is for?09:19
FauxFaux What editor are they using that doesn't support global configuration against crlf?09:19
unreal left09:19
unreal joined09:20
Ilari tahseen: After that, you should only have empty FETCH_HEAD and empty index file.09:20
tahseen: (oh and one of those moveaside files can be also empty)09:20
Paraselene_ joined09:21
tahseen So I now have FETCH_HEAD and index as zero length09:22
didlix joined09:22
tahseen do I run fsck now ?09:22
Ilari tahseen: 'git fsck --full'.09:23
GarethAdams|Work joined09:24
docelic joined09:25
docelic Hey folks, how do I see the diff between the branch I am currently on, and another branch of choice?09:26
tahseen notice: HEAD points to an unborn branch (master)09:26
fatal: index file smaller than expected09:26
divVerent no idea which editor09:26
but anyway09:26
Ilari tahseen: Remove .git/index09:26
tahseen: That should allow it to proceed and not hit that second error.09:27
malditogeek joined09:27
tahseen index is just for staging right, its not part of the committted data is it?09:27
kenyon joined09:28
shruggar correct09:28
unreal left09:28
tahseen there's just lots of dangling blob and the error about HEAD09:29
unreal joined09:29
shruggar index is a "faster to use, but less-sensible-looking" format, which also contains some extra data (like mtime) which commits don't care about09:29
jksz left09:29
Ilari tahseen: 'git fetch yan'.09:29
tahseen so when I do a git log does it look at index then rather than looking at the commits?09:29
hyperair left09:29
shruggar tahnseen: the index isn't involved in "git log" in any way, and by default the commit-based equivalent (trees) are not involved either09:30
malditogeek Hi guys, weird problem here, I accidentally created a branch called "-t" but now I can't switch, rename or delete that branch! the cli interprets the name "-t" as an option and does nothing. Also tried escaping the dash but then it can't find a branch with that name… any clue?09:30
tahseen where does it get the info then I wonder09:30
divVerent worst part about the crlf breakage is that even git reset --hard does not clean up the work tree09:30
thwere seems to be no way to recover09:30
barismetin joined09:31
tahseen ok Ilari .. now git branch and git commands on other branch except master seem to work09:31
why 'git fetch yan'? to fix master?09:31
shruggar tahseen, what info?09:31
tahseen 'git log'09:31
shruggar that's not info, that's a command :P09:31
Ilari tahseen: Try restoring the backups of refs/heads/tms-redesign and logs/refs/heads/tms-redesign (you moved those aside, right?)09:32
vu3rdd left09:32
tahseen did 'git fetch yan' .. still same issue with master09:32
shruggar tahseen, what info used by "git log" are you talking about?09:32
tahseen yup backed them up09:32
I meant where do 'git log' gets the data to generate the log :)09:32
sorry if I'm not making any sense09:32
Ilari tahseen: Then try 'git fsck --full' and see if it throws more complaints than about HEAD and about dangling stuff.09:32
powr-toc joined09:33
jksz joined09:34
Zenopus left09:34
shruggar tahseen, by default "git log" only shows authors, dates, and messages. Those are all part of the commit object. The tree objects are where file names and hierarchies are stored. Information derived from them can be viewed by "git log", but by default they are not used.09:34
bauruine left09:34
bauruine joined09:35
tahseen so when is index used apart from when I add staff and look at status or diff --cached?09:35
shruggar tahseen, when you commit stuff, it is used to generate the tree which gets referenced by the commit object which is created09:35
tahseen yup thats sort of what I understand09:36
Ilari, still the same errors on fsck09:36
Ilari tahseen: Change HEAD to read something like 'ref: refs/heads/tms-redesign'. That should take care of HEAD error.09:37
shruggar tahseen, I think merges also take place directly in the index09:37
tahseen luckily it seems she didn't any uncommited works on master09:37
the other branches seem to be accessible, so those should work fine right?09:37
d0k joined09:37
Zenopus joined09:37
nevyn^_ joined09:38
jksz left09:38
roger_padactor left09:39
jksz joined09:40
kazoo joined09:42
slakmagik left09:43
Ilari tahseen: If you only get dangling errors after that, do 'git reset' (no other parameters or arguments!!!)09:45
poseid joined09:45
Ilari tahseen: (that should rewrite the index file)09:45
slakmagik joined09:46
MattDiPasquale joined09:48
steveire left09:48
steveire joined09:49
steveire left09:49
steveire joined09:49
tahseen well the dangling blob's are still there on git fsck but thigns seem be working just fine with them09:49
Ilari tahseen: Dangling blobs are normal and are generated a lot.09:50
tahseen: Then look at 'git status' and see what local modifications it prints.09:51
unreal left09:51
unreal joined09:51
MattDiPasquale left09:52
robbe- Ahh, some rest can do wonders, I think I got it all working now. Trying to configure apache and not knowing a lot about it can be a pain, apparently. :D09:52
Is there a way I can be /sure/ that I'm serving smart http btw?09:52
tahseen its just showing the regular files that got zeroed09:53
thanks a lot Ilari :) for taking such patience to walk me through with it09:53
seems I better work hard in getting rid of these xfs partitions at the office09:53
whats the reputation of ext4 on such issues? do you find that safe enough or recommend ext3 ?09:54
Yuuhi joined09:55
Ilari tahseen: On latest kernel versions, ext4 is sane, but on earlier versions it was bad.09:55
tahseen: Of course, ext3 is known to not have insane stuff in it...09:56
tahseen 2.6.30 something should be ok right?09:56
courtain joined09:56
tahseen gotta run, seems I need to shutdown the machine09:57
Ilari tahseen: I think that's new enough...09:57
tahseen once again thanks a lot, though I have to wonder about what we did :)09:58
but talk on that later09:58
tahseen left09:58
curtana left09:58
courtain left10:01
mithro left10:01
mattwynne joined10:02
steveire left10:02
brizly left10:02
brizly joined10:03
steveire joined10:03
steveire left10:03
steveire joined10:03
jtdowney joined10:03
unreal left10:04
unreal joined10:04
[1]intripoon joined10:07
petercoulton left10:07
poseid left10:09
tcurdt joined10:09
kazoo left10:09
urkud joined10:09
intripoon left10:10
[1]intripoonintripoon10:10
mountains joined10:10
mountains Hi - if I want a git repo to use a different branch than "master" by default, is this possible?10:10
shruggar mountains, as in, when you clone?10:11
mountains Yes.10:11
shruggar mountains, edit the file "HEAD" in the .git directory. The format should be obvious10:11
cbreak_work you can rename branches10:11
shruggar mountains, (this assumes a bare repository)10:12
poseid joined10:12
cbreak_work I think if you rename them with git branch, git will adapt the settings for it, and other things10:12
maybe also the bare HEAD10:12
courtain joined10:12
cbreak_work there's git remote set-head. Probably not neded if you do what shruggar said10:13
shruggar cbreak, afaik it does not. iirc, I have pushed into a bare repository which never had a "master" branch, and it still defaulted to master10:13
cbreak_work :/10:13
yaotti_aw joined10:14
yaotti_awyaotti10:14
shruggar (as in, it gave an error when trying to check out master after clone)10:14
set-head seems like a more sensible way of doing things, though10:14
poseid left10:16
adrien joined10:16
tvw joined10:18
Ilari AFAIK, if remote HEAD points to existing branch, it doesn't just default to some nonexistent branch and complain on clone.10:19
Dave^| joined10:19
justin-george joined10:21
eighty4 left10:26
shruggar to reproduce what I was talking about: http://gist.github.com/48278710:28
eighty4 joined10:31
marcob joined10:31
yaottiyaotti_aw10:31
docelic left10:32
mbroeker left10:32
murr4y joined10:34
malumalu joined10:34
alexmchale joined10:35
Chaser_ Hi. I have a bare repository of an upstream one. To update the bare repository's master branch to upstream's master I need to do git fetch origin master - correct ?10:37
bauruine left10:39
steveire left10:40
steveire joined10:41
poseid joined10:42
gemmes joined10:43
Joeconyers joined10:44
gemmes Hi all, I just installed git and seems to have went well. Should I now remove the git folder and files I used for the install that is in my root folder?10:45
adrien left10:46
Pepsi1x1 If I want to make a .patch file to send to the owner of a repo, it the correct command to issue: git diff -p > patch.diff10:51
say I have local changes that I want to send to them so they can apply it10:51
because apparantly im being told that a corrupt patch has been produced10:53
shruggar Pepsi1x1, usually one uses: git format-patch <upstream>10:54
Pepsi1x1 ok ill give that w whirtl then, thanks shruggar10:55
shruggar gemmes, how did you install git? what root folder?10:55
Pepsi1x1 a whirl*10:55
gemmes default folder when i login10:55
shruggar gemmes, your home directory?10:56
gemmes yes sorry10:56
robbe- Hmm, is there a way one can pull in changes in a bare repo, or is the only option to push them?10:56
malumalu left10:56
shruggar gemmes, how did you install git? What steps were involved? were you following a guide?10:56
malumalu joined10:56
ereslibre joined10:56
ereslibre left10:56
ereslibre joined10:56
cworth left10:56
treak007_ joined10:57
gemmes yes and git is working10:57
gebi left10:57
steveire left10:58
shruggar gemmes, I didn't ask any yes-or-no questions10:58
cworth joined10:58
robbe- Well, actually, the last one is a yes-or-no question.10:58
robbe- ducks10:58
gemmes long story, i installed x2, one way very long using curl second way shorter.10:59
shruggar gemmes, I assume the answer is "yes, you can remove all the files you used to install git or subdirectories of your home dir", but I have no idea what steps you took to install git, what guide you may have been following, etc, so I have no idea.10:59
mattwynne left10:59
gemmes first way : http://www.angry-fly.com/post.cfm/installing-git-on-centos-511:00
shruggar robbe-, okay, you're right :)11:00
steveire joined11:00
treak007 left11:00
robbe- comes out of hiding11:00
robbe- :-)11:00
felipec joined11:00
eighty4 left11:01
GarethAdams|Work left11:01
offby1` left11:01
DrNick left11:01
tyru left11:01
JEEB left11:01
binjured left11:01
leavittx left11:01
nsussman left11:01
tango_ left11:01
gemmes I cant find page i used for 2nd install but it was a lot shorter. yum install blah then make alias, etc11:02
cpgcpg|away11:03
eighty4 joined11:03
GarethAdams|Work joined11:03
offby1` joined11:03
DrNick joined11:03
tyru joined11:03
JEEB joined11:03
binjured joined11:03
leavittx joined11:03
nsussman joined11:03
tango_ joined11:03
shruggar gemmes, well if you just did "yum install git", than there's no $HOME-related files involved. so yeah, you can delete those :)11:04
gemmes thanks all, *fingers crossed*11:05
shruggar wants the whole world to install things like GoboLinux does11:05
yaotti_awyaotti11:06
Pepsi1x1 ok so to clarify my earlier question11:06
the method with format patch is11:06
commit11:06
git format-patch master11:06
shruggar Pepsi1x1, please type a complete thought, then hit enter11:07
JEEBcz joined11:07
herdingcat joined11:07
Pepsi1x1 hehe ok11:07
shruggar 'cause I don't know if you're done asking your question yet :)11:07
Pepsi1x1 To clarify my earlier question, to produce a patch file, I would first commit my intended changes, then I should issue the command git format-patch master. And this will produce a patch file for each commit11:08
shruggar usually the workflow is: git checkout -b sometopic origin/master; (do some work); git commit; (do some more work); git commit; git format-patch origin/master11:09
and that will produce a patch ready for sending via git send-email, one file per commit11:09
JEEB left11:10
Pepsi1x1 fantastic, i feel confident in that now! Thank you for your help once again shruggar.11:10
shruggar Pepsi1x1, you may want to use git format-patch --signoff, depending on what project you're submitting to11:11
gemmes removed files, git still working :) thanks again.11:12
ralf_e joined11:12
[Po]lentino left11:13
Paraselene__ joined11:14
thiago_home joined11:15
Paraselene_ left11:15
Paraselene__Paraselene_11:15
treak007 joined11:17
treak007_ left11:20
frakturfreak_frakturfreak11:21
slonopotamus joined11:24
telemachus joined11:26
sylr joined11:32
alexmchale left11:33
urkud left11:33
_Vi joined11:34
urkud joined11:34
priidu left11:34
Raydiation joined11:35
psankar left11:35
roger_padactor joined11:35
opalka left11:36
hyperair joined11:37
Raydiation if i do git --bare init in a full directory will it delete all files?11:38
telemachus left11:38
Raydiation and whats the difference to normal git init?11:38
opalka joined11:39
shruggar Raydiation, 1) no 2) it makes a repository with no work-tree (ie, just the ".git" directory's files, no .git folder, no checkout)11:39
Raydiation, so it won't delete all files, but it won't actually be useful11:40
Raydiation shruggar: because i set up a repository with git init, added files, commited and then cloned it to my pc. after pushing some changes it said it will fk up the index if git reset --hard isnt called11:41
slonopotamus left11:41
Determinist left11:41
shruggar ah, that's nice of it. I didn't know it had a sane error message.11:42
Raydiation, faq non-bare11:42
Gitbot Raydiation: Pushing to non-bare repositories is discouraged. See https://git.wiki.kernel.org/index.php/GitFaq#non-bare11:42
Raydiation the error msg was really verbose but it didnt explain good enough why it happened, more what to do next11:43
shruggar Raydiation, in short: "push" doesn't have anything at all to do with work-trees. It only pushes refs. So if you push into a ref which is checked-out, the work-tree doesn't actually get updated.11:43
Raydiation, the intended workflow is to push to something or somewhere that doesn't have a work-tree, then merge that from wherever you want it to be. The simplest (in terms of explanations) way to do this is to create an intermediate "bare" repository11:44
jtdowney left11:45
raichoo joined11:48
__ed left11:48
Raydiation shruggar: ah k, i suppose i can use the post-update hook linked in that side, i have a django programm on that server and i want to update it via git11:49
yaottiyaotti_aw11:49
shruggar Raydiation, it's a common need. Keywords for googling include: post-update hook, post-receive hook, and deployment11:49
Raydiation shruggar: yes i used a very easy hook but i still got the msg, thats why i was buffled11:50
shruggar Raydiation, please note that many people recommend using "git pull" in deployment scripts, which utterly stupid and will break your server11:50
Raydiation cd .. && env -i git reset --hard11:50
telemachus joined11:50
shruggar looks right to me11:50
Raydiation why will it break it?11:51
for instance i want my friend to get a backup too with git11:52
and he should be able to commit changes too11:52
shruggar two reasons I can think of off-hand: "pull" is actually a merge, which can have conflicts. And non-fast-forward pushes will not be properly handled.11:52
Raydiation that sounds like its nearly impossible to do that :/11:53
Aikawa left11:53
shruggar What's impossible?11:54
Raydiation shruggar: work together with my friend updating the scripts via git11:54
slonopotamus joined11:54
HG` left11:54
shruggar what about it do you think would be non-straightforward?11:55
raichoo left11:55
mru joined11:56
henkboom left11:57
Raydiation shruggar: ?11:57
shruggar Raydiation, I haven't got the slightest clue why you think it would be impossible, or difficult, or anything less than easy11:58
gemmes left11:59
Raydiation shruggar: ah ok, i missunderstood the stuff with the deployment scripts11:59
thinker_by joined11:59
henkboom joined12:00
priidu joined12:00
Dawgmatix joined12:00
antgel joined12:00
courtain left12:01
courtain joined12:01
newbie|2 joined12:01
courtaincortana12:02
alexmchale joined12:02
sylr left12:03
deavid about gitolite: it says it requires git 1.6.2, but i feel it's because there are problems cloning empty repos in prior versions... if it's the only reason, I could use older git versions in some situations (by the way, i don't know if there's a better channel for gitolite specifics)12:03
Raydiation shruggar: ah ok, heres the problem again http://pastebin.com/T8ddDNAw12:03
i used the post update script12:04
shruggar deavid, this is the right channel to ask about gitolite. And how old a git version are we talking about?12:04
Raydiation do i have to explicetly silence it because it shows this msg every time?12:04
mru left12:04
sitaram deavid: I got tired of the support load, and since 1.6.2 is old enough, I just went with that restriction. You can try and make it work by removing that line if you like, but if it's older 1.6 then you can expect other issues12:04
deavid shruggar: 1.5.x i think. Debian lenny's version12:04
telemachus left12:04
sitaram deavid: sorry... upgrade!12:04
(or at least I can't support it... no time!)12:05
thinker_by left12:05
shruggar Raydiation, that error message tells you exactly what to do if you want to ignore the message. But instead: DON'T IGNORE THE MESSAGE :P12:05
hipe joined12:05
deavid sitaram: i don't want so much support for it, I only wanted to know if there's a big reason for that12:06
bentob0x joined12:06
shruggar Raydiation, just push somewhere other than the checked-out ref. Or check out another ref. reset --hard some/other/ref works fine and doesn't change what ref you're on12:06
deavid i guess i'll end updating git packages from backports in these workstations12:06
shruggar deavid, if you're using git 1.5.x it will be hard to get support in here for anything at all, really. :) Everyone will eventually say "wait, what version are you using?" followed by "upgrade!"12:07
cortana left12:07
deavid shruggar: ok, so i guess it will give some strange errors12:07
cortana joined12:07
deavid i wanted to use a newer version for server, but i know some clients are old12:07
i can give support to my users if are common things on git12:08
FauxFaux Speaking of releases, how does the rc process work? I notice 1.7.2 is up to rc3.12:08
Not that it has any cool features or fixes in. :)12:09
antgel hi people. please see my paste at http://paste.scsys.co.uk/46910. this pull command used to work, i'm sure12:09
cortana left12:09
Pieter antgel: you probably checked out a different branch12:09
FauxFaux antgel: git remote -v probably lists some other names for that url.12:09
sylr joined12:09
antgel where is my "default configured remote" specified? it might have changed when knittl helped me fix the repo recently12:09
Raydiation shruggar: what do you mean with push somewhere other? do i have to initialize a a branch on the server which then merges with the master branch after post-update?12:10
antgel Pieter: i only have one branch (master)12:10
Ryback_ joined12:10
curtana joined12:10
skratool joined12:10
sylr left12:10
unreal left12:10
skratool how can I checkout one file from other local branch, to local working tree?12:11
knittl antgel: shouldn't have changed12:11
mcella joined12:11
antgel FauxFaux: that command lists that url twice, as fetch and push12:11
knittl but it's in .git/config12:11
unreal joined12:11
slonopotamus skratool: git checkout <branchname> -- <path>12:11
knittl antgel: this is a different repo now, isn't it?12:11
gebi joined12:12
sylr joined12:12
antgel knittl: no, same one. but in the public post, i substituted $something with "munge" :)12:12
knittl antgel: what branch are you on? (git branch)12:13
antgel knittl: master12:13
git remote returns "origin"12:13
knittl proto.munge.com is not your default origin12:14
Bass10 joined12:14
skratool slonopotamus: thanks!12:15
knittl antgel: you'd have to do git pull <repo> master12:15
beni- joined12:15
telemachus joined12:15
antgel knittl: http://paste.scsys.co.uk/4691112:15
ah12:15
looking good. my crib sheet must have been incorrect12:16
knittl but it is your default remote. strange it wouldn't pull from master12:16
antgel: make sure to not pull outdated/removed history ;)12:17
antgel knittl: don't, just *don't* :)12:17
knittl hm?12:17
telemachus left12:17
parasti joined12:17
antgel as in, don't talk to me about fubaring the repo12:18
knittl i'm simply telling you to check history after pulling12:18
sylr left12:18
antgel knittl: british humour12:18
henkboom left12:18
knittl after all you don't want to go through the same procedure of rebasing again ^^12:18
antgel looks good12:18
knittl ok, the brits12:18
sylr joined12:19
alexmchale left12:20
henkboom joined12:21
yaotti_awyaotti12:22
poseid left12:23
mar77i joined12:25
sylr left12:25
TheNewAndy joined12:26
skratool left12:26
sylr joined12:26
urkud left12:27
JohnTheSavage joined12:29
josh0x0 joined12:29
hipe left12:31
raichoo joined12:31
sylr_ joined12:32
sylr_ left12:33
Adaptee joined12:33
pgib left12:34
steveire left12:34
steveire joined12:36
steveire left12:36
steveire joined12:36
girishr left12:36
felipec left12:40
t0rc joined12:40
Bass2 joined12:40
tchan1 joined12:40
Bass2 left12:41
andrewl left12:42
Bass2 joined12:42
travlr left12:42
tchan left12:42
travlr joined12:42
Bass10 left12:43
bauruine joined12:43
Tricia joined12:44
IslandUsurper joined12:46
Rhonda I have a question about this blog article: http://feeding.cloud.geek.nz/2010/07/cherry-picking-range-of-git-commits.html12:46
The commit IDs are given in short form - how to I get that? The mentioned "tree" alias doesn't give it for me.12:46
frsk Does it work if you do "git log --pretty=oneline --decorate --graph"?12:47
mar77i that's the alias :)12:48
LiamH joined12:48
mar77i it's funny, because I get all sha1 sums, too12:48
Rhonda frsk: That gives me the complete commit hashes, not the short ones that are displayed in the blog entry. :/12:48
steveire left12:48
frsk aha12:48
So it's not an issue with aliases, but git log12:48
Rhonda: git version?12:49
Rhonda 1.7.112:49
frsk: Does it give you short commit IDs?12:49
frsk Rhonda: No, but if I do --oneline instead of --pretty=oneline, it does :-)12:50
dropdrive joined12:50
frsk Consistent behaviour..12:50
Rhonda Oh, right!12:50
--online works for me too.12:50
frsk great =)12:50
steveire joined12:50
Rhonda Now could this be considered a bug when --pretty=online behaves different to --online?12:50
dropdrive Is there a way to extract (from a huge repo) a new repo that contains only the history for one file? filter-branch seems to work on subdirectories only.12:51
Rhonda HAH!12:51
frsk: --abbrev-commit12:51
man git-log said --online is shorthand for --pretty=online --abbrev-commit12:51
Gitbot Rhonda: the git-log manpage can be found at http://git.or.cz/man/git-log12:51
mountains dropdrive: Start it from the root of the repo?12:51
mar77i cool12:51
--oneline12:51
mountains dropdrive: filter-branch is the right tool for this.12:51
Rhonda thanks frsk for pointing right direction. :)12:51
frsk Rhonda: And thanks for explaning, I got a bit confused myself :)12:52
mar77i not --online xD12:52
dropdrive mountains: Okay, thanks, I'll give it a shot.12:52
jtauber joined12:53
Rhonda mar77i: feel free to keep my typos ;)12:53
aziz left12:54
aziz_ joined12:54
tstclair joined12:55
mar77i chuck norris doesn't approve typos :)12:55
nataraj joined12:58
Rhonda mar77i: It seems git does neither. …12:59
fatal: unrecognized argument: --online12:59
bauruine left13:00
bauruine joined13:00
simmel joined13:04
TeckniX joined13:04
slonopotamus left13:05
justin-george left13:05
nataraj How do i 'push' to origin branch on remote host?13:06
workmad3 nataraj: depends on if your local branch is a tracking branch or not13:06
simmel I tried to search in the man-page, but what takes precedence of the git-configs? .git/config -> ~/.gitconfig → /etc/gitconfig?13:06
marc_kdab_ left13:06
hipe joined13:08
elb0w Does git have file size limits?13:08
flo` joined13:08
flo` hi13:08
marc_kdab_ joined13:09
jrmuizel joined13:09
flo` may i make within a git tree, and do i have to make clean before using git pull or git bisect?13:09
simmel Seems like it was how I thought it was.13:09
hipe left13:09
nataraj workmad3, local master has to be tracking branch by default?13:10
workmad3 your local master will track origin/master by default, yes13:11
simmel left13:11
workmad3 unless you created the repo locally and are pushing for the first time13:11
nataraj if i merge to local master, i can then merge to the remote/origin?13:11
workmad3 nataraj: sort of... what you'd do is merge your branch into master and then push your master to origin/master13:12
hipe joined13:12
marc_kdab_ left13:12
steveire left13:12
rseifert joined13:12
cbreak_work you can not merge to remotes. Merging is local only. What you can do is fast-forward, which is what push does13:12
workmad3 ^^13:13
hipe left13:13
steveire joined13:13
steveire left13:14
steveire joined13:14
workmad3 nataraj: or you could just push your local branch to the remote with a 'git push origin local_branch_name:remote_branch_name'13:14
and I think that will then make that local branch a tracking branch of the new remote branch13:15
nataraj ok13:17
squentin left13:17
marc_kdab_ joined13:17
jrmuizel left13:17
marc_kdab_ left13:18
nataraj left13:18
marc_kdab_ joined13:18
sivy joined13:18
roop left13:19
marc_kdab_ left13:19
pgib joined13:19
marc_kdab_ joined13:20
powr-toc left13:20
marc_kdab_ left13:23
brntbeer joined13:23
tizbac joined13:23
marc_kdab_ joined13:24
marc_kdab_ left13:25
ChUrP joined13:25
HG` joined13:26
pgib left13:26
marc_kdab_ joined13:26
marc_kdab_ left13:28
marc_kdab_ joined13:29
maleknet left13:29
marc_kdab_ left13:31
marc_kdab_ joined13:32
spearce joined13:32
spearce left13:32
dids joined13:32
spearce joined13:33
raichoo left13:33
ChUrP left13:33
marc_kdab_ left13:33
sammcd joined13:33
martengo joined13:34
mFacenet joined13:34
ChUrP joined13:34
marc_kdab_ joined13:34
didlix left13:35
didsdidlix13:35
squentin joined13:35
khelll joined13:37
MattDiPasquale joined13:37
__ed joined13:38
mFacenet left13:38
ChUrP1 joined13:39
unreal left13:39
unreal joined13:40
ChUrP left13:40
sylr left13:41
yaottiyaotti_aw13:41
sylr joined13:43
aziz_ left13:45
aziz_ joined13:45
tizbac left13:45
scarabx joined13:46
level09 joined13:46
brntbeer left13:47
thomas_b joined13:47
girishr joined13:50
mFacenet joined13:50
kukks joined13:52
hugoxrosa joined13:53
level09 left13:53
steffkes- joined13:54
ChUrP joined13:54
scarabx left13:55
unreal left13:55
rayners joined13:55
unreal joined13:56
steffkes left13:56
ChUrP1 left13:56
bauruine left13:57
masonkramer joined13:57
flazz left13:57
durarara joined13:58
TheNewAndy left13:58
masonkramer left13:58
flazz joined13:59
beatak joined13:59
ehabkost joined13:59
xuxc000 joined13:59
level09 joined14:00
bdiego joined14:00
loincloth joined14:01
freimatz left14:01
bauruine joined14:01
kukks left14:03
_Vi left14:03
ianmcorvidae left14:03
ianmcorvidae joined14:03
_Vi joined14:03
charon elb0w: not really but most operations require at least twice the size of the largest blob processed in terms of RAM14:04
merlin83 left14:04
_Vi left14:04
charon elb0w: so working with large (hundreds of MB or more) files isn't so practical unless you have a ton of memory14:04
_Vi joined14:04
mFacenet left14:05
EricInBNE left14:06
smuf joined14:06
Remixman joined14:06
HG` left14:07
unreal left14:08
unreal joined14:08
EricInBNE joined14:09
mFacenet joined14:09
gbacon joined14:10
merlin83 joined14:10
merlin83 left14:10
merlin83 joined14:10
smple joined14:10
altrux joined14:10
ChUrP1 joined14:11
ChUrP left14:14
hugoxrosa left14:15
roop joined14:15
smple Hey, I'm trying to set up something simple and i'm falling on my face. I'm wondering if you guys could point me in the right direction of my screwup14:17
project2501b left14:17
kpreid joined14:17
Ryback_ left14:17
workmad3 smple: possibly... describe your problem? :)14:18
smple pretty much I'm trying to set up a remote repository with two branches, stable and testing (i'm using gitosis), which i can then pull out as two separate repos on my end14:18
hohoho left14:18
smple however i can't seem to pull in a branch on the servers side, nor can i seem to create one on my end14:18
Ryback_ joined14:18
cbreak_work just push branches to the other repo14:18
smple creating one on my end (via git branch -a testing) gives me a "fatal: Not a valid object name: 'master'." error14:18
workmad3 smple: you don't get separate repos from branches on the server14:18
cbreak_work and creating on your side is with git checkout -b or git branch14:18
you can make separate repos if you want14:19
smple workmad3, i understand that14:19
so git checkout -b testing, then git push?14:19
workmad3 smple: good :) and then as cbreak_work said... 'git checkout -b testing; git push origin testing:testing'14:19
cbreak_work you'd have to git push destrepo branchname14:19
workmad3 ah yeah, you can shorten it to git push origin testing14:20
smple does "error: src refspec testing does not match any.: mean anything to you guys?14:20
adrien joined14:20
ChUrP joined14:20
cbreak_work how did you create your repo?14:20
smple via gitosis14:20
cbreak_work does git log show anything?14:20
without commits, you can't make branches.14:21
smple it shows my initial commit on testing14:21
cbreak_work ok14:21
smple waaaait14:21
what14:21
one second14:21
why is it that i can git checkout testing and still be on branch master?14:21
jrmuizel joined14:21
ChUrP1 left14:22
cbreak_work getting an error?14:22
smple no14:22
git checkout testing14:22
batok joined14:23
smple (no error) git status #On branch master14:23
unreal left14:23
unreal joined14:23
charon is 'testing' a file but not a branch?14:23
smple hmmmm14:24
checkout -b didn't put me onto another branch?14:24
adrien _Vi: external storage for git is pretty nice but there a few problems: mostly, I'm trying to get and older commit and git status keeps on complaining, disabling the clean filter for a minute solves it but there are definitely some things to iron out ;-)14:24
smple git branch -a still fails14:24
and git branch doesn't show me as being on testing14:24
workmad3 smple: can you create a gist with your sequence of commands so far, please?14:25
_Vi adrien, You can use some stronger command (like "git stash" or "git update-index").14:25
smple git init14:25
brntbeer joined14:25
smple git branch -a testing14:25
[failure]14:25
workmad3 smple: right, so you haven't got any commits...14:25
Adriaan left14:26
smple i can pull from the remote repo14:26
workmad3 smple: so what exactly do you expect git to branch?14:26
smple I want a branch14:26
called test14:26
*testing14:26
_Vi adrien, Is it still using SSH or you have switched it to some other protocol (rsync?)14:26
smple that i can push onto the other side14:26
workmad3 smple: yes, but a branch needs a commit to point to...14:26
smple or well a branch called anything that i can push it to the remote side as testing14:26
adrien _Vi: git stash and git reset --hard didn't work, but I'm not using the "anti-clean" filter (I've forgotten the name)14:26
smple workmad3, can I have differently named branch names?14:26
_Vi adrien, "smudge".14:26
workmad3 smple: a branch is, after all, a branch-point in your commit history14:26
smple yeah14:27
workmad3 smple: but you have no commits, so there is nothing to branch14:27
smple i'm a little unsure as to the syntax of doing that14:27
adrien _Vi: right14:27
_Vi: it's local so using cp :P14:27
kpreid left14:27
workmad3 smple: or, in other words... add something to your repository before trying to branch it!14:27
smple ok14:27
i've added something locally14:27
workmad3 and committed it?14:27
smple yep14:27
added the remote origin14:27
bauruine left14:28
workmad3 ok, so now do 'git checkout -b testing'14:28
smple tried to "git push remote origin testing"14:28
and it failed14:28
_Vi adrien, Why not using "smudge"? What you do after checking out old commit?14:28
smple hmmmm14:28
tedoc2000 joined14:28
smple workmad3, won't this break the other branches though?14:28
workmad3 smple: no14:28
smple: why would it affect any other branches?14:29
unreal left14:29
workmad3 you're creating a new branch14:29
smple on the remote side14:29
it wouldn't be a fast forward merge14:29
on master14:29
unreal joined14:29
workmad3 smple: does the repo exist on the server?14:29
smple: and if so, why on earth are you doing a git init locally?14:29
flo` left14:29
charon [16:25] <smple> git branch -a testing14:30
you know, you could *read* the message that gives:14:30
"fatal: -a and -r options to 'git branch' do not make sense with a branch name"14:30
workmad3 smple: if you have a remote repo, you do 'git clone <url>' to get your repository, not a new 'git init'14:30
adrien _Vi: because only having external storage is more practical for me: I have several projects with different needs wrt what to download and when, so managing it by myself and not in git works better for me14:31
my problems might well be the absence of the smudge filter however14:31
smple hmmmmm14:31
ah14:31
workmad3, that makes more sense now14:31
tlir left14:31
_Vi adrien, "clean" is to turn the file into it's hash. "smudge" is to turn the hash into a file back. You will get a oneliner with digits instead of a file unless you use "smudge" filter.14:32
bradallen137_ joined14:32
workmad3 smple: yeah... if you create a new repository, you automatically aren't in a fast-forward situation ;)14:33
adrien _Vi: yes, of course: what I meant is that it was better for me to do something like: if [ ! -e $file$sha1 ]; then wget --quiet -O $file$sha1; fi14:33
smple hmmm14:34
fleet1ng joined14:35
ShooterMG left14:35
fleet1ng left14:36
_Vi adrien, Would it be much better if Git supported such tricks [semi-]officially?14:36
ChUrP1 joined14:37
herdingcat left14:37
thwart joined14:38
flazz left14:39
tcurdt left14:39
galderz left14:39
flo` joined14:39
flo` hi14:40
ChUrP left14:40
t0nic[w] joined14:40
flo` i'm git-bisecting atm. how can i find out at which commit i am atm?14:40
flazz joined14:40
galderz joined14:40
flo` i.e., how can i find out some string that identifies the program version i just compiled?14:40
unreal left14:40
bauruine joined14:40
unreal joined14:41
shruggar flo`, git rev-parse HEAD14:41
flo` shruggar, so, i can later tell git bisect that the string git rev-parse told me is good or bad, right?14:42
adrien _Vi: yeah, most probably: it works pretty well but doing it in git directly, without relying on the filter functionnality would probably be better, and it would probably make it possible to decide when to get the actual file: always when cloning, with a command ('git extstorage get path/to/file' for instance), never...14:42
t0nic[w] left14:42
earthome joined14:42
shruggar flo`, yes. You can also just say "git bisect good" or "git bisect bad", and it defaults to the one you are currently on14:43
adrien btw, it got a 4.2GB repo down to a 45MB one, which compresses down to 3MB for transfer, so it's definitely worth it in my case14:43
:-)14:43
flo` shruggar, good. the thing is, i actually am tracking three errors.14:43
and as long as they are all good, it's okay. but as soon as they diverge, i need to remember the current point and track them seperately14:44
shruggar flo`, well track one at a time, or "git bisect" won't work ;) you can use "git bisect skip" to mark the commit you're currently at as "I can't tell from this one"14:44
flo` thank you ;)14:44
hipe joined14:44
galderz left14:44
flo` i'm off again. thx14:45
flo` left14:45
_Vi adrien, May be the most simple way would be marking of blobs as unpackable, e.g. they will always be separate files without delta packing attempts.14:45
shruggar _Vi, "unpackable" would mean "unfetchable", would it not?14:45
eighty4 left14:45
_Vi E.g. usual source code is usual blobs, "media" blobs are always objects.14:45
aziz_ left14:46
_Vi shruggar, Or pack each of them to the separate trivial pack (without any compression algorithms).14:46
ustunozgur left14:46
_Vi (Or with some specialized compression algorithm that works with big aligned blocks)14:47
ustunozgur joined14:47
adrien for _my_ case, making them unfetchable and actually copying them to another place (http, ftp, rsync, nfs...) would be good, I don't know if it'd still give a kind of pointer/reference to the original object (the sha1 for instance)14:48
xuxc000 left14:48
opalka left14:48
_Vi shruggar, "Unfetchabe" is current idea with filters. Git only stores hash of a file, external tools manage how to get them (and where to put).14:48
beni- left14:48
ustunozgur left14:48
Remixman left14:49
_Vi E.g. to add special new object type "pseudo-blob" that will tell git that this blob is not in object database and should be fetched from external source.14:50
unreal left14:50
unreal joined14:50
ChUrP1 left14:51
JohnTheSavage left14:52
offby1`offby114:52
offby1 left14:52
offby1 joined14:52
MetaCosm joined14:53
shruggar _Vi, probably makes more sense to add a filter to contrib14:53
unreal left14:54
tstclair left14:54
unreal joined14:54
malumalu left14:56
mFacenet left14:57
kpreid joined14:57
warlock_mza joined14:57
outoftime left14:57
outoftime joined14:58
JohnTheSavage joined14:58
outoftime left14:58
JohnTheSavage left14:58
ChUrP joined14:59
sylr left14:59
outoftime joined14:59
smple Hey, if i have a remote server that has multiple branches14:59
outoftime left14:59
project2501b joined14:59
smple is there any way to pull a specific branch down?14:59
_Vi shruggar, OK. Should I send a patch that adds it to "/contrib"?14:59
smple git clone hasn't pulled it14:59
Pieter smple: git pull origin branchname14:59
marcopolococo joined14:59
mountains left15:00
outoftime_ joined15:00
hagabaka joined15:00
hagabaka left15:00
hagabaka joined15:00
shruggar _Vi: sure. If nothing else, it will generate discussion, which is good.15:00
smple Pieter, ok, i'm still on branch master on my repo15:00
if i git pull will it work nicely?15:00
SlickT10 joined15:00
thwart left15:01
Pieter smple: sure, it'll merge the changes of that branch into your master branch15:01
FauxFaux Heh, I just tried the gsoc svn-dump-fast-export. It's anihilatingly fast. Now to just go add support for generating branches so I can actually check-out my repo.15:02
galderz joined15:02
galderz left15:02
galderz joined15:02
apsysoev1 left15:02
Fangorn_ joined15:02
smple sweet :d15:03
thm joined15:03
adrien something I would have liked was to clone a repo which has blobs in it and get blobs stored outside of the clone, for that, filters did not work (not triggered)15:03
thm how can I reject (via a hook, maybe) a push that is a descendant of some well-known revision (hash)?15:04
Ilari smple: Does 'git branch -r' list it?15:04
tizbac joined15:04
Imran-UK joined15:04
Ilari thm: Does the repo contain that commit already (reachable from any of its refs)?15:04
thm: Ah, aren't there ready-made "blacklist" hooks?15:05
thm REPO1 contains it, REPO2 should not, and devs are pusing from REPO1 to REPO215:05
+h15:05
alsuren_ joined15:06
galderz left15:06
galderz_ joined15:06
smple yep15:07
_Vi shruggar, Where should I send it?15:07
khelll left15:07
FauxFaux Also, interestingly, the repack -a -d'd git repo is bigger than the source svn one.15:07
alsuren_ I want to have an alias grep = grep -C2 -n but the closest I can get is gr = grep -C2 -n15:08
bradallen137_ left15:09
shruggar _Vi, see Documentation/SubmittingPatches in git.git ( if my gitbot-fu is up to it: b7c600f132949b7f995ac2643ab9728272d3aaab:Documentation/SubmittingPatches )15:09
Gitbot [git b7c600f13]: http://tinyurl.com/27ddta8 -- Merge branch 'master' into next15:09
_Vi shruggar, OK, sending to general list.15:09
shruggar hm apparently not: http://repo.or.cz/w/git.git/blob/b7c600f132949b7f995ac2643ab9728272d3aaab:/Documentation/SubmittingPatches15:09
_Vi (when it be ready)15:09
FauxFaux GIRL15:09
(Wrong window)15:10
alsuren_ is there any way to change the default options for git grep, or do I just have to train myself to use an alias?15:10
charon shruggar: you can say <HEAD:Documentation/SubmittingPatches>15:10
Gitbot [git SubmittingPatches]: http://tinyurl.com/ybt3xrd [blob]15:10
adamv joined15:10
Ilari thm: Anyway, there are "blacklist" hooks that can do it.15:10
shruggar charon, ah, <> is the key, then. I coulda sworn I had tripped it by accident without those, before. Maybe I was giving a tree's sha, though.15:11
h32Lg joined15:11
apsysoev left15:11
jfkw joined15:11
ChUrP left15:12
charon alsuren_: no. aliases cannot override builtins because that would make git very hard to script.15:12
shruggar: i think the <> are required unless it's an sha1 prefix of an object... those are parsed anyways (which is what happened for you)15:13
shruggar testing: b7c600f132949b7f995ac2643ab9728272d3aaab:/Documentation/SubmittingPatches15:14
Gitbot [git b7c600f13]: http://tinyurl.com/27ddta8 -- Merge branch 'master' into next15:14
raichoo joined15:14
shruggar just wondered if missing the / had anything to do with it15:14
level09 left15:14
cbreak_work left15:14
andrewl joined15:15
ChUrP joined15:19
kpreid left15:19
radioman-lt left15:19
radioman-lt joined15:20
kipras joined15:20
poseid joined15:21
Nemurenai joined15:22
zhou__ joined15:22
Yuffster joined15:24
zhou__ left15:24
Xiaobo joined15:24
jspiros left15:24
alex__c2022 joined15:25
jspiros joined15:25
poseid left15:25
ChUrP1 joined15:25
tahorg left15:25
ChUrP1 left15:26
thm and, slightly OT, does someone know whether git hooks on sourceforge can use perl?15:28
hugoxrosa joined15:28
ChUrP left15:28
skoop left15:31
cirwin joined15:32
aspotashev joined15:32
aziz_ joined15:34
aspotashev left15:34
kenichi joined15:35
aspotashev joined15:35
deavid sitaram: it is ok to create repositories in subdirs? i already have them in dirs and i wish to preserve them15:35
(in gitolite)15:35
aspotashev left15:35
amerine left15:35
hohoho joined15:35
warlock_mza left15:35
loinclot_ joined15:35
sitaram deavid: take a wild guess...15:36
flo` joined15:37
flo` hi15:37
deavid i could try15:37
flo` can git bisect be restricted to certain files?15:37
TeckniX left15:37
IslandUsurperIslandUsurperAFK15:37
flo` if i know that there's a bug in the wlan driver, i assume i have to do less bisections as if i didn't know, right?15:37
deavid sorry for asking but i dind't find a short version of the docs with the specs... i'm reading the entire documentation and that's very slow15:37
charon flo`: hint: the git-bisect manpage synopsis says: git bisect start [<bad> [<good>...]] [--] [<paths>...]15:38
sitaram deavid: precisely... so much doc ==> so many features, right? And you think I'd miss something so fundamental? ;-)15:38
flo` oh... oops ;) thank you charon ;)15:38
Determinist joined15:38
aspotashev joined15:38
smuf left15:39
loincloth left15:39
deavid sitaram: i don't know. a short document with specs, limitations, and complex examples would be faster for me to get an idea of what gitolite can do. But i guess i should keep reading the docs15:40
flo` charon, when specifying a path, will then only that path be updated, or the whole tree?15:40
deavid anyway, big documentation is far better than only short documentation or no docs at all :-)15:41
tahorg joined15:41
sitaram deavid: specs, limitations, complex examples? and short? you don't want much do you?15:41
charon flo`: updated during checkout? the whole tree of course, git needs to check out the full snapshot of that commit15:41
joelmccracken joined15:41
flo` okay. thanks ;)15:41
rajeshsr_ joined15:41
joelmccracken left15:42
charon flo`: it's merely a filter that says: commits that do not affect <paths> cannot have introduced the bug15:42
sitaram deavid: the "specs" are complex enough that most of them I could only put into the example config file -- rather like squid's config file, it's commented code that explains what it does as it goes.15:42
flo` okay ;)15:42
sitaram deavid: so technically that's not even *in* the docs, so you could just read example/* and be done15:42
deavid sitaram: so that's the problem, i didn't found that example earlier ... hmmm15:42
adrien sitaram: btw, gitolite will fail if you have a ~/.ssh/authorized_keys2 file and not a ~/.ssh/authorized_keys (no '2')15:42
deavid i guess is somewhere in the debian package15:43
steffkes- left15:43
deavid sitaram: i found them :-) they were in /etc/gitolite and, yes, that was what i wanted to read :-)15:44
opalka joined15:45
epicmath joined15:45
cytrinox_ joined15:45
xiong joined15:45
loinclot_ left15:45
epicmath How can I make git-instaweb recognize httpd as apache2? My distro includes httpd (apache2) but it isn't recognized.15:45
brntbeer left15:45
loincloth joined15:46
kpreid joined15:46
sitaram adrien: isn't that obsolete now?15:46
tstclair joined15:47
Joeconyers left15:47
adrien sitaram: it is but some might still have that file, so it's compat15:47
Wraithan left15:47
adrien basically: authorized_keys doesn't exist, try authorized_keys215:48
cytrinox left15:48
cytrinox_cytrinox15:48
sitaram adrien: man ssh, sshd, ssh_config, sshd_config, none of them mention authorized_keys215:48
tjholowaychuk joined15:48
adrien http://sial.org/howto/openssh/#s6 -> "The authorized_keys2 file has been deprecated since the OpenSSH 3.0 release (2001). " but I had it on one computer15:49
flo` left15:49
adrien I was only suggesting that if it took one or two lines of code, as far as I'm concerned, I wouldn't make big changes to support that15:50
sitaram adrien: I don't even support git older than 1.6.2, and thats a darn sight newer than 2001 ;-) sorry...!15:51
adrien: it's not the # lines of code. It's the testing and double checking and all that, and understanding the precedence, and so on...15:52
bradallen137_ joined15:55
carutsu joined15:56
adrien sitaram: hahaha, absolutely no problem ;-)15:56
epicmath left15:56
sitaram :)15:56
amerine joined15:57
GDorn joined15:59
babusri joined15:59
roop left16:00
elmob left16:00
rox` left16:00
tjholowaychuk is it possible to have a submodule for only a portion of the tree? for example if you have ./lib/mylibrary, can I have a submodule that is only "mylibrary" and does not contain all the cruft above that16:01
MattDiPasquale left16:01
tjholowaychuk hard to explain16:01
MattDiPasquale joined16:02
charon tjholowaychuk: not as such, though you can do a "reverse subtree merge" style dance to make a modified copy of the sub-repo which only "sees" 'mylibrary'16:02
poseid joined16:03
brntbeer joined16:03
charon or maybe i'm misunderstanding. is lib/mylibrary an existing submodule content, or the path in the super-repo where you want your submodule to reside?16:03
TeckniX joined16:04
steveire left16:04
g0bl1n joined16:05
Xiaobo left16:05
rox` joined16:06
justin-george joined16:08
hobodave joined16:10
sunn left16:11
Modius joined16:11
martengo left16:11
Modius left16:12
sunn joined16:12
marcopolococo left16:13
Modius joined16:13
simplechat joined16:14
simplechat Hey guys16:14
girishr left16:14
shruggar .16:14
offby1 !16:14
smple left16:14
shruggar ?!16:14
MattDiPa_ joined16:15
simplechat My git repository is now completely and utterly broken :(16:15
shruggar simplechat, nuh-uh!16:15
Yuffster left16:15
shruggar simplechat, be more descriptive, we'll prove you wrong ;D16:15
simplechat seriously16:15
i push on one branch16:16
i can pull it on two and both work16:16
brb16:16
brosner joined16:16
charon simplechat: pushing "on" a branch already indicates you misunderstand push.default in man git-config16:16
Gitbot simplechat: the git-config manpage can be found at http://git.or.cz/man/git-config16:16
priidu left16:16
MattDiPasquale left16:17
thiago_home left16:17
Yuffster joined16:18
EricInBNE left16:19
jason237 shruggar: I completely broke a git repository once by setting it to be its own alternate and running git gc16:19
oops16:20
raichoo left16:20
shruggar jason237, sounds like a bug to me16:21
flo` joined16:21
flo` hi16:21
steveire_ joined16:21
steveire_ left16:21
steveire_ joined16:21
charon shruggar: not really, when setting alternates you really have to know the implications16:23
resmo joined16:23
charon see e.g. the huge warning against clone --shared in the manpage16:23
flo` how can i display all commits with their short description (like "added foo") that affect a certain file16:23
or a certain dir?16:23
hohoho left16:23
plediii left16:23
shruggar charon, sure, you need to know the implications, but "I don't need my own objects, I can use myself for reference!" sounds detectably stupid16:23
sukima joined16:24
Dawgmatix left16:24
hohoho joined16:24
jason237 flo`: git log FILE?16:24
shruggar flo`, git log --oneline -- <file>16:25
flo` oh, thanks16:25
sukima Odd question but can you move a commit history from one branch to another? Say I have a bunch of commits which I want to keep but realized they are on the wrong `branch (ie master vs develop) can I move them?16:25
flo` i couldn't find a FILE option in the manpage :(16:25
jason237 sukima: sounds like a job for rebase16:26
ProperN[out] joined16:27
ProperN[out] left16:27
ProperN[out] joined16:27
sukima jason237 perhaps my knowledge of rebase is somewhat limited as I don't see how it can do a "move"16:27
shruggar sukima, you want git rebase --onto16:27
sukima furiously starts reading the man page again. Thanks!16:28
krawek joined16:30
ProperNoun left16:30
ProperN[out]ProperNoun16:30
corni joined16:30
jason237 question: is there any way to query what remote branch my current branch merges with? that is, the ref in my repository, rather than branch.foo.merge which is the ref on the remote16:30
hipe left16:30
shruggar jason237, I thought it was "git branch -v", but that doesn't appear to be showing the ref, only the upstream commit16:33
jason237, git config branch.<branchname>.merge will show it, but sounds a bit low-level for my taste16:33
nevyn^__ joined16:34
jason237 shruggar: and that's the ref on the remote, which isn't the same16:34
nevyn^__ left16:34
rajeshsr_ left16:34
jason237 i.e. it's refs/heads/foo rather than refs/remotes/origin/foo16:34
bball__ left16:34
shruggar ah, of course this will work: git rev-parse --symbolic-full-name @{u}16:35
bball__ joined16:35
flo` may i use git-revert when i only did the following: git-bisect, create a .config, make16:36
or do i have to clean first?16:36
alester left16:36
barismetin left16:37
shruggar a bit brute-forcily, though :)16:37
flo`, what?16:37
tmz joined16:37
jason237 shruggar: ah, I didn't know about @{u}, thanks!16:37
flo` well, i simply clean up before :D16:38
nevyn^_ left16:38
asarih joined16:38
trivol left16:38
asarih hi. how do you delete a remote branch on the remote repository? (not the reference to a remote branch on the local repo.)16:39
ShooterMG joined16:40
whaley left16:41
kpreid left16:41
curtana asarih, git push --delete remote branchname16:43
asarih curtana: ah. thanks!16:43
curtana if you have a slightly old version of git then you'll have to do: git push -f remote :branchname16:43
asarih let me try the 'new' way.16:43
curtana if you have a slightly older version again: git push remote +:branchname16:43
they all do the same thing, but you can see the evolution of the syntax of the command :)16:43
adrien is there a way to make it impossible to write/commit on a branch? I'd like to be able to get a remote but be forbidden to push to it (don't have gitolite where I'd push)16:44
shruggar left16:44
sako joined16:45
tomasm- joined16:45
Ilari adrien: You want to set so you can't accidentially push to some remote?16:45
adrien: Or just for some branches?16:46
tomasm- is there a git browser module for cakephp (or php in general)?16:46
ProperN[out] joined16:46
rajeshsr_ joined16:46
ProperN[out] left16:46
ProperN[out] joined16:46
adrien Ilari: to some branch, but to some remote would work too (either would work for me)16:46
cirwin left16:47
thoraxe left16:47
warthog9 left16:47
thoraxe joined16:48
ereslibre left16:48
Ilari adrien: Well, if you have shell access to remote side, you could use update hook on remote side. For preventing push to local side, set the pushurl for it to something invalid.16:48
adrien right, good idea, thanks :-)16:48
asarih curtana: great. It worked. thanks again.16:49
adamv left16:49
ProperNoun left16:49
ProperN[out]ProperNoun16:49
adamv joined16:49
Ilari adrien: 'invalid:invalid' should be one URL usable for invalid URL.16:49
apsysoev joined16:49
adrien thanks, I'll do that in a few minutes16:49
adrien is moving repos and branches around16:49
grumpytoad left16:50
IslandUsurperAFKIslandUsurper16:50
m104 joined16:50
steveire_ left16:51
malditogeek left16:52
rpg joined16:53
kpreid joined16:53
mar77i w00t16:53
mar77i seinen matetee schlürft16:53
gebi left16:53
brntbeer left16:54
Eaven joined16:54
grumpytoad joined16:54
brntbeer joined16:55
brntbeer left16:56
tomasm- left16:57
rlotun left16:57
henkboom left16:58
henkboom joined17:00
aresnick joined17:00
Schmallon left17:01
Imran-UK left17:01
p3rg2z joined17:02
nevyn^_ joined17:02
rajeshsr_ hi all17:02
is there any lib to write git hooks?17:03
would prefer in python or perl..17:03
mcella left17:03
simplechat Is there any way to force a reset?17:06
error: Entry 'stable' not uptodate. Cannot merge.17:06
when i'm trying to pull on stable17:06
how am i supposed to update something if i can't update it?17:06
ntoll joined17:06
rajeshsr_ simplechat: git reset --hard17:07
?17:07
ProperN[out] joined17:08
ProperN[out] left17:08
ProperN[out] joined17:08
ProperNoun left17:11
ProperN[out]ProperNoun17:11
simplechat rajeshsr, thanks :D17:12
rubydiam_ joined17:14
Dawgmatix joined17:16
Ilari rajeshsr_: You can write git hooks in any language that can be compiled to binary or supports shellbang execution.17:16
xperience joined17:16
nevyn^_ left17:16
asarih left17:17
Ilari rajeshsr_: The git just checks if hook is executable and if it is, it uses execve(2) to run it. Whatever kernel can run can be used as hook.17:17
rajeshsr_ Ilari: yes, i understand that. But it can get easier to write good hooks with an lib, like vim-python..17:17
cbreak left17:18
jtbandes joined17:18
Ryback_ left17:19
adamv left17:20
m104 left17:20
cbreak joined17:21
adamholtadamholt_away17:21
adamholt_awayadamholt17:21
brosner left17:22
Ryback_ joined17:23
ntoll left17:23
mrball joined17:23
brosner joined17:24
coachz joined17:24
coachz you guys have any software for tracking an overview of all the functions a site has and to track tasks to be completed/priorities etc that integrates with git ?17:24
jspiros left17:25
jspiros joined17:25
hipe joined17:25
xperience left17:28
jason237 rajeshsr: there is a git perl module included with git17:28
hagebake joined17:31
hagebake left17:31
hagebake joined17:31
zenazn joined17:31
m104 joined17:32
tatsuya left17:32
hagabaka left17:33
nick_ joined17:33
nick_Guest1432017:34
coachz left17:34
SlickT10 left17:34
rajeshsr_ jason237: cool! any doc on how to use it?17:34
Dunemaster joined17:35
jason237 rajeshsr: man Git17:35
(with the capital G)17:35
rajeshsr_ jason237: tats too interesting! thanks17:37
mquin left17:38
dreiss joined17:38
flo` how can i set the state to a certain commit?17:39
rajeshsr_ git revert ?17:39
or even checkout17:39
if you dpn't want to get things affected..17:39
flo` rajeshsr, i also thought of that, but the manpage cunfuses me.17:39
rajeshsr_ *don't17:39
Andy_ODT joined17:39
flo` "and record a new commit that records it"17:40
Dunemaster Hi, I am having this problem with msysgit. I have installed it and everytime I run Git from command line I keep getting message that chcp is not a name for command and the same mesage for reg. I was trying to google this problem, but it seems that google does not know anything about chcp and keeps giving me results for dhcp.17:40
flo` i don't want to record a new commit!17:40
Andy_ODT how do I revert to a revision by date like you can do in svn with svn update -r#### ?17:40
rajeshsr_ flo`: checkout won't do anything.17:40
Nemurenai left17:40
rajeshsr_ git checkout -b newBranch hashCommit17:41
justicefries joined17:41
justicefries so if I have some unversioned files in a branch...how do I..version them?17:41
charon Andy_ODT: that's a rather ill-defined request in nonlinear history. the best you can do is find *one* commit made after <date> by using 'git log -1 --after "<date>" --all' (or similar) and then 'git checkout <sha1>'. note that the latter will detach your HEAD, make sure you check out a branch again before doing any work17:41
rajeshsr_ Andy_ODT: I think you can search the commits by date using log17:42
GDorn left17:42
flo` ah, thanks ;)17:42
Andy_ODT thank you17:42
sukima justicefries: git add <file>17:42
justicefries thanks.17:42
Evanlec joined17:42
Evanlec hey guys, how can I see the entire history of a particular file? (i.e. show me all commits +diffs that affect this file, since day 1)17:43
rajeshsr_ git log -- file17:44
Evanlec oh, thats it17:44
charon ... and if you believe there are commits missing from this, look up --full-history17:44
Evanlec well that wasnt too hard ;p17:44
nevyn^_ joined17:44
rorist joined17:44
marc_kdab_ left17:45
Evanlec thanks ;)17:45
eighty4 joined17:45
Raydiation left17:46
rayners left17:46
Dunemaster /join github17:46
rajeshsr_ Welcome!17:46
Dunemaster Hi, I am having this problem with msysgit. I have installed it and everytime I run Git from command line I keep getting message that chcp is not a name for command and the same mesage for reg. I was trying to google this problem, but it seems that google does not know anything about chcp and keeps giving me results for dhcp.17:47
rayners joined17:48
Dunemaster if you know the answer, pls email me at honza.bok(at)gmail.com17:48
Dunemaster left17:49
rpg left17:50
antgel left17:51
cirwin joined17:51
thiago_home joined17:51
marc_kdab_ joined17:52
richardbronosky joined17:53
binjured left17:53
marc_kdab_ left17:53
thiago_homethiago_cgh17:54
__ed left17:54
adamholtadamholt_away17:54
adamholt_awayadamholt17:54
marc_kdab_ joined17:55
sylr joined17:55
marc_kdab_ left17:56
mastro left17:56
rseifert_ joined17:56
marc_kdab_ joined17:57
marc_kdab_ left17:58
unreal left17:58
Goneri left17:58
marc_kdab_ joined17:58
unreal joined17:58
binjured joined17:59
marc_kdab_ left18:00
froschi1 left18:00
curtana left18:01
marc_kdab_ joined18:01
marc_kdab_ left18:02
richardbronosky I'm seeing examples of how to inspect the commit message with the commit-msg hook, but I can't figure out how to alter the commit message.18:02
marc_kdab_ joined18:02
thiago_cgh richardbronosky: answer: you simply don't18:02
marc_kdab_ left18:03
Goneri joined18:04
rubydiam_ left18:04
rubydiam_ joined18:04
rubydiam_rubydiamond18:04
marc_kdab_ joined18:04
richardbronosky "you simply don't" was the answer to many needs before git was created. That is why git was created.18:05
Guest14320 left18:05
marc_kdab_ left18:05
SlickT10 joined18:05
Sou|cutter joined18:05
doener richardbronosky: well, the manpage tells you to simply edit the file... does that fail?18:06
Sou|cutter Is there a way to remove the last 4 commits in a branch from the index completely?18:06
richardbronosky for some reason I did not have .git/hooks/prepare-commit-msg.sample18:06
marc_kdab_ joined18:06
Sou|cutter I don't want that history in there at all, so a new commit reverting the changes won't work for me18:06
patrikf Sou|cutter: if you haven't pushed them yet, git reset HEAD^4 (maybe even --hard)18:07
doener Sou|cutter: did you already push those commits? If not, just reset your branch head back18:07
patrikf: HEAD~4, not ^418:07
patrikf yes, doener is right18:07
marc_kdab_ left18:07
Sou|cutter nah, I haven't pushed yet18:07
patrikf (or HEAD^^^^)18:07
Sou|cutter cool, I thought there would be a way, I just couldn't figure it out meself... trying now18:07
marc_kdab_ joined18:08
richardbronosky I just found it. looks like that hook receives the temp files as argv[1]. thiago_cgh I hope you get a chance to use that info someday.18:08
Nemurenai joined18:08
Sou|cutter whew, you guys are lifesavers :) thanks!18:09
marc_kdab_ left18:09
Sou|cutter I almost blew my cover *grin*18:09
thiago_cgh left18:09
unreal left18:10
unreal joined18:10
Belna_ joined18:10
patrikf Sou|cutter: actually, you should have used git push [email@hidden.address] --all18:12
marc_kdab_ joined18:13
Sou|cutter patrikf: I'll do that now!18:13
Belna left18:14
marc_kdab_ left18:14
cirwin left18:14
sako left18:14
Sou|cutter wait a second....18:14
Sou|cutter grins18:14
marc_kdab_ joined18:14
mrball left18:14
webus joined18:15
LeMoNiCe joined18:15
LeMoNiCe left18:15
Ryback_ left18:15
LeMoNiCe joined18:15
LeMoNiCe left18:15
LeMoNiCe joined18:15
marc_kdab_ left18:15
TBH left18:16
marc_kdab_ joined18:16
h32Lg left18:16
TBH joined18:17
alsuren_ left18:17
marc_kdab_ left18:17
loincloth left18:17
marc_kdab_ joined18:18
marc_kdab_ left18:20
marc_kdab_ joined18:21
Liquid-Silence joined18:21
Liquid-Silence hi guys18:21
I call git add .18:21
and then git commit -a -m "test"18:21
but my github account show no changes18:21
wtf18:21
flo` left18:22
Liquid-Silence anything I am missing?18:22
or does it just take a while to update?18:23
redfox did you pushed your repo?18:24
chrislerum joined18:25
Liquid-Silence ah so its git commit -m "message" && git push?18:25
nevyn^_nevyn^18:25
redfox yep18:25
_2of1_ joined18:25
_2of1_ hi18:25
didlix left18:26
_2of1_ quick question:18:26
how do I apply an old git patch<?18:26
meaning i have a patch from quite a few commits/reveisions ago18:26
is there any way i can find out what revision the patch applies to, checkout that revision, apply the patch and then do a git up or something?18:26
becomingGuru joined18:27
rajeshsr_ left18:28
durarara left18:28
rayners left18:30
_2of1_ ?18:30
linux454 joined18:30
simplechat left18:30
cirwin joined18:31
rolfb joined18:32
bluenovember left18:32
gbacon left18:33
_2of1_ anyone?18:34
linux454 Greetings all. I'm writing a release script to handle creating releases of my projects. I'd like to store some project specific metadata (project name, archive base name, etc) in the .git/config file and have those properties propagate to my public repository when I do a push. Is there any way to get git to push these parameters to another repository when it is cloned/pushed/pulled?18:34
Ryback_ joined18:34
brntbeer joined18:35
Titosemi_ joined18:35
patrikf linux454: nah... maybe store them in a dotfile?18:36
Titosemi left18:36
Titosemi_Titosemi18:36
tvw left18:38
linux454 Yeah, I didn't think about using the --file option to git config, that should do the trick and buys me the ability to still use git config to manipulate the values.18:38
khmarbaise joined18:41
khmarbaise_ joined18:42
cpg|awaycpg18:42
priidu joined18:43
durarara joined18:44
khmarbaise left18:46
khmarbaise_khmarbaise18:46
Sou|cutter _2of1_: just apply it with --3way and take care of any conflicts18:46
cxreg left18:46
Sou|cutter or am it maybe, you get the idea18:47
roxoft joined18:47
Sou|cutter _2of1_: I did this like 20 minutes ago, easy18:47
mastro joined18:47
linux454 left18:48
cirwin left18:48
LeMoNiCe left18:49
unreal left18:49
unreal joined18:49
hebz0rl left18:50
rox` left18:50
Liquid-Silence left18:51
didlix joined18:51
unreal left18:51
unreal joined18:51
_Vi left18:51
marienz joined18:52
MrPunkin joined18:53
MrPunkin Is there a way to see a log of when a file was last updated locally by a git pull (so not the git commit log)18:54
or a list of those dates, I guess the modified date would show the latest pull18:54
kelvie left18:55
JohnTheSavage joined18:55
durarara left18:56
rayners joined18:57
JohnTheSavage left18:57
_2of1_ Sou: will try that now.. - thanks! :)18:58
JohnTheSavage joined18:58
JohnTheSavage left18:59
ive joined18:59
JohnTheSavage joined18:59
JohnTheSavage left18:59
mtkd left19:00
aspotashev|eeepc joined19:00
JohnTheSavage joined19:00
montylounge joined19:00
loincloth joined19:01
JohnTheSavage left19:01
JohnTheSavage joined19:01
treak007_ joined19:02
ajsie joined19:02
Sou|cutter left19:02
ajsie what does this mean: git diff shows the diff between HEAD and the current project state19:02
ProLoser joined19:02
ProLoser hallo19:02
i'm having trouble setting up winmerge as my diff tool on msysgit19:03
ajsie the HEAD is the current active commit object? what does "current project state" means?19:03
ProLoser i opened up the settings on git gui and dropped the path to the app in the box, but it says the tool is unsupported19:03
what is a supported diff tool i can use, i don't care aout complexity or features too much, i just want to continue working with little to no configuration19:03
treak007 left19:04
aspotashev|eeepc left19:04
aspotashev left19:04
aspotashev joined19:04
leo2007 left19:05
marienz left19:05
JohnTheSavage left19:06
khelll joined19:07
marienz joined19:08
cirwin joined19:09
khelll left19:10
drizzd ProLoser: do you mean Merge Tool?19:11
ProLoser yes sorry19:11
voxpelli joined19:11
ProLoser mergetool19:11
drizzd vimdiff19:11
Yuuhi left19:11
ProLoser i need a graphical tool19:11
drizzd ProLoser: see the paragraph on merge.tool in man git-config19:12
Gitbot ProLoser: the git-config manpage can be found at http://git.or.cz/man/git-config19:12
cxreg joined19:12
ProLoser so when it says valid built in it means it will know the path and the arguments to send to the tool?19:13
drizzd ProLoser: yes19:13
ProLoser hmm... even the path? like if i'm on a 64 bit os19:13
dhaza joined19:13
drizzd well, it should. if it doesn't you can still configure a custom mergetool19:14
dhaza is it possible to have two files in git mirror each other?19:14
like if there is a foo/a/config.ini, and a foo/b/config.ini that i want to be the same19:14
something like a symlink in git?19:15
drizzd dhaza: you can have symlinks19:15
but not hardlinks19:15
ProLoser error: More than one value for the key merge.tool: =19:15
how can i fix this?19:15
i thought i was properly setting the merge.tool config19:15
drizzd ProLoser: looks like you added it twice. How did you do that?19:16
ProLoser no idea19:17
drizzd no, I'm asking which command/gui did you use?19:17
ProLoser well i was doing git config merge.tool = something19:17
i went into the config file and deleted the two lines, it's fixed now19:17
drizzd ProLoser: you should not use an '=' sign here19:18
ProLoser i realized that19:18
malditogeek joined19:18
ProLoser i'm gonna install diffuse and use that19:19
i had winmerge installed19:19
grumpytoad left19:19
jaql joined19:20
henkboom left19:20
malditogeek left19:21
dhaza ahh19:21
ProLoser anyone here use diffuse?19:21
tvw joined19:21
drizzd I've never used a merge tool, but if winmerge is a common one, we could add it to the builtins19:21
ProLoser winmerge is very popular among windows19:21
mastro left19:22
ProLoser second to turtoisemerge19:22
i was just lucky in that diffuse has a win32 variant19:22
raichoo joined19:22
ProLoser but yes, winmerge support would be much appreciated :)19:22
aspotashev left19:22
ProLoser now i just need to figure out why diffuse has 4 panes :/19:23
henkboom joined19:23
simosx joined19:23
simosx left19:24
simosx joined19:24
dropandhop joined19:24
drizzd ProLoser: an extra one for the common ancestor maybe?19:24
ProLoser hmm19:25
this thing isn't that easy to use19:25
maybe i should just get turtoise, i had very little trouble using it in the past :/19:25
dropandhop hey all...I'd appreciate some help setting up http-backend with a bare repo that should be read/write via http and ssh19:26
drizzd ProLoser: defining a custom mergetool is not hard though19:26
dhaza left19:26
ProLoser i understand that19:26
dropandhop i thought i had it setup correctly, but I'm getting the following error just when i try to clone via http: warning: remote HEAD refers to nonexistent ref, unable to checkout.19:26
ProLoser but the discussions online aout configuring winmerge are actually quite varied19:27
dropandhop I would really appreciate any help you can offer19:27
erythros joined19:27
mastro joined19:27
drizzd dropandhop: cd to the served repo and do "git rev-parse HEAD"19:27
ProLoser drizzd, if i have turtoise merge, how can i tell what path the git tool will look for it at? there's no associated msi installer19:28
erythros i hope i'm not out of line but does anyone know how to have git covert time to single local time?19:28
ProLoser out of line?19:28
drizzd dropandhop: doesn't sound like a problem specific to http btw.19:29
dropandhop drizzd- thanks, i'll do that right now...i just read the doc but don't fully understand what it does...could you possibly explain it to me?19:29
cmyers erythros: time is part of the commit metadata which is hashed - are you talking about when you type "git log" you want to see times in local time?19:29
dropandhop drizzd- i agree, i thought it was a git repo problem...but i can clone via ssh19:29
erythros a few of my users are in different time zones19:29
drizzd dropandhop: ok, but the clone via http doesn't abort either, does it?19:30
erythros so when i look at the logs some commits show up as being several hours old19:30
robertkeizer joined19:30
erythros even though they were just pushed up19:30
rubydiamond left19:30
drizzd ProLoser: I don't know19:30
sagsousuke joined19:30
cmyers erythros: the times have the local timezone in them19:30
like: 'Fri Nov 13 18:05:23 2009 -0800'19:31
Heimidal_ joined19:31
drizzd dropandhop: maybe you have permission problems? is the head readable for the webserver?19:31
cmyers git is designed to not favor any one timezone over any other since it is a distributed VCS.19:31
drizzd *the HEAD file19:31
dropandhop drizzd- when i clone via http it creates the directory...but nothing in it...one sec on the permissions19:32
tongueroo joined19:32
drizzd dropandhop: except for the entire repo19:32
dropandhop: it just does not know which branch to checkout, because there is no HEAD19:32
cmyers erythros: looks like you can do `git log --date=local` and it will show them times in local timezone. for more, see `git help log`19:33
dropandhop drizzd- the HEAD file is owned by git:git and www-data is part of the git group19:33
drizzd- the permissions are: -rw-rw-r--19:33
drizzd dropandhop: ok, so that's not it. So I'm guessing git rev-parse HEAD does not output any errors either?19:34
erythros heres the out put on a few updates in the order they were posted19:34
37 min ago erythros19:34
27 hours ago Emrys19:34
3 hours ago erythros19:34
drizzd dropandhop: how about git show-ref HEAD19:34
does it refer to an existing branch?19:34
dropandhop if i run git show-ref HEAD on the server i don't get anything back19:34
drizzd you should also try "git show-ref origin/HEAD" in the "failed" clone19:34
dropandhop ok19:34
richardbronosky is there a command that would allow me to do a "rebase" but create a duplicat branch instead of moving it?19:35
drizzd dropandhop: show-ref should output something like this 9918285fb10d81af9021dae99c5f4de88ded497c refs/heads/master19:35
Gitbot [git 9918285fb]: http://tinyurl.com/33bsveo -- Git 1.7.2-rc219:35
charon richardbronosky: just make a new branch first19:35
drizzd dropandhop: if it doesn't output anything, then git rev-parse HEAD should complain too19:35
charon richardbronosky: rebasing will only move one of the branches, and the other keeps the old commits19:35
richardbronosky in git help rebase, where they introduce branch "next"19:35
robertkeizer left19:35
kelvie joined19:36
galderz_ left19:36
richardbronosky charon: so I could do: git co topic; git co -b topic-merge; git co master; git rebase master topic-merge;19:37
gbacon joined19:37
dropandhop drizzd- i just tried to run show-ref HEAD on that failed http clone and it doesn't give me any ouput19:37
whaley joined19:37
drizzd dropandhop: oops my bad, git show-ref --head HEAD19:37
dropandhop ahhh!19:38
hehe- thanks19:38
richardbronosky and topic would still be on next and topic-merge would be on branch. and the changes introduced to next by topic would be applied to master via topic-merge?19:38
drizzd anyways, the HEAD of the failed clone is not interesting19:38
the HEAD of the remote is interesting19:38
aziz_ left19:38
charon richardbronosky: yes except that this can equivalently be written as: git checkout -b topic-merge topic; git rebase master19:38
dropandhop drizzd- gotcha...nothing with that command on the failed clone...on the server i get the following: a5d318461fe051bdde23426de919eebbf207174e HEAD19:39
charon richardbronosky: note that a branch is not really "on" any other branch, they may just have the same commits. and also note that master will not magically pick up the commits, you have to (fast-forward) merge topic-merge to master first.19:39
sako joined19:39
drizzd dropandhop: ok, how about "cat HEAD"19:39
froschi1 joined19:39
dropandhop drizzd- thanks for your patience with this...i really appreciate it19:39
aziz_ joined19:41
dropandhop drizzd- the following command doesn't seem to work: git show-ref --cat HEAD19:41
drizzd dropandhop: yeah, just "cat HEAD", without git or anything19:41
dropandhop k19:41
tar- joined19:42
erythros left19:42
dropandhop derrr!19:42
i wasn't paying attention...sorry19:42
it's: ref: refs/heads/master19:42
drizzd ok, and that branch exists?19:42
dropandhop ya, it's the only one we use19:42
ProLoser The merge tool tortoisemerge is not available as 'tortoisemerge'19:43
any idea why i'm getting this?19:43
drizzd what's the git version on the client? the one that's cloning the repo?19:43
froschi2 joined19:43
sagsousuke left19:43
sagsousuke joined19:43
Tureba joined19:44
earthome left19:44
froschi1 left19:44
chrislerum left19:44
cirwin left19:44
dropandhop 1:1.7.0.4-1 on the server and on the client19:44
drizzd ProLoser: git does "type tortoisemerge" to determine if the merge tool is available19:45
ProLoser: so you should probably have tortoisemerge in your PATH19:45
ProLoser i tried19:45
do i put the path to the exe19:45
or the folder it contains?19:45
drizzd ProLoser: the folder which contains the executable19:45
dropandhop drizzd- are these permissions ok on the HEAD file? -rw-rw-r--19:45
ProLoser it didn't work :/19:46
drizzd dropandhop: yes19:46
ProLoser: how about type tortoisemerge.exe19:46
dropandhop drizzd- k...how can i confirm that i have a master branch setup on the server?19:46
ProLoser hmm19:46
it worked now19:46
drizzd dropandhop: in the "failed" clone, does git branch -a show origin/master?19:46
Nemurenai left19:46
ProLoser i musta used the wrong %path% thingy19:46
MattDiPa_ left19:47
drizzd "git branch -a"19:47
timcharp` joined19:47
timcharp` left19:47
drizzd ProLoser: well, if it still doesn't work, you can override mergetool.tortoisemerge.cmd19:47
MattDiPasquale joined19:47
timcharp` joined19:48
dropandhop drizzd- do i just run the following b/c it doesn't give me anything: git branch -a19:49
marsilainen joined19:50
rolfb left19:50
drizzd dropandhop: ok, strange19:50
looks like it doesn't find any branches19:50
what happens if you access http://$repourl/info/refs directly?19:51
I mean, point your browser to that address19:51
ProLoser drizzd, naw got it to work19:51
opalka left19:51
ProLoser the path fixed it just had to double check it19:51
drizzd dropandhop: I wonder if maybe the http-backend script is not executed, and git just tried to clone using the old protocol19:52
ProLoser: ok, great19:52
_Vi joined19:52
dropandhop drizzd- if it's easier i can tell you all the steps i did to set this up, since i just did it19:52
unreal left19:52
gebi joined19:52
unreal joined19:52
earthome joined19:53
drizzd dropandhop: I'm not sure it would help. But please check info/refs above, and maybe check your webserver logs to see if http-backend actually runs19:53
dropandhop gotcha...let me try to hit the location in my browser...just give me a few19:54
drizzd I wonder if we have a --no-dump-http switch somewhere19:54
coyo left19:55
programble joined19:56
mar77i left19:57
MattDiPasquale left19:58
MattDiPasquale joined20:01
urkud joined20:02
cirwin joined20:03
dropandhop drizzd- i can't seem to see anything of interest in the apache log! how can that be20:04
cannonball left20:04
dropandhop weird!20:04
drizzd- i can give you the big picture of what i did to set this up...if you have the patience20:04
drizzd dropandhop: what about info/refs?20:08
bdrewery joined20:08
dropandhop hitting them in my browser?20:08
mcella joined20:09
drizzd you can also check in the repo directly20:09
bdrewery How can I automatically check if a merge would present conflicts or not, without changing anything (or rolling back)?20:09
drizzd it should _not_ be there20:09
mcella left20:09
warthog9 joined20:09
drizzd (in the repo)20:09
bdrewery: git merge --no-commit20:10
portal joined20:10
Ilari Aren't there some debug options in remote-http?20:10
dropandhop drizzd- the only file i have on the server in the info dir is exlude....is that what your getting to?20:10
jtbandes left20:10
dropandhop Ilari- ahhh that would be really helpful!20:10
portal git-diff isn't showing changes which exist in the index, grr...20:10
git-status shows an "M" next to "foo.c" for example, and that "M" is shifted left, so I know that "foo.c" change was already added to the index20:11
drizzd dropandhop: yes, so git seems to clone something, but it ends up without any refs. I'm puzzled.20:11
bdrewery drizzd: what could I run to detect conflict?20:11
portal but I want to see which changes exactly are indexed20:11
steveire_ joined20:11
rseifert_ left20:11
Fangorn_ git diff --cached20:11
Ilari dropandhop: I don't remember exactly how to activate it, but I remember seeing debug traces.20:11
drizzd bdrewery: what I said20:11
portal ah, sweet; hmm, I wonder how I missed that when reading the mna page20:12
*man page20:12
bdrewery I'm basically writing a script to git merge only if a conflict is found, but to not if no conflict20:12
dropandhop drizzd- i do have some stuff in my refs folder on the server....i have a heads directory with a file called master in it20:12
justicefries left20:12
Ilari dropandhop: That's branch master.20:13
drako joined20:13
drizzd dropandhop: maybe simply try git clone --verbose20:13
dropandhop drizzd- so it should be git clone http://repourl ?20:14
urkud left20:14
dropandhop sorry20:14
git clone --verbose http://repourl20:14
drizzd yes, just add --verbose20:14
dropandhop thanks!20:14
Fangorn_ portal: you can also used git diff --staged to diff between working and index20:15
Ilari dropandhop: The fallback (or no) to dumb http will be visible in requests made.20:15
jtbandes joined20:15
dropandhop I tried the clone in verbose mode, but it didn't provide any more info20:16
khmarbaise_ joined20:16
vpovirk joined20:16
khmarbaise left20:16
khmarbaise_khmarbaise20:16
vpovirk I have a list of sha1 commit id's, and I want to sort them chronologically (or topologically, which should be equivalent); is there an easy way to do that?20:16
dropandhop i bet you this is something silly i missed...should i lay out how i set this up?20:17
Schmallon joined20:17
sixteneighty joined20:18
khaije|selen joined20:19
drizzd dropandhop: try "git clone -v -v $url"20:19
Belna_ left20:19
dropandhop k!20:20
drako left20:20
drako joined20:20
dropandhop didn't seem to give any more info then before20:21
ProLoser left20:23
unreal_ joined20:24
Nemurenai joined20:24
elmob joined20:25
unreal left20:25
unreal_unreal20:25
baba_bubba joined20:26
odie5533 joined20:26
shruggar joined20:27
marsilainen left20:28
khmarbaise left20:28
ive left20:28
rpg joined20:28
dropandhop drizzd- could it be a file permission thing? i feel like i should have set everything to g+s and i didn't?20:29
khmarbaise joined20:30
_2of1_ left20:30
rbronosky joined20:30
montylounge left20:32
Ilari dropandhop: Its $GIT_CURL_VERBOSE20:32
richardbronosky left20:34
rbronoskyrichardbronosky20:34
g0bl1n left20:35
drizzd well, if I do git clone -v -v http://github.com/drizzd/diffit.git it at least tells me this20:36
Server supports multi_ack_detailed20:36
Server supports side-band-64k20:36
Server supports ofs-delta20:36
want 773ef1ccaa2569b088b6d421b3f4b07dacd32686 (refs/heads/master)20:36
done20:36
POST git-upload-pack (116 bytes)20:36
mar77i joined20:36
dropandhop i just tried -v -v and got nothing extra back on the clone...just the same error20:37
how would I use that $GIT_CURL_VERBOSE ?20:37
sixteneighty left20:38
Ilari dropandhop: Its an environemnt variable.20:38
drizzd GIT_CURL_VERBOSE=1 git clone $url20:38
rolfb joined20:38
treak007 joined20:38
corni left20:38
portal Fangorn_: aww, sweet, --stated; /me makes a mental note20:38
dropandhop ok- that environment variable got a lot of stuff!20:39
LongBeach left20:39
Ilari dropandhop: Pastebin the output?20:40
dropandhop comin right up!20:40
treak007_ left20:41
dropandhop http://pastebin.com/RvmvGy0120:42
patrikf vpovirk: for-each-ref, maybe?20:42
yaotti_awyaotti20:42
treak007 left20:42
treak007 joined20:43
stamina joined20:43
Ilari dropandhop: It tries smart http but falls back because MIME type in response is wrong.20:44
dropandhop: Is that public repo?20:45
dropandhop ahh- so this is an apache issue it sounds like20:45
crazed joined20:45
dropandhop it's on a public server20:45
crazed if i've got a bunch of garbage in my git repo, how can i remove it without removing the files from my working dir?20:45
ericindc joined20:45
patrikf crazed: if all the files you want to keep are tracked, git clean might be what you want20:46
Ilari dropandhop: Mind if I try looking at what it actually sends for smart transport refs request?20:46
cilly left20:46
urkud joined20:46
ericindc If I have branch X which I created a branch Y from it's HEAD and made a series of commits to Y, how do I place the changes from Y onto the end of X20:47
patrikf ericindc: rebase, and/or merge20:47
dropandhop Ilari- no, i don't...thanks very much20:47
Ilari dropandhop: Also 200 response...20:47
crazed patrikf: i have a bunch that i don't want tracked as well, i can match them with a glob, is it easy to just untrack them?20:48
avar left20:48
ericindc patrikf: i tried git rebase X with Y checked out, but it says it's up to date20:48
so i assume that means i was rebasing in the wrong direction20:48
felipec joined20:48
ericindc rebase Y and I get " Needed a single revision"20:48
patrikf ericindc: I think you want to merge Y into X.20:48
Ilari dropandhop: The result looks like Field15 home page.20:48
whaley left20:49
Ilari dropandhop: So apache is sending totally wrong data as response.20:49
patrikf crazed: just "git rm" them and commit...20:49
treak007 left20:49
ericindc patrikf: can it not be rebased?20:49
crazed that removes them from the working directory though20:49
avar joined20:50
elmob left20:50
rayners left20:50
patrikf ericindc: you misunderstand the idea of rebase, I'm afraid. if Y was rebased on X, then merging Y into X will be a fast-forward merge (i.e. a "silent" merge, a merge without a merge commit)20:50
timcharp` left20:50
patrikf crazed: if you just want to untrack them, rm --cached20:50
scootsm joined20:51
patrikf crazed: ah, now I see what you mean. forget about git clean20:51
cpgcpg|brb20:51
scootsm Is there a tool that pretends to be SVN, but is actually Git?20:51
crazed ah --cached20:51
that sounds useful20:51
ericindc patrikf: you're right, i'm misunderstanding something20:51
thiago_cgh joined20:51
patrikf crazed: they'll still be there in your history though. if you want to rewrite history as if they never were there (useful with sensible information, or large amounts of data), filter-branch can do that20:52
Ilari scootsm: There were plans for that, but AFAIK no implementation.20:52
rayners joined20:53
treak007 joined20:53
leo2007 joined20:53
scootsm Damn it.20:53
Hmm, are there any servers that can receive SVN commits, but actually does Git commits--to stick it to the man?20:54
I suppose that's why God made Google20:54
psoo joined20:55
Math joined20:55
dropandhop Ilari- we take any request that doesn't exist and send them back to our homepage...so that makes sense20:55
should i just add .git to the known file types?20:55
jaql left20:55
patrikf scootsm: is this (company) politics, or why on earth would you want that? just curious.20:55
bousquet joined20:56
Heimidal_ left20:56
Math got some problems, someone got a conflict, didnt resolve it properly and pushed it, but now even reverting his commit doesnt fix the screwups, any hints?20:56
guess I could diff it20:56
Ilari dropandhop: info/refs in git repo should point to http-backend cgi script.20:56
unreal left20:57
unreal joined20:57
ericindc left20:57
simosx left20:57
scootsm patrikf: Column A, Column B. It's a bit weird. We have an SVN server, internally, and separate (private) Github accounts. I want to push my code to Github. But I also just want to use Git, because Git is Great. While those are all very simple problems to solve, I'm using a text editor called "Coda" which is a really great text editor. But it supports SVN, not Git.20:57
dropandhop Ilari- sorry to be slow...what does that mean?! hehe20:57
ericindc joined20:58
scootsm patrikf: Complicating matters further, my project is not meant for our SVN repo. Rather, it's a meant to stay quiet internally and, therefore, should go on my Github.20:58
treak007_ joined20:58
scootsm patrikf: Yet another complication is that my company is quite strange.20:58
treak007 left20:59
patrikf scootsm: so its politics, as guessed. no further questions ;-)20:59
Ilari dropandhop: It means that smart-http is not set up correctly... I have no clue of how to configure apache, sorry.20:59
froschi2 left20:59
dropandhop Ilari- that's ok! thanks for everything so far20:59
krawek left20:59
justin-george left20:59
scootsm patrikf: Oh nuh-uh, you dun di'ant just tl;dr me21:00
ralf_e left21:00
scootsm I also speak jive21:00
redondos left21:00
redondos joined21:01
patrikf that's too distorted for my bad english. how do you pronounce the semicolon?21:01
scootsm It's "Too Long; Didn't Read"21:02
justin-george joined21:03
krawek joined21:03
patrikf scootsm: oh, jargon fail for me. indeed i read the bulk of your text only after responding. ;-)21:05
rseifert_ joined21:05
rseifert left21:05
Heimidal_ joined21:05
jtbandes What's the difference between merge and pull?21:05
Like, can I pull from local branches?21:06
patrikf jtbandes: pull = fetch + merge21:06
jtbandes Oh, is that all?21:06
patrikf yes, it's that boring21:06
richardbronosky left21:06
patrikf saves you some typing, that's it. :)21:06
jtbandes Hm, I'm seeing "Simple merge did not work, trying automatic merge." & "Merge made by octopus.", what does that mean?21:06
brntbeer left21:07
bdrewery it's trying different merge methods21:07
patrikf jtbandes: see man git-merge, "MERGE STRATEGIES"21:07
Gitbot jtbandes: the git-merge manpage can be found at http://git.or.cz/man/git-merge21:07
unreal left21:07
jtbandes Oh, just because I did more than one branch21:07
unreal joined21:08
malumalu joined21:08
unreal left21:09
toabctl joined21:09
unreal joined21:10
richardbronosky joined21:10
khmarbaise left21:11
coppro left21:11
brendon_work joined21:12
Heimidal_ left21:13
thiago_cgh left21:15
Nemurenai left21:15
leo2007 left21:15
treak007 joined21:16
Mage joined21:17
radioman-lt left21:17
cpg|brbcpg21:17
leo2007 joined21:18
flazz left21:18
grumpytoad joined21:18
richardbronosky left21:18
flazz joined21:19
rolfb left21:19
treak007_ left21:20
earthome left21:20
treak007 left21:20
rbronosky joined21:20
jtdowney joined21:21
spearce left21:21
rbronosky left21:21
ajsie what is the difference between HEAD and master?21:21
spearce` joined21:21
Math left21:21
treak007 joined21:21
ehabkost left21:22
hohoho left21:22
tango_ master is the master branch21:22
IslandUsurper ajsie, master is a branch, HEAD points to the current branch21:22
rbronosky joined21:22
halfline ajsie: master is a branch, HEAD is just a special name for the last commit on the current branch21:22
tango_ HEAD is the commit currently checked out21:23
IslandUsurper tango_'s definition of HEAD is probably the most accurate21:23
rook2pawn left21:23
leo2007 HEAD is more like a sym link21:24
coppro joined21:25
selckin implementation detail21:25
gbacon left21:25
ajsie okay ... master is a branch...and HEAD is the last commit21:25
shruggar HEAD is a pointer to the currently-checked-out ref, or, if no ref is checked out, the currently checked-out commit21:26
ajsie so HEAD is always the LAST commit? it cant be the second last?21:26
thiago_cgh joined21:26
spearce` left21:26
ajsie hmm21:26
FauxFaux reset --hard will change HEAD.21:27
davr no, HEAD is not always the LAST commit. It's always the commit that you currently have checked out21:27
git allows this funny thing where you can check out a certain revision but not be on a branch21:27
it's called "detached head", there's a FAQ entry that explains in more detail I think21:27
leo2007 there are quite a few videos that explain this well.21:27
shruggar FauxFaux, unless you're on a detached HEAD, reset --hard will NOT change HEAD, though it will change the commit which HEAD eventually points to21:28
ajsie okay thanks guys21:28
sylr left21:28
s0ber left21:29
zenazn_ joined21:29
zenazn left21:29
unreal left21:29
unreal joined21:29
sylr joined21:30
s0ber joined21:30
dropandhop left21:31
shruggar FauxFaux, technically you can point HEAD to ref: refs/heads/foo, and point refs/heads/foo to ref: refs/heads/master ;)21:34
I don't know what that feature is intended to be used for, though21:35
FauxFaux ponders.21:35
jtbandes If I merge a topic branch in, does it stay around? or is there a way to merge it in and get rid of it?21:35
FauxFaux Oh, I'm being dumb.21:36
shruggar jtbandes, merge it, then delete it? the "branch" is just a ref.21:36
jtbandes, if you don't want the conceptual merge, ie, the graph, then merge with --squash21:36
aziz_ left21:37
ajsie are u all using git commands in the cli?21:37
Schmallon left21:37
ajsie isnt it easier with GUI tools21:37
like Netbeans Git Plugin21:37
sylr left21:37
sftp left21:38
sammcd left21:38
mar77i ajsie: depends on what your definition of ease would be. plugins always prove an additional source of failure and an at least minor loss of flexibility:)21:38
nevyn^ left21:38
sylr joined21:39
m104 left21:41
shruggar ajsie, I'll use a git gui as soon as I see one which makes any sense at all ;)21:41
bgy_ left21:41
ajsie :)21:41
skoop joined21:42
shader left21:42
mar77i s/prove/provide/ seems to make more sense21:42
poseid left21:42
sylvainr joined21:42
jtbandes Is that the right workflow? if I have some topic branches, to just checkout master and merge them in?21:43
toabctl left21:43
shruggar jtbandes, when theyre ready to be merged into master, yeah. As opposed to what?21:43
tstclair left21:45
jtbandes shruggar: rebasing? I dunno21:46
Dave^| left21:46
shruggar jtbandes, well rebasing is just outright the totally wrong thing, if that's what you're asking21:46
tar- left21:46
jtbandes I've read things about people using it with/before merges21:47
shruggar rebasing can be thought of (in a gross oversimplfication) as the opposite of a merge21:47
bdrewery I know what rebasing is, and that's just confusing to try and figure out what you mean by that21:47
vpovirk rebasing makes sense if you want to keep a linear history for a project, and you are keeping your topic branches private21:47
Pewpewarrows joined21:47
vpovirk and you have to be sure you rebase the right thing onto the right thing21:47
ignatp joined21:48
shruggar jtbandes, often people will rebase with upstream prior to submitting to upstream, as it ensures that merge-conflicts are taken care of by the maker of the topic branch instead of by the maintainer of the upstream branch. But its not necessary, it's just sometimes considered polite21:48
rbronosky left21:49
jtbandes Ah I see21:49
Yuuhi joined21:49
nakkor joined21:49
richardbronosky joined21:49
jtbandes But that could be a good idea locally too21:49
To rebase an older branch before merging into master21:49
vpovirk you pretty much have to if you're submitting changes as a patch series; otherwise, they won't apply cleanly21:49
shruggar if you have a long-running topic branch, I think it makes the history look better to occasionally rebase with upstream, rather than merging upstream21:50
rolfb joined21:50
jtbandes shruggar: you mean instead of merging upstream into the topic before working on the topic more?21:50
rolfb left21:51
shruggar jtbandes, right. It should still be reintegrated using merge21:51
jtbandes At the end.21:51
shruggar righ21:51
sylr left21:51
nakkor left21:51
nakkor joined21:52
sylr joined21:52
bgy_ joined21:52
nakkor left21:52
shruggar jtbandes, think of it like this: what is going to make the most sense when you're viewing history, or trying to track down a bug?21:52
EricInBNE joined21:53
jtbandes Yeah, you could rebase first to make it more obvious what was changed21:53
rorist left21:53
vpovirk afaik your two choices are just "rebase" and "merge", there are slightly different ways to do them that will give you the same result, and I always thought people who merged topic branches were crazy21:54
unless it's a long-running and public topic branch21:54
flaguy48 joined21:54
poseid joined21:57
jortel joined21:57
warthog9 left21:58
xuxc000 joined21:58
urkud left21:58
IslandUsurper left21:59
flazz left21:59
zenazn_ left22:00
nevyn^_ joined22:01
yaottiyaotti_aw22:01
josh0x0 left22:02
sukima left22:03
batok left22:03
Paraselene_ left22:03
poseid left22:03
Blackguard joined22:03
cirwin left22:03
sylvainr left22:04
nevyn^_nevyn^22:05
alexmchale joined22:05
bousquet left22:07
jortel left22:08
bousquet joined22:08
alexmchale left22:08
priidu left22:09
simplechat joined22:09
Joeconyers joined22:09
warthog9 joined22:09
warthog9 left22:09
richardbronosky left22:10
altrux left22:10
vpovirk left22:11
newbie|2 left22:11
yaotti_awyaotti22:12
priidu joined22:14
loincloth left22:14
Titosemi left22:17
masterkorp left22:17
warthog9 joined22:19
cirwin joined22:19
portal left22:19
charon by that logic, most of git.git would be crazy22:20
bauruine left22:21
Paraselene_ joined22:21
brntbeer joined22:22
Heimidal_ joined22:22
sako left22:24
tvw left22:24
Heimidal_ left22:25
neeraj joined22:25
eighty4 left22:25
drako left22:25
kipras left22:26
jonaskoelker left22:26
mackstann__ joined22:26
hachi why does git-rev-parse --tags print out the usage information for me?22:27
rev-list22:27
sorry22:28
# git rev-list --tags22:28
usage: git rev-list [OPTION] <commit-id>... [ -- paths... ]22:28
mackstann__ say i have revision A that made one desirable change. then, much later, i have a giant revision that changed tons of stuff, including reverting revision A. i now want to essentially re-apply revision A, but the git-merge man page tells me it'll skip it in this scenario. how do i force it to re-apply that old revision?22:28
hachi I can understand that I don't have any tags for candidate, but shouldn't that just mean it gives me zero lines of output?22:28
psoo left22:28
sylr left22:29
bauruine joined22:29
neeraj hi I am trying to pull someone else changes/commits from a git repository using git pull22:29
git pull git+ssh://neeraj-guest@git.debian.org/git/collab-maint/sugar-record-activity.git22:29
You asked to pull from the remote 'git+ssh://neeraj-guest@git.debian.org/git/collab-maint/sugar-record-activity.git', but did not specify22:29
a branch. Because this is not the default configured remote22:29
for your current branch, you must specify a branch on the command line.22:29
drizzd left22:29
adamholtadamholt_away22:29
adamholt_awayadamholt22:30
davr mackstann__: have you already pushed the giant revision to a public repo? if not, i'd reccomend rebasing & splitting it apart into multiple commits22:30
baba_bubba left22:30
shruggar mackstann__, try cherry-pick?22:30
mackstann__ davr: yes, the giant commit is pretty much set in stone22:30
davr neeraj: you need us to explain the error to you in more detail or something? it seems pretty clear to me22:30
hugoxrosa left22:30
mackstann__ shruggar: ah, looks like cherry-pick is exactly it22:31
enherit joined22:31
masterkorp joined22:31
davr i thought cherry-pick skipped things you already had, but maybe I am mistaken. can't hurt to try it22:31
roxoft left22:32
shruggar I thought it might detect an already-applied patch (as rebase apparently does), but I couldn't see an option to disable that behaviour, so I'm guessing it doesn't22:32
gbacon joined22:32
nevyn^ left22:32
hachi how does one figure out what branch is being tracked? do I have to use 'git config' to discover this22:32
or is there a faster way?22:32
programmatically I mean22:32
neeraj davr, yes some detailed explanation or relevant link giving details would be much appreciated :)22:32
hachi I don't want to parse the output of 'status'22:32
mackstann__ well it says it applies an existing commit, which seems to imply that it would re-apply it22:33
shruggar hachi, git rev-parse --symbolic-full-name @{u}22:33
mackstann__, "existing" doesn't imply "existing in the current line of history"22:34
davr neeraj: basically you just need to specify which branch to pull from. you just told it to pull from a repo which may have many branches in it, git doesn't know which remote branch to merge into your current one22:35
nakkor joined22:35
hachi shruggar: what's the @{u} thing called? I want to read about it...22:36
oh22:36
I see it now22:36
zorzar joined22:36
jfkw left22:36
cpgcpg|brb22:39
jkp left22:39
zorzar_ left22:39
MrPunkin left22:40
Oxf13 joined22:40
mackstann__ shruggar: perhaps not. the wording is ambiguous22:40
Oxf13 sitaram: ping are you around? I'm about to try out latest HEAD from master...22:40
sako joined22:41
jrmuizel left22:42
neeraj ok,, I have no idea what all branches this git repository has. I had creates this using git push only and I was able to pull changes by other people by using git pull22:43
steveire_ left22:45
neeraj s/creates/created22:45
brntbeer left22:45
mackstann__ hm, indeed, cherry-pick will not re-apply a change that is an ancestor22:47
cpg|brbcpg22:49
tizbac left22:49
vinicius joined22:52
LiamH left22:52
shruggar mackstann__, git diff <commit>^!|git apply I suppose is a fall-back22:52
vinicius hi... is this list for git support or development?22:53
shruggar mostly support22:53
vinicius shruggar, nice...22:53
im trying to build a little post-update script22:53
mackstann__ shruggar: yeah but then it's just a 2-way merge which should mean lots of conflicts, right?22:53
xiong left22:54
vinicius ive got a web server for production, and i want to have some repos available for an apache folder, so i set something like an "auto-repo" throught "git pull" on post-update hook22:55
shruggar mackstann__, as opposed to what? There are three trees involved in the command I gave22:55
vinicius, don't use "pull" in non-interactive scripts22:55
vinicius shruggar, humn... ok22:55
what, then?22:56
masterkorp left22:56
becomingGuru left22:56
neeraj Ok, I am using gbp-clone --pristine-tar and will commit my changes22:56
flaguy48 left22:56
shruggar vinicius, for deployment, git reset --keep is safer, since it won't ever leave your tree in a conflicted state, and will respect non-fastforward pushes22:56
vinicius shruggar, THAT was what im look for!22:57
raichoo left22:57
vinicius ill try it22:57
=D22:57
bradallen137_ left22:58
giallu left22:58
shruggar left22:58
TeckniX left22:58
rpg left22:59
sftp joined23:00
zenazn joined23:02
gebi left23:03
didlix left23:03
d0k left23:04
hachi how do you determine if the working tree is dirty as a boolean?23:04
also, is there a way to perform the actions of a pull excluding the fetch step?23:07
Ryback_ left23:07
hachi I would love to invoke a command and have it do the rebase or merge depending on what is in the configs, not manually choose myself23:07
scootsm left23:08
MattDiPasquale left23:09
g0bl1n joined23:09
andrewl left23:10
andrewl joined23:10
yaottiyaotti_aw23:11
skoop left23:14
Eaven left23:17
vinicius ok.. my script now copy the git repo to a clone on a web server...but how can i use paths on post-update while im not on a terminal like tortoise git, for example?23:18
nakkor left23:18
Eaven joined23:18
jtbandes left23:19
workmad3 left23:19
hachi is `git merge @{u}' basically what git pull calls after calling git fetch?23:20
priidu left23:23
apsysoev left23:23
voxpelli left23:23
malumalu left23:25
bentob0x left23:27
Paraselene_ left23:27
arooni joined23:28
arooni hi folks; i want to completley reset my local copy to the latest remote copy; how can i do this?23:28
rayners left23:29
marienz left23:29
cmyers arooni: use `git log` to figure out the hash you want to set it to, then `git reset --hard <hash>`23:30
marienz joined23:30
cmyers if you haven't committed anything, then HEAD is probably what you want, so you can do `git reset --hard HEAD`23:30
Tuller joined23:32
rpg joined23:33
tty1 joined23:34
tty1 hey guys im having a weird probem... is there a way to specify ont he git command line what private ssh key to use? i cant seem to clone from this box and it seems to be some sort of permission problem23:35
neeraj left23:35
ralf_e joined23:36
mattwynne joined23:36
Haaarg left23:37
mattwynne left23:37
frsk You can specify it in .ssh/config instead23:38
nakkor joined23:38
odie5533 what personal data does git pull from my computer?23:39
does it use my computer name anywhere?23:39
cmyers odie5533: I'm not sure that question even makes sense. Git pulls data from other computers. If you `push` your changes, it pushes the data in those changes, is that what you mean?23:40
Standard commit metadata contains whatever you set as your "username" and "email", and the date and time.23:40
odie5533 okay, that was what I wondering yeah.23:40
cmyers the default email is "$USER@$HOSTNAME"23:41
so if you want someting else, be sure to set it. see `git help config`23:41
odie5533 ooo. that's not good..23:41
anathematic joined23:41
felipec left23:41
dreiss left23:42
odie5533 can I change the username/email of a commit after it's been pushed to a server?23:42
and does it use any key to sign commits?23:44
AAA_awright You might be able to --force it but that could cause problems for people pulling23:44
No23:44
odie5533: Re-create the commit with git commit --amend, check it with git log, re-push it with git push --force23:46
That's not something that is normally sugguested but it should be possible23:46
tty1 hmm23:46
mquin joined23:46
frogonwheels left23:47
frogonwheels joined23:47
tty1 i just did a clone on a blank repo (just inited ont he server side as a bare repo).. i added some files and tried to commit then push.. during push i got the error: No refs in common and none specified; doing nothing.23:47
Perhaps you should specify a branch such as 'master'.23:47
Ilari tty1: Yeah, .ssh/config is the only way excluding remote-ext (which is not in master).23:47
tty1 how do i do that? just switch branches23:47
thm left23:47
tty1 or maybe i need to make the master branch a remote or something23:48
warthog9 left23:48
Ilari tty1: 'git push <remote> <branch>',23:48
tty1 i seem to always forget23:48
so what would remote and branch be if its the master though?23:48
vinicius left23:49
sivy left23:49
tty1 there doesnt seem to be a master23:49
dyjytyl joined23:50
Ilari tty1: 'git remote' to see valid remotes, and 'git branch' to list valid branches.23:51
tty1 hmm23:52
there is just origin in the remotes and nothing int he branches23:52
hmm23:53
odie5533 when connecting to github, do I first create the git thing on my own computer with git init, or does it does that for me?23:53
jtdowney left23:53
Ilari tty1: You are saying output of 'git branch' is empty?23:54
odie5533: You need local repository, either created by init (create new repository) or clone (copy existing repository).23:54
tty1 Ilari: it actualy seems to ahve a master now (must have been one o the commits i was trying)... so i tried git push origin master.. and it is chugging away but produced the error: error: insufficient permission for adding an object to repository database ./objects23:55
so i traded one error for a new one it seems23:55
odie5533 will git init add all the files in my directory?23:55
dyjytyl left23:55
Ilari tty1: Permissions errors on remote side.23:55
tty1 Ilari: cant imagine why.. let me try this over...23:56
Ilari tty1: Are you sure you got the right user account on remote side?23:56
cmyers odie5533: all `git init` does is create an empty repo - you then add what you want.23:56
tty1 Ilari: seems to work fine for all the other repos i have ont he same remote23:56
cmyers odie5533: I suggest reading the Git Magic tutorial, it has a really good begining guide: http://www-cs-students.stanford.edu/~blynn/gitmagic/index.html23:56
odie5533 thanks for the link, reading now23:57
cmyers I think specifically chapter 2 has the most important bits, and chapter 3, if you want to jump right to it.23:57
but the entire thing is a great read.23:57
xuxc000 left23:58
Ilari tty1: That error comes if trying to create files on remote repository gets access denied error from operating system.23:58
tty1 hmm23:59
Haaarg joined23:59

Logs Search ←Prev date Next date→ Channels Documentation