| 2009-10-28 |
| → javatexan joined | 00:02 |
| ← juan_arandaalvar left | 00:02 |
| ← tango_ left | 00:03 |
|
jjore
| Is there a maximum size for a git repo? | 00:04 |
| ← sgh left | 00:04 |
|
jjore
| I'm kind of worried that my repo might get too big. I'd like to chart space over time but am not sure how best to get a repo's size at a point in time. | 00:05 |
|
cehteh
| there is certainly *some* limit | 00:05 |
|
| but its prolly very high, your patience, money, whatever will run out before that :) | 00:06 |
| ← bdowning left | 00:06 |
| → ryoma joined | 00:06 |
| ← tvw left | 00:06 |
|
cehteh
| really huge git repos becomeing slow | 00:06 |
| ← Ryback_ left | 00:06 |
| → bdowning joined | 00:07 |
|
cehteh
| but look, git can manage the kernel, and some kde folks committed the whole kde project into a single repo | 00:07 |
|
| i doubt you do anything biggier | 00:07 |
| → schambers joined | 00:07 |
|
cehteh
| and you should consider split things up into submodules if you plan something that big | 00:07 |
|
jjore
| So... how big is really huge? I'm up to 900M over approx 1.5 years w/ commits from some 40ish people. | 00:08 |
| → jlilly joined | 00:08 |
|
cehteh
| bigger than some tens of gigabytes | 00:08 |
| ← cubuanic left | 00:08 |
|
jjore
| But I can't characterize the growth because I don't yet know how to say "the repo on day X was N megabytes" | 00:09 |
|
Ilari
| Large files destroy the performance much better than huge number of files / huge number of modifications. | 00:09 |
|
cehteh
| it somewhat depends on your machine too .. some things might get slow or it might need excessive amounts of ram | 00:09 |
| ← javatexan left | 00:09 |
|
cehteh
| huge binary files which changes frequently are an absolute now | 00:10 |
|
| no | 00:10 |
|
| few static binary files wont hurt much | 00:10 |
| ← literal left | 00:10 |
| → literal joined | 00:10 |
|
cehteh
| if you want to version your hollyday videos in git you doing something wrong :) | 00:10 |
| → lamont` joined | 00:10 |
| ← maio left | 00:11 |
| ← d1b left | 00:11 |
| ← ereslibre left | 00:11 |
|
Ilari
| Probably first hard limit that would be hit is limit of 4 294 967 295 objects... | 00:11 |
|
jjore
| I kind of suspect we'd probably have some occasion to store hundreds of megs of data for use by testing code. | 00:11 |
|
| I mean, we already do that but we commit that kind of stuff only rarely. The webdevs are probably committing graphics somewhat often. | 00:12 |
| ← gernot left | 00:12 |
|
cehteh
| i'd suggest to put test-binary data outside .. rsync, tarballs whatever | 00:12 |
|
Ilari
| I think that storing the data as discrete smaller files as opposed to tarball or so would yield better performance. | 00:12 |
| → sgh joined | 00:12 |
|
cehteh
| (not versioned in git) | 00:12 |
|
wwalker
| git svn question. I've been doing "git svn clone proto://host/project/branches/some_branch" as the simplest method. Now I am having to switch to other people's branches a lot. there are 70K versions in svn of 40,000 files. I'd like to run a git svn checkout of everything. what command should I run? | 00:13 |
|
| or is it even feasible to clone the whole shebang and switch between branches under git-svn? | 00:13 |
| ← ph^ left | 00:14 |
|
wwalker
| never mind, found it | 00:14 |
|
Ilari
| The limit at least appears as it being impossible to clone history with >4 294 967 295 objects... | 00:14 |
| ← gasbag left | 00:15 |
|
spearce
| Ilari: uh, what? | 00:15 |
| → ereslibre joined | 00:15 |
|
selckin
| so thats 40 people doing 3000 commits a day for 10 years ? | 00:16 |
|
cehteh
| Ilari: on 32bit or generally? | 00:16 |
|
Ilari
| But at that point, repo size is probably at least something like 1TB if not more... And history having few 100M's of commits. | 00:16 |
|
jjore
| That's an improbable amount of objects for /humans/ to generate. | 00:16 |
|
| So any thought on getting the size of the repo at a point in time? | 00:17 |
|
Ilari
| The transports only copy one pack, and pack header has 4-byte object count filed... | 00:17 |
| ← jstephenson left | 00:17 |
|
cehteh
| well 3000 people generating 40 commits a day .. could work :) | 00:17 |
| → sgh_ joined | 00:17 |
|
selckin
| surely you can never have 3k ppl working on the same project-file-set, split it up! | 00:17 |
|
cehteh
| :) | 00:17 |
|
| i dont want to be the poor guy who merges that mess | 00:18 |
|
jjore
| No, that's improbable too. The communication costs of 3000 people surely prevent them from getting 40 commits a day. | 00:18 |
|
| Gah, that'd be horrible. | 00:18 |
| ← sgh left | 00:18 |
|
Ilari
| And index files alone at that point are something like 110GiB | 00:18 |
|
selckin
| i've seen some 400 people repos | 00:18 |
|
cehteh
| and in 10 years the pack headers are 64bit :) | 00:18 |
|
| i guess if you approach linus with a reasonable "Hey we hit a git limit by legitimate use here" he will chew out a fix in 1 day :) | 00:19 |
| ← hrehf left | 00:19 |
| ← sgh_ left | 00:20 |
| ← lamont left | 00:20 |
| ← gk left | 00:22 |
|
dbt
| hold on, if it's 4bn objects that's easier to reaech | 00:22 |
|
| imagine a repo of a java project where some util class gets renamed frequently for some stupid reason :) | 00:23 |
| ← tstclair left | 00:23 |
| ← bdowning left | 00:23 |
|
dbt
| every java file that refers to that class will change. | 00:23 |
| → bdowning joined | 00:23 |
|
selckin
| emperical evidence says nobody has hit it yet, you're probably safe | 00:24 |
| ← KingBug left | 00:24 |
| → warthog9 joined | 00:25 |
| → EricInBNE joined | 00:25 |
| → gk joined | 00:26 |
|
Ilari
| Hmm... Wonder if deltas >4GiB work correctly (but of course they are insane) | 00:26 |
|
jjore
| dbt, yeah, but that's a human originated change, to human originated objects, on a human's timescale which tends to not go up to limits like 2**32 | 00:26 |
| → _ringlej joined | 00:26 |
| ← hobodave left | 00:26 |
|
| warthog9 recommends taking the kernel.org log files and each line is a separate commit into a git tree | 00:27 |
|
spearce
| Ilari: deltas on an object larger than 4 GiB, or an OBJ_OFS_DELTA pointer pointing back over a 4 GiB block of data in the pack? | 00:27 |
|
Ilari
| spearce: Delta where source is larger than 4GiB. | 00:27 |
|
| I have heard some rumours that delta diffing code will crash on those. | 00:28 |
| → alezandro joined | 00:28 |
| ← onigiri left | 00:28 |
|
warthog9
| Ilari: wouldn't be hard, take a dvd iso and mod it | 00:28 |
|
Ilari
| Actually, there are easier ways to generate suitable test files (and you can make them take quite small amount of disk space by using holes). The problematic part in testing is large amount (at least 8GiB) RAM it requires). | 00:29 |
| ← justin-g_ left | 00:29 |
|
warthog9
| Ilari: true, but at least junio has access to machines that have enough ram for periodic testing | 00:29 |
|
| or spearce | 00:29 |
| ← Beirdo left | 00:30 |
|
| selckin tries to think of a valid reason to store 4gb files in git | 00:30 |
| ← fhr left | 00:30 |
|
Ilari
| Still, it shouldn't crash or corrupt data... | 00:30 |
|
selckin
| true | 00:30 |
|
warthog9
| selckin: all of the text of the library of congress in a single file? | 00:31 |
|
selckin
| i think thats less! | 00:31 |
|
warthog9
| selckin: backup copies in the same file? | 00:31 |
|
selckin
| in 29 languages | 00:32 |
| ← orafu left | 00:32 |
| → orafu joined | 00:32 |
|
Ilari
| Source file: 2^32 0x00s, 65535 0x01s, 1 0x02. Destination: 65535 0x01s, 1 0x02. | 00:32 |
|
| Or, actually, destination file can be anything that doesn't contain NULs, and source file is 4GiB of zeroes appeneded with destination file. | 00:33 |
|
| The destination file should be 65536 bytes... | 00:33 |
| ← warthog9 left | 00:33 |
|
selckin
| The print collections of the U.S. Library of Congress: 10 terabytes | 00:34 |
|
| oops! | 00:34 |
| ← gk left | 00:34 |
| → gk joined | 00:34 |
| ← literal left | 00:35 |
|
selckin
| A pickup truck filled with books: 1 gigabyte | 00:35 |
| → literal joined | 00:35 |
|
Ilari
| If the delta algo can compress the destination file, something's buggy, because delta offset field has maximum value of 2^32-1. | 00:35 |
| → gernot joined | 00:36 |
| ← qhoxie left | 00:37 |
| ← neldoreth left | 00:37 |
| ← vuf left | 00:37 |
| ← elTigre left | 00:38 |
| ← kukks left | 00:38 |
| ← hyperair left | 00:40 |
| ← jlilly left | 00:40 |
| → flippo joined | 00:40 |
| ← tfarina_ left | 00:41 |
| ← seanmccann left | 00:42 |
| → kpreid_ joined | 00:42 |
| → apeiron joined | 00:42 |
| ← ThaDon left | 00:42 |
| → ThaDon joined | 00:43 |
| → hyperair joined | 00:43 |
| ← agile left | 00:44 |
| → Adlai` joined | 00:45 |
| ← apeiron left | 00:45 |
| ← Adlai left | 00:46 |
| Adlai` → Adlai | 00:46 |
| → agile joined | 00:46 |
| ← phantomcircuit left | 00:47 |
| → KingBug joined | 00:48 |
| → gk__ joined | 00:48 |
| ← EricInBNE left | 00:49 |
| ← markelikalderon left | 00:50 |
| ← gk left | 00:51 |
| ← ThaDon left | 00:51 |
| ← m0 left | 00:51 |
| → m0 joined | 00:52 |
| ← yhager left | 00:53 |
| → _eric joined | 00:54 |
| ← parasti left | 00:55 |
| ← hyperair left | 00:56 |
| → hyperair joined | 00:57 |
| → bcardarella joined | 00:57 |
| → Swimming_Bird joined | 00:57 |
| ← pointlessjon_ left | 00:58 |
| → kardan| joined | 01:01 |
| ← Azeroth-Work left | 01:01 |
| → jaysern_ joined | 01:03 |
| → jinzhu joined | 01:04 |
| → queso_ joined | 01:04 |
|
queso_
| How do I move my head back one commit? | 01:05 |
| → gretch joined | 01:05 |
|
Adlai
| queso_: you need to man git-reset | 01:06 |
|
Gitbot
| queso_: the git-reset manpage can be found at http://git.or.cz/man/git-reset | 01:06 |
|
queso_
| Adlai: Thank you :) | 01:06 |
| ← JKac3BEq left | 01:06 |
|
Adlai
| queso_: if any terminology is unclear, ask away, and maybe google for 'git book' | 01:06 |
| → Azeroth-Work joined | 01:07 |
|
queso_
| Adlai: thanks :) I should learn a lot more about git because I use it so much, I should drop by here more often. | 01:08 |
| → masterloki joined | 01:09 |
| ← _eric left | 01:12 |
| ← spearce left | 01:12 |
| → d2dchat joined | 01:12 |
| ← d2dchat left | 01:13 |
| → snuxoll_ joined | 01:14 |
| ← jhelwig left | 01:15 |
|
bugfux
| can I pull in a file from another branch? | 01:15 |
|
sitaram
| git checkout branch -- file | 01:16 |
|
| or git show branch:file > file.new | 01:16 |
| ← kardan_ left | 01:16 |
| snuxoll_ → snuxoll | 01:16 |
| ← Theravadan left | 01:18 |
| ← schacon left | 01:19 |
| ← relix left | 01:19 |
|
masterloki
| How can I update an old branch with the master head without mergin my code with the master? | 01:20 |
| ← kennethlove left | 01:21 |
| → j416 joined | 01:21 |
|
sitaram
| masterloki: "merging A with B" is ambiguous. "merging A into B" is clearer, and in this case B changes, A doesn't. Can you rephrase your question? | 01:21 |
|
| merging A into B == git checkout B; git merge A # just to be really clear what we mean | 01:22 |
|
masterloki
| I have and old branch and now master is ahead from me, How can I update my branch withot adding my code to master | 01:23 |
|
sitaram
| masterloki: git checkout branch; git merge master # this will add master code to branch, not the other way around | 01:23 |
|
Ilari
| masterloki: 'git checkout <oldbranch>'. 'git merge master'. | 01:23 |
| → fualo_ joined | 01:23 |
|
masterloki
| thanks! | 01:24 |
| ← fualo_ left | 01:25 |
|
j416
| masterloki: also read about git rebase, it may be useful | 01:25 |
|
| man git-rebase | 01:25 |
|
Gitbot
| j416: the git-rebase manpage can be found at http://git.or.cz/man/git-rebase | 01:25 |
| → hobodave joined | 01:28 |
| → jlilly joined | 01:28 |
| ← ryanarn left | 01:29 |
| → eno__ joined | 01:30 |
| ← hyperair left | 01:31 |
| → dgs__ joined | 01:33 |
|
dgs__
| error: Entry 'sqlnet.log' not uptodate. Cannot merge. | 01:35 |
|
| fatal: merging of trees c904... and c9600... failed | 01:35 |
|
| when trying to merge a branch. As far as i can tell, these files are not important, so happy to get the latest version from the repository, but not sure how I can force that? | 01:35 |
|
| hmm. was meant to start that with: "im getting errors like: " | 01:35 |
|
| i've tried just deleting the local version, but git pull seems to restore them, and then complain about them again... | 01:35 |
| ← SRabbelier left | 01:36 |
| ← sagsousuke left | 01:37 |
| → aliceinwire_ joined | 01:38 |
| ← aliceinwire_ left | 01:38 |
| ← aliceinwire left | 01:39 |
| → mrlemao joined | 01:40 |
| → dduncan joined | 01:40 |
| ← smuf left | 01:40 |
| ← dduncan left | 01:40 |
| ← eno left | 01:41 |
| eno__ → eno | 01:42 |
| ← mrlemao left | 01:43 |
| ← flazz left | 01:44 |
| → hyperair joined | 01:45 |
| → jhelwig joined | 01:47 |
| ← bugfux left | 01:48 |
| → WALoeIII_ joined | 01:49 |
| → mdemmitt joined | 01:50 |
| ← WALoeIII_ left | 01:50 |
| → WALoeIII_ joined | 01:51 |
| ← mjf left | 01:52 |
| → mncaudill joined | 01:54 |
| ← icwiener left | 01:55 |
| ← WALoeIII left | 01:58 |
| WALoeIII_ → WALoeIII | 01:58 |
| ← Yuuhi left | 01:59 |
| ← ereslibre left | 02:00 |
| → aliceinwire joined | 02:01 |
| ← Azeroth-Work left | 02:02 |
| → Azeroth-Work joined | 02:02 |
| → Yewbacca2 joined | 02:02 |
| ← Yewbacca left | 02:02 |
| ← WALoeIII left | 02:02 |
| ← ruphy left | 02:03 |
| → ruphy joined | 02:03 |
| → Yewbacca joined | 02:04 |
| → VVSiz_ joined | 02:04 |
| ← MisterN left | 02:04 |
| → MisterN joined | 02:04 |
| ← Yewbacca2 left | 02:05 |
| → abms1116 joined | 02:06 |
| → shadowmaster joined | 02:06 |
| ← abms1116 left | 02:06 |
| → Adlai` joined | 02:07 |
| → abms1116 joined | 02:07 |
| ← luke-jr left | 02:07 |
| → luke-jr joined | 02:08 |
| ← jlilly left | 02:11 |
| ← Adlai left | 02:11 |
| Adlai` → Adlai | 02:11 |
| ← Chillance left | 02:12 |
| ← snuxoll left | 02:12 |
| → cao joined | 02:19 |
| cao → Guest62040 | 02:20 |
| → snuxoll joined | 02:20 |
| → JKac3BEq joined | 02:21 |
| ← VVSiz left | 02:22 |
| → krynnotaur joined | 02:23 |
| ← krynnotaur left | 02:24 |
| ← __iron left | 02:25 |
| ← kaseano left | 02:25 |
| → __iron joined | 02:26 |
| ← Guest2583 left | 02:26 |
| ← godsflaw left | 02:29 |
| → WALoeIII joined | 02:30 |
| → javatexan joined | 02:31 |
| → upul joined | 02:31 |
| ← javatexan left | 02:31 |
|
queso_
| Today a co-worker made a commit that broke things. I reset my head to just before his commit. But now I've made modifications and want to make a commit. What can I do to prevent my commit from attempting to merge with his, so that it ignores his commit and basically ignores it? | 02:31 |
| ← flippo left | 02:32 |
|
queso_
| (ignores his commit and basically ignores it = it's been a long day ;) | 02:32 |
| ← eno left | 02:32 |
| → juan_arandaalvar joined | 02:33 |
|
Ilari
| queso_: Either force the push (dangerous) or merge his commit using '-s ours'. | 02:33 |
|
queso_
| Ilari: what does '-s ours' mean? | 02:33 |
|
Ilari
| queso_: Effectively mark commits as merged, but don't merge any changes in. | 02:34 |
|
queso_
| Ilari: okay, thanks | 02:34 |
| → loops joined | 02:35 |
| ← jepler left | 02:35 |
| → jepler joined | 02:36 |
| → eno joined | 02:37 |
| → archis joined | 02:37 |
| ← archis left | 02:38 |
| ← shadowmaster left | 02:39 |
| ← juan_arandaalvar left | 02:43 |
| → Adlai` joined | 02:43 |
| ← Adlai left | 02:44 |
| Adlai` → Adlai | 02:44 |
| ← mncaudill left | 02:44 |
| → Hideki_ joined | 02:46 |
| → Theravadan joined | 02:47 |
| → mncaudill joined | 02:47 |
| → fynn joined | 02:49 |
|
fynn
| Good evening. | 02:50 |
|
| Is there a way to reset/checkout just the deleted files in a directory, but not the modified files? | 02:50 |
| revans → revans|away | 02:50 |
| → flippo joined | 02:51 |
|
loops
| fynn, something like git checkout -- $(git ls-files -d) | 02:52 |
| → krynnotaur joined | 02:52 |
| → _VVSiz_ joined | 02:52 |
|
fynn
| loops: thanks | 02:53 |
| ← DrTrevorkian left | 02:54 |
|
fynn
| yeah that works verbatim. | 02:56 |
|
Ilari
| Seems bit dangerous if filenames have spaces... | 02:56 |
| ← jschoolcraft left | 02:57 |
|
loops
| might be nice if ls-files had shell quoting option | 02:58 |
|
Mikachu
| just put it in quotes | 02:59 |
|
| oops, i should read before talking :) | 02:59 |
| revans|away → revans | 03:00 |
| ← Hideki_ left | 03:01 |
| → gko joined | 03:03 |
| → gko` joined | 03:03 |
| ← revans left | 03:03 |
| ← bcardarella left | 03:03 |
| ← jinzhu left | 03:07 |
| ← hyperair left | 03:08 |
| ← VVSiz_ left | 03:10 |
| → rchavik joined | 03:11 |
| ← Rovanion left | 03:11 |
| ← gko` left | 03:17 |
| ← gko left | 03:17 |
| → cytrinox_ joined | 03:20 |
| → secoif joined | 03:26 |
| ← WebDragon left | 03:26 |
| ← aziz left | 03:28 |
| ← jaysern_ left | 03:28 |
| → WebDragon joined | 03:28 |
| ← squentin left | 03:28 |
| → jeffmoss joined | 03:29 |
|
tk
| sitaram: dont suppose you're still around? | 03:30 |
| ← richcollins left | 03:31 |
| → hgimenez joined | 03:32 |
|
sitaram
| tk: still? my day has just started! | 03:34 |
|
| it's 9:04 am and I'm at work (India!) | 03:34 |
| → argonel joined | 03:34 |
|
tk
| sitaram: ohh, which part? my work has a team over there actually :P | 03:34 |
|
sitaram
| so go ahead; as I said when I'm at work there's always the chance of lag but otherwise I'm here | 03:34 |
|
| Hyderabad :) | 03:34 |
|
lucs
| YEah, sometimes he works :) | 03:34 |
|
tk
| sitaram: ohh I was just looking for better info on post-commit hooks, want to push files to a dev server after commits for in progress projects | 03:35 |
|
| so far google hasnt turned up anything useful but still digging | 03:35 |
| ← cytrinox left | 03:36 |
| cytrinox_ → cytrinox | 03:36 |
|
sitaram
| tk: post commit hooks... why not post-push (aka post-update) so these hooks are only in the server, not on dev workstations? Or do you *need* them in dev workstations? | 03:37 |
|
tk
| sitaram: post-commit --- svn :P you are right, update is the appropriate one for git | 03:37 |
|
| hmm there isnt even a sample for that one | 03:38 |
| ← ia left | 03:38 |
|
tk
| sitaram: our guys are in New Delhi | 03:39 |
| → hyperair joined | 03:39 |
| ← mdemmitt left | 03:39 |
|
sitaram
| tk: post-update is easy, wait | 03:40 |
| ← fynn left | 03:41 |
| → dunolie_ joined | 03:42 |
| ← schmukkk left | 03:43 |
|
sitaram
| tk: http://toroid.org/ams/git-website-howto might be a good start (although now I notice he's using post-receive; because that apparently supercedes post-update now) | 03:43 |
| → schmukkk joined | 03:44 |
| ← dunolie left | 03:44 |
| dunolie_ → dunolie | 03:44 |
| ← hgimenez_ left | 03:44 |
| → Dashkal joined | 03:46 |
| → cedricv joined | 03:47 |
| → ia joined | 03:48 |
| ← aliceinwire left | 03:51 |
| ← hobodave left | 03:51 |
| ← legnaleurc left | 03:52 |
| ← hyperair left | 03:53 |
| → hyperair joined | 03:54 |
| → bcardarella joined | 03:57 |
| → jrmuizel joined | 03:58 |
|
tk
| sitaram: thanks, will take a look | 03:59 |
| ← scarabx left | 04:02 |
| ← flippo left | 04:07 |
| ← schmukkk left | 04:07 |
| ← tjafk left | 04:09 |
| → tjafk joined | 04:09 |
| → ericflo joined | 04:11 |
| ← modsognir left | 04:11 |
|
ericflo
| How do I make a commit that reverts all the changes I've made since revision X? | 04:12 |
|
| I just want to rewind. | 04:12 |
| → modsognir joined | 04:12 |
| → richcollins joined | 04:12 |
| ← hyperair left | 04:14 |
| ← jfkw left | 04:15 |
| → urbanmonk joined | 04:16 |
| ← bdimcheff left | 04:17 |
|
cehteh
| ericflo: git revert | 04:18 |
|
ericflo
| cehteh: Seems that reverts a specific revision. | 04:18 |
|
jrdavid
| how about: git reset --hard version | 04:19 |
|
cehteh
| uhm | 04:19 |
|
| ericflo: is that repo already published or private? | 04:19 |
|
ericflo
| git status gives me "Your branch is behind 'origin/master' by 11 commits, and can be fast-forwarded." | 04:19 |
|
| cehteh: nope, it's published | 04:19 |
|
cehteh
| then not reset --hard | 04:19 |
|
| you can revert with -n and stack reverts together | 04:20 |
|
ericflo
| yeah, I just git reset --hard'ed to get back to HEAD again | 04:20 |
| → schmukkk joined | 04:20 |
| ← schmukkk left | 04:20 |
|
ericflo
| cehteh: That looks like it will work, but I have to do that for every medium inbetween HEAD and the one I want? | 04:21 |
| ← urbanmonk left | 04:21 |
| ← dunolie left | 04:22 |
|
cehteh
| i just think there is prolly some easier way | 04:22 |
|
| reset or checkout but not hard and make that a new commit | 04:22 |
| → urbanmonk joined | 04:22 |
|
cehteh
| i never had to undo multiple commits yet :) | 04:22 |
|
engla
| git diff HEAD..HEAD~10| git apply | 04:22 |
|
| just apply a reverse diff | 04:23 |
|
cehteh
| git checkout HEAD~10 -- . maybe but not sure | 04:23 |
|
ericflo
| engla: Yeah! That worked. Thanks a bunch. | 04:23 |
|
cehteh
| 1000 ways to do something :) | 04:24 |
| ← gretch left | 04:24 |
| → gretch joined | 04:24 |
|
ericflo
| :D | 04:24 |
|
| thanks for the help though, cehteh | 04:24 |
|
| jrdavid thinks engla is clever | 04:24 |
| ← bcardarella left | 04:25 |
| → hyperair joined | 04:25 |
|
| engla has had a lot of git today so I'm lucid | 04:25 |
| → bcardarella joined | 04:25 |
|
jrdavid
| What's a good way to always --decorate git log? | 04:27 |
| ← ericflo left | 04:27 |
|
engla
| an alias? | 04:28 |
| → gretch_ joined | 04:28 |
| ← gretch left | 04:28 |
| → DavidKlein joined | 04:29 |
|
engla
| if you create an alias that you'll always use for viewing the log, you can throw in some other options as well, like --stat | 04:30 |
| ← DavidKlein left | 04:30 |
| → schmukkk joined | 04:30 |
|
jrdavid
| yeah I did that, but I always end up typing 'git log' instead of the alias (habit) | 04:32 |
|
engla
| I only have alias habits, don't know if that is better. well, you can't override log and I don't see any config option | 04:34 |
|
| override with an alias I mean | 04:34 |
| → SRabbelier joined | 04:36 |
| ← urbanmonk left | 04:36 |
|
jrdavid
| yeah I looked for log.default_options too... | 04:37 |
| ← TML left | 04:38 |
| → TML joined | 04:38 |
| → dunolie joined | 04:39 |
| → Adlai` joined | 04:40 |
| ← Adlai left | 04:41 |
| Adlai` → Adlai | 04:41 |
| → urbanmonk joined | 04:41 |
| → jlilly joined | 04:42 |
| ← patcito left | 04:42 |
| ← urbanmonk left | 04:43 |
| → urbanmonk joined | 04:44 |
| → schacon joined | 04:48 |
| ← cworth left | 04:51 |
| ← ryoma left | 04:54 |
| → javatexan joined | 04:56 |
| → zoonfafer joined | 05:01 |
| ← JoeConyers left | 05:06 |
| ← javatexan left | 05:07 |
| → JoeConyers joined | 05:07 |
| ← solarbunny left | 05:10 |
| → gaveen joined | 05:10 |
| → bsdvodsky joined | 05:11 |
| → murph joined | 05:13 |
| ← jspiros left | 05:15 |
| → yhager joined | 05:16 |
| → scientes joined | 05:18 |
|
scientes
| how do i remove new files? | 05:18 |
|
| git reset --hard doesnt do it | 05:18 |
| → queso__ joined | 05:19 |
| ← murph_ left | 05:19 |
| ← Bass10 left | 05:20 |
| → MariusAZ joined | 05:20 |
|
MariusAZ
| How do you apply just a patch file to git? is it something like cat patch.file | git apply? | 05:21 |
| ← madewokherd left | 05:21 |
|
crab
| or git apply patch.file | 05:21 |
|
MariusAZ
| oh ok | 05:21 |
|
| That's what I thought, thanks | 05:21 |
| ← MariusAZ left | 05:21 |
| → jaysern_ joined | 05:22 |
| → JohnFlux joined | 05:22 |
| ← masterloki left | 05:23 |
| → jpic_ joined | 05:23 |
|
JohnFlux
| I still haven't worked out how to git pull exactly.. | 05:23 |
|
| if I do: git pull origin branchname what happens? | 05:23 |
|
| it will pull the local branch called "branchname" ? | 05:23 |
| ← jaysern_ left | 05:23 |
|
JohnFlux
| or the remote branch called "branchname" ? | 05:23 |
|
jpic_
| hi, i think i confused git again, i'm trying to add some files but it's "not doing anything": files are not listed in git status | 05:23 |
| → jspiros joined | 05:23 |
| → mdemmitt joined | 05:24 |
| → jaysern_ joined | 05:24 |
| ← jaysern_ left | 05:24 |
|
engla
| JohnFlux: remote. perhaps it's easier if you first download all remote changes "git fetch origin" and you can inspect them in peace before you merge or rebase to integrate the changes | 05:24 |
| → Tuomas joined | 05:25 |
|
JohnFlux
| engla: okay so it pulls the remote branch called "branchname" to where? the current branch that I have checked out? | 05:26 |
|
jpic_
| maybe because that directory i' mtrying to add has a .git subdir of its own? | 05:26 |
| → a389742 joined | 05:28 |
|
engla
| yes, exactly | 05:29 |
|
| that's the danger of pull | 05:29 |
|
| jpic_: might be that, I know 0 about submodules | 05:29 |
|
JohnFlux
| engla: hmm. and if I do: git push origin branchname. What does that do? | 05:30 |
| ← jrmuizel left | 05:31 |
|
JohnFlux
| engla: push the _current_ checkout to remote branch "branchname" ? or push the local checkout "branchname" to remote branch "branchname"? | 05:31 |
| ← queso_ left | 05:32 |
|
engla
| the latter | 05:34 |
|
| push and pull are not symmetric | 05:34 |
| → queso_ joined | 05:34 |
| ← queso__ left | 05:36 |
| → jrmuizel joined | 05:36 |
| ← schacon left | 05:39 |
| ← loops left | 05:39 |
| ← SRabbelier left | 05:40 |
| → FunkeeMonk joined | 05:43 |
| ← __iron left | 05:44 |
| → abe_t joined | 05:45 |
|
jpic_
| apparently i should add a submodule entry in my superproject with a path and url | 05:45 |
| → roop joined | 05:45 |
| → jceb joined | 05:46 |
| ← abe_t left | 05:46 |
| → sprasanna joined | 05:46 |
|
jpic_
| it seems like this has to be done *in every single clone*, unlike svn:externals | 05:48 |
|
hyperair
| hmm? no, it isn't required for every clone | 05:48 |
|
jpic_
| my bad :) | 05:48 |
| ← Swimming_Bird left | 05:49 |
| ← merlin83 left | 05:53 |
| → maleknet joined | 05:56 |
| → macmaN6789 joined | 05:57 |
| ← Theravadan left | 06:01 |
| → fualo_ joined | 06:01 |
| ← mdemmitt left | 06:03 |
| → murph_ joined | 06:04 |
|
JohnFlux
| engla: seems so confusing - you'd think push and pull would be symmetric | 06:05 |
| xenoterracide_ → xenoterracide | 06:05 |
| ← jrmuizel left | 06:06 |
| ← vinse_ left | 06:07 |
| ← abms1116 left | 06:09 |
| ← murph left | 06:09 |
| ← d3z left | 06:09 |
| ← bcardarella left | 06:09 |
| ← hyperair left | 06:10 |
| → jrmuizel joined | 06:10 |
| ← jrmuizel left | 06:10 |
| → hyperair joined | 06:10 |
| ← nighthwk1 left | 06:12 |
| → nighthwk1 joined | 06:12 |
| ← nighthwk1 left | 06:12 |
| ← karihre left | 06:13 |
| → karihre joined | 06:14 |
| → _jason553839 joined | 06:17 |
| → Axius joined | 06:19 |
| ← johan-s left | 06:21 |
| ← jceb left | 06:26 |
| _VVSiz_ → VVSiz | 06:27 |
| ← Axius left | 06:28 |
| → Axius joined | 06:28 |
| ← agenteo left | 06:33 |
| ← lamont` left | 06:35 |
|
Mikachu
| JohnFlux: push and fetch are closer | 06:35 |
| ← engla left | 06:36 |
| → ph^ joined | 06:36 |
| ← _jason553839 left | 06:39 |
| → roop_ joined | 06:41 |
| ← JackWinter left | 06:41 |
| ← niki left | 06:42 |
|
Phurl
| is there any work on a libgit? | 06:42 |
|
| i would like to call commit from a webserver, but do not want to use exec because of security. | 06:43 |
| ← Aestas left | 06:43 |
| ← jeffmoss left | 06:44 |
| → kaseano joined | 06:46 |
| → queso__ joined | 06:50 |
| → priidu joined | 06:50 |
|
Mikachu
| that doesn't really make much sense, since commit execs a lot of stuff | 06:52 |
| ← eletuchy left | 06:52 |
| ← hyperair left | 06:54 |
| → hyperair joined | 06:54 |
| → psoo joined | 06:56 |
| ← psoo left | 06:56 |
| ← roop left | 06:57 |
| → jinzhu joined | 06:59 |
| → queso___ joined | 07:00 |
| → cworth joined | 07:01 |
| ← FunkeeMonk left | 07:01 |
| ← queso_ left | 07:03 |
| → abms1116 joined | 07:03 |
| → clayjar joined | 07:03 |
| ← maleknet left | 07:03 |
| → alireza_ joined | 07:03 |
|
clayjar
| G'evening folks. | 07:03 |
|
| Wow, a huge crowd.. I guess this is normal here. | 07:04 |
|
vkroll
| good morning clayjar | 07:04 |
| → apm121 joined | 07:04 |
|
clayjar
| Anyway, here is my question: I've installed and set up git, gitosis, and gitweb (through Apache). I clone gitosis-admin from my git server (repo), and then update the gitosis.conf and then commit -> push origin master; shouldn't the changes be immediately effective? | 07:05 |
|
| It seems like I have to run sudo -H -u git gitosis-init < id_dsa.pub every time I make a change to make it effective. | 07:05 |
|
apm121
| Is something like git-rus irc or maillist exists? Having problem with english, want russian .... | 07:06 |
|
clayjar
| I'm not sure if there is a Russian language FreeNode, but my understanding is that most of FreeNode users are English speakers... | 07:06 |
| ← reidab left | 07:07 |
|
clayjar
| Is everyone really asleep or busy typing answers?? | 07:07 |
|
crab
| you certainly shouldn't need to run gitosis-init each time | 07:08 |
|
sitaram
| clayjar: that might mean your post-update hook isn't chmod 755 or something | 07:08 |
|
clayjar
| crab, true. | 07:09 |
|
sitaram
| clayjar: http://sitaramc.github.com/the-list-and-irc/gitosis-troubleshooting.html may help; I have to run for a meeting now sorry | 07:09 |
|
clayjar
| sitaram, tx for the reference, c ya. | 07:09 |
| → roop__ joined | 07:09 |
|
clayjar
| well, post-update is 755 all right.. I've checked it every time just to make sure. | 07:09 |
| → sde_antrix1 joined | 07:09 |
| → Weasel[DK] joined | 07:10 |
| ← roop_ left | 07:10 |
|
clayjar
| by the way, is post-update normally symlinked to some other location?? I think when I first encountered it it was symlinking to an non-existent file, so I deleted it and copied post-update.sample to post-update under hooks/ folder. | 07:10 |
| ← apm121 left | 07:11 |
| → nothingmuch joined | 07:12 |
| ← nothingmuch left | 07:12 |
| → ludde joined | 07:12 |
| → marh joined | 07:13 |
| ← queso__ left | 07:13 |
| → nothingmuch joined | 07:13 |
| → Grahack joined | 07:14 |
|
marh
| hi! i'm trying to put a debian installation (on my openmoko phone) under git. adding stuff worked but now there are ~200k loose objects and git cg tells me 'nothing new to pack'. can someone give me a hint on what's wrong? or shouldn't i use git for this in the first place? | 07:15 |
| ← voker57 left | 07:16 |
|
marh
| (it is < 512M in size) | 07:16 |
| ← gretch_ left | 07:17 |
| → nitrate joined | 07:18 |
| ← nitrate left | 07:18 |
| → saurabhverma joined | 07:18 |
| → thiago_home joined | 07:18 |
|
j416
| marh: are the loose objects unreferenced? | 07:25 |
|
| in that case git prune would kill them. | 07:26 |
| → ixti joined | 07:27 |
| → gretch_ joined | 07:27 |
| ← secoif left | 07:29 |
|
marh
| j416: ah.. i wasn't exactly sure what you mean by that.. but i committed and it seems to work now :) | 07:29 |
| ← Axius left | 07:31 |
|
j416
| marh: 'git prune' deletes objects that are not referenced = unreachable | 07:32 |
|
| it has nothing to do with your committing or not | 07:32 |
|
| it is just for cleaning | 07:32 |
| → drizzd joined | 07:33 |
|
clayjar
| hook/post-update doesn't seem to be running properly... thus, no immediately update for gitosis | 07:33 |
| ← JoeConyers left | 07:35 |
| → khmarbaise joined | 07:35 |
| → babilen joined | 07:36 |
| → fualo__ joined | 07:37 |
|
clayjar
| anyone familiar with this issue? | 07:37 |
| → bentob0x joined | 07:37 |
| ← Rolenun left | 07:38 |
| ← segher left | 07:39 |
|
sitaram
| ls -al the file and see if it has +x | 07:40 |
|
| oh wait I just saw what you wrote up there | 07:40 |
| ← bambule left | 07:40 |
| → arekm joined | 07:41 |
| ← khmarbaise left | 07:42 |
| → elTigre joined | 07:42 |
|
clayjar
| I su 'd into git, and then tried to run exec git-server-update-info.. it returns: exec: 11: git-update-server-info: not found | 07:46 |
|
| the only way gitosis would update itself is when I manually run "sudo -H -u git gitosis-init < id_dsa.pub"... I wonder why the hooks wouldn't be operating properly... | 07:46 |
| ← fualo_ left | 07:47 |
| ← selckin left | 07:47 |
| → galderz joined | 07:47 |
|
| arekm is looking for some software like gforge, fusionforge that supports svn and git - does anyone know such beast? (smaller->better) | 07:49 |
| ← roop__ left | 07:49 |
| → roop__ joined | 07:50 |
| → scientes_ joined | 07:51 |
| ← davido left | 07:51 |
| ← Nugget_ left | 07:51 |
| → Nugget joined | 07:51 |
| → schmukkk2_ joined | 07:51 |
| → davido joined | 07:51 |
| ← schmukkk left | 07:52 |
| ← Dashkal left | 07:52 |
| → mithro joined | 07:54 |
| → dpino joined | 07:56 |
| ← Adlai left | 07:57 |
| ← hyperair left | 08:00 |
| ← arekm left | 08:00 |
| → khmarbaise joined | 08:00 |
| → cjs joined | 08:02 |
| → ntoll joined | 08:03 |
| ← khmarbaise left | 08:05 |
| → hyperair joined | 08:05 |
| → zoniq joined | 08:06 |
| → psankar joined | 08:06 |
|
cjs
| So if you had a repo you declared as the "master," to which everybody pushes, and from which you roll out your production software, you could do a hot backup of this pretty easy by just having a post-update hook that pushed the changes to the hot backup server, right? | 08:06 |
| ← scientes left | 08:07 |
| ← jlilly left | 08:12 |
|
thiago_home
| yes | 08:12 |
| → jschoolcraft joined | 08:14 |
| ← gretch_ left | 08:15 |
| ← jschoolcraft left | 08:15 |
| → jschoolcraft joined | 08:16 |
| → tschundeee joined | 08:17 |
| ← RobertLaptop left | 08:20 |
| ← mithro left | 08:22 |
| → agkawj joined | 08:22 |
| ← Grahack left | 08:23 |
| → merlin83 joined | 08:25 |
| → cilly joined | 08:25 |
| → gretch_ joined | 08:26 |
| ← scientes_ left | 08:26 |
| → scientes_ joined | 08:26 |
| ← schmukkk2_ left | 08:27 |
| → chamo joined | 08:28 |
|
chamo
| hi all | 08:28 |
| → schmukkk2_ joined | 08:28 |
| → voker57 joined | 08:29 |
| → DerKomische joined | 08:29 |
| → neldoreth joined | 08:30 |
| neldoreth → Guest60817 | 08:30 |
| → fluxusps joined | 08:31 |
| ← chamo left | 08:31 |
| → chamo joined | 08:31 |
| ← bsdvodsky left | 08:31 |
| Guest60817 → neldoreth | 08:32 |
| ← thiago_home left | 08:32 |
| → niki joined | 08:33 |
| multani0 → multani | 08:33 |
| → shruggar joined | 08:33 |
| → tobi joined | 08:34 |
| → SeySayux joined | 08:35 |
|
SeySayux
| Hi, how do I clone all branches from a remote? | 08:35 |
| → jfkw joined | 08:35 |
| → gusl joined | 08:36 |
| → queso_ joined | 08:36 |
|
gusl
| hi | 08:37 |
|
| I'm working with github as a way to back up my projects | 08:38 |
|
| but I seem to have forgotten the procedure for committing and pushing things there | 08:38 |
|
shruggar
| SeySayux, what is your goal? iirc, the default is to copy all refs from the remote, though local branches will only be created for the default | 08:38 |
|
Rhonda
| SeySayux: When you clone you get all branches already. "git branch -a" lists them all. | 08:39 |
| → tobi_ joined | 08:39 |
|
gusl
| I thought the procedure was: (1) edit file.txt (2) git add file.txt (3) git commit -m 'backup' (4) git push origin master | 08:40 |
|
| is this missing a step? | 08:40 |
| ← hyperair left | 08:41 |
| → hyperair joined | 08:41 |
|
shruggar
| gusl, that looks right for the general case, I don't know about github, however | 08:42 |
| → tango_ joined | 08:42 |
|
gusl
| shruggar: so I don't need to remote add again? | 08:42 |
| ← tobi left | 08:43 |
|
SeySayux
| Hmm, I only get 'master' and a lot of remote/origin stuff -- how do I get that in my local repo? | 08:43 |
|
shruggar
| gusl, "remote add" just adds configuration information about the remote, giving it the name you specify. Once it's added, it gets referred to by that name from then on (in this case, "origin"). So, no, you don't need to add a remote every time (unless you haven't already) | 08:43 |
|
| SeySayux, remote/origin _is_ in your local repos, it's just a reference to something which came from remote/origin | 08:44 |
|
gusl
| thanks, shruggar | 08:44 |
|
Rhonda
| SeySayux: git checkout -b somebranch remote/origin/somebranch - read man git-checkout | 08:44 |
|
Gitbot
| SeySayux: the git-checkout manpage can be found at http://git.or.cz/man/git-checkout | 08:44 |
|
chamo
| sitaram: are you around? | 08:45 |
|
gusl
| and indeed, this seems to work! It only doesn't work when I use the shell inside emacs. :-( | 08:45 |
|
shruggar
| damn hippies! :) | 08:45 |
| → aatanasov joined | 08:46 |
|
sitaram
| chamo: yes | 08:46 |
|
gusl
| in my emacs shell, I can do git commit, no problem. But when I try to do git push, it doesn't do anything... no asking for my passphrase. | 08:46 |
| yhager → yhager|away | 08:46 |
| → ArdRigh joined | 08:47 |
|
gusl
| I'm wondering if the emacs shell knows the ssh key | 08:47 |
|
shruggar
| gusl, that's probably got something to do with the way things redirect (though I don't know about emacs specifically). Try setting up ssh-agent, if github supports it. | 08:47 |
|
chamo
| sitaram: can you help me to configure gitolite? I got an error when trying to get my repo woth fatal exceptions | 08:47 |
|
gusl
| ssh-agent on the emacs shell gave me some stuff like SSH_AUTH_SOCK=... SSH_AGENT_PID=... | 08:48 |
| ← hyperair left | 08:48 |
| ← DerKomische left | 08:48 |
| → hyperair joined | 08:49 |
| → thaz joined | 08:49 |
| ← queso___ left | 08:49 |
| → ph^_ joined | 08:49 |
|
sitaram
| chamo: sure --- I will be back in 5 minutes... hope thats ok (am at work!) | 08:50 |
|
chamo
| sitaram: okie dokie im waiting | 08:51 |
|
| trying to figure out | 08:51 |
| → eletuchy joined | 08:52 |
| ← gusl left | 08:52 |
| → funkmonk joined | 08:54 |
| ← Pupeno left | 08:55 |
| → johan-s joined | 08:57 |
| ← tobi_ left | 08:58 |
| → Pupeno joined | 08:58 |
| → RobertLaptop joined | 08:58 |
| ← eletuchy left | 08:59 |
| → eletuchy joined | 08:59 |
| → jstephenson joined | 09:00 |
| ← babilen left | 09:01 |
|
clayjar
| fixed that hooks problem... I had git 1.6.5.1 installed with the older version of gitosis from Ubuntu Jaunty repository.. they weren't compatible... | 09:04 |
|
| I uninstalled gitosis, and then git clone from Tom's repo, then did a reinstall. Now, it works like a charm. | 09:04 |
| → struberg joined | 09:06 |
|
clayjar
| gitosis should have more documentation, imho. | 09:07 |
|
SeySayux
| Hi, how do I turn all tracking branches into local branches? | 09:07 |
|
sitaram
| clayjar: gitosis is obsolete | 09:07 |
|
| err.. stable | 09:07 |
|
| thats the word :) | 09:07 |
|
| clayjar http://sitaramc.github.com/0-installing/9-gitolite-basics.html and http://github.com/sitaramc/gitolite | 09:07 |
|
clayjar
| gitolite, eh? Hmmm, does it have a seamless integration with Git? | 09:08 |
| ← ArdRigh left | 09:08 |
|
sitaram
| clayjar: I have no idea what that means | 09:08 |
|
clayjar
| I'll just read the page and see if it is or not... | 09:09 |
|
sitaram
| or you could help me understand what you mean by seamless integration :) | 09:09 |
|
clayjar
| it basically means working as "one body/unit." | 09:10 |
| ← hyperair left | 09:10 |
|
sitaram
| clayjar: thank you; but I did not mean that :) | 09:10 |
|
| clayjar: actually forget it; if you were ok with gitosis, gitolite will be fine too, regardless of what you mean by "seamless integration" :) | 09:11 |
| → mattayers joined | 09:13 |
| → psoo joined | 09:13 |
| → hyperair joined | 09:14 |
| → tono joined | 09:14 |
| ← krawek_ left | 09:15 |
|
clayjar
| sitaram, I'm not sure what you are trying to achieve with gitolite... gitosis simply utilizes what you are labeling "ssh magic" (technically, it's called OpenSSH public key authentication) to only allow git push/pull.. you don't need to create unix accounts for multiple users. But you seem to have done a good job of creating an alternative way to do the same thing... I hope it's as secure... | 09:16 |
|
| ...as Gitosis... | 09:16 |
|
sitaram
| clayjar: read the bottom of http://github.com/sitaramc/gitolite/blob/pu/README.mkd | 09:16 |
|
clayjar
| Thanks, this is much clearer... it's impressive how you've managed to rewrite it to allow for branch-level access. | 09:17 |
|
sitaram
| clayjar: also read http://sitaramc.github.com/0-installing/9-gitolite-basics.html -- which is much more detailed description of what you just said; it has been useful to help people overcome ssh problems | 09:17 |
| roop__ → roop | 09:17 |
|
sitaram
| clayjar: nothing is impressive once it is documented, and I document all of it :) | 09:17 |
|
clayjar
| Sitaram, nice. It'd be even better if you could find someone to help you clean up the document a bit, but it looks like you've produced a very useful utility out of gitosis. | 09:19 |
| → ph^__ joined | 09:19 |
|
sitaram
| thanks... well if I weren't at work right now I'd ask what needs cleaning up but I;m swamped right now :( so maybe later... | 09:20 |
| → ph^___ joined | 09:20 |
|
clayjar
| It's 3:21 am here.. I think I'm little overworked.. needs to get some shuteye for at least for few hours... talk to you later. | 09:21 |
| ← abms1116 left | 09:22 |
|
SeySayux
| Hi, how do I turn all tracking branches into local branches? | 09:23 |
|
sitaram
| one by one | 09:23 |
|
clayjar
| git fetch origin ? | 09:24 |
|
sitaram
| (unless it's a bare repo, in which case you *could* use --mirror but that has other implications I'm not sure of) | 09:24 |
|
Mikachu
| git fetch . 'refs/remotes/origin/*:refs/heads/*' should do it, i think | 09:24 |
|
| Mikachu leaves others to explain how to recover lost commits with the reflog | 09:25 |
|
sitaram
| Mikachu++ -- didnt think of that :) | 09:25 |
|
doener
| detach HEAD first | 09:25 |
|
| and that won't lose commits, there's no force involved | 09:25 |
|
SeySayux
| Is there a way to already do this with git-clone? I can't find anything in the manual about it... | 09:26 |
|
Mikachu
| SeySayux: why do you want to do this? | 09:26 |
|
clayjar
| SeySayux, could deleting the directory and recloning help? If you're just talking about getting replacements.. sorry if it sounds too simple, but I may be misunderstanding your question. | 09:26 |
|
SeySayux
| Erm, because I want to have all branches? | 09:27 |
|
Mikachu
| but what are you going to do with them? | 09:27 |
|
SeySayux
| modify them? | 09:27 |
|
Mikachu
| you may proceed then | 09:27 |
| ← sitaram left | 09:28 |
| → sitaram joined | 09:28 |
|
SeySayux
| Mikachu: hmm, doesn't seem to work... | 09:29 |
|
doener
| SeySayux: there's no such option to clone, because usually, you create branch heads "on demand", and have only those that you currently care about | 09:29 |
|
SeySayux
| hmm, I care about them all... but I found some stuff in the GUI that can help me... thanks anywayus | 09:29 |
|
| s/us$/s/ | 09:30 |
|
doener
| SeySayux: you work on all branches at the same time? | 09:30 |
|
impulze
| who doesn't :P | 09:30 |
| ← ph^ left | 09:32 |
| ← xenoterracide left | 09:32 |
| ← fualo__ left | 09:33 |
| ← hyperair left | 09:33 |
| ← priidu left | 09:33 |
|
clayjar
| I'm a greenhorn w/ git (only a week now), but I'm still unclear (probably inexperienced) with how all the branching is supposed to work with centralized repo... | 09:33 |
| ← ph^_ left | 09:34 |
| → Sho_ joined | 09:34 |
| → xenoterracide joined | 09:34 |
|
clayjar
| I guess I need to eat my fill of mistakes... | 09:34 |
| ← Pupeno left | 09:34 |
| → trochala joined | 09:35 |
| ← xenoterracide left | 09:35 |
| ← ph^__ left | 09:36 |
| → xenoterracide joined | 09:37 |
| ← xenoterracide left | 09:38 |
| ← psankar left | 09:38 |
| → psankar joined | 09:39 |
| → __iron joined | 09:39 |
|
rchavik
| is there a way to make git 'prune' a repository? ie, simply forget or delete the history older than one year ago | 09:41 |
| → xenoterracide joined | 09:41 |
|
doener
| rchavik: not without rewriting the new history as well | 09:42 |
| ← clayjar left | 09:42 |
| ← xenoterracide left | 09:42 |
|
rchavik
| doener: ok.. thanks, i'm a newbie.. so i'm going to take that as a no :) | 09:43 |
|
doener
| rchavik: different question: Why would you want to do that? | 09:44 |
|
rchavik
| anyway.. it's going to be some time before my repo get big ;) | 09:44 |
|
| doener: well at some point, i simply won't care for old revisions... | 09:45 |
| → aliceinwire joined | 09:45 |
|
rchavik
| eg: the repo is for website.. and old theme files can simply be deleted | 09:46 |
| → xenoterracide joined | 09:46 |
|
doener
| rchavik: I regularly find myself reviewing very old commits to see how some code came into existence, so I can understand how a bug (that didn't even exist back then) was caused and how to fix it | 09:46 |
| → Grahack joined | 09:47 |
|
rchavik
| doener: well.. in my old case, old themes may contain obsolete images.. | 09:49 |
|
| doener: mostly concerned with old/unused images in themes that are not being used anymore in git repo.. | 09:50 |
| → KyleMac joined | 09:52 |
| → JackWinter joined | 09:52 |
|
KyleMac
| what's the quickest way to find and recover a file that I've somehow lost but I know is in the respository somewhere within at least the last 5 commits? | 09:53 |
|
doener
| KyleMac: do you know the file name? | 09:53 |
|
KyleMac
| yeah | 09:53 |
|
doener
| KyleMac: git log -1 -- <name> # Finds (one of) the last commit(s) in your checked out branch that had the file | 09:54 |
|
| KyleMac: then "git checkout <commit> -- <name>" to get the file from that commit and put it into the index and working tree | 09:54 |
|
| KyleMac: (well, it actually finds one of the last commits that _modified_ the file, but if it was deleted, it's already the last one that had it ;-)) | 09:55 |
|
KyleMac
| I can find it but when I try to check it out it says the filename did not match any files known to git | 09:56 |
|
doener
| KyleMac: ah, d'oh. The found commit deleted the file, so it doesn't have it | 09:57 |
|
| KyleMac: use "git checkout <commit>^ -- <name>" instead, to the get file from the first parent of the commit that deleted the file | 09:57 |
| → gunmuc joined | 09:58 |
|
KyleMac
| that didn't work either, but git log -2 gave me the commit to use | 09:58 |
|
| thanks | 09:59 |
| → Juice10 joined | 10:00 |
| ← Juice10 left | 10:00 |
|
KyleMac
| btw does anyone have a solution for a weird problem with git I have on windows. When I try to push somewhere, I get the "no authorisation method" or whatever thing, which I can solve by setting GIT_SSH. But if I reboot the error comes back and I solve it by deleting GIT_SSH, but then if I reboot it comes back and I solve it... | 10:02 |
|
| it doesn't matter whether I use the thing that came with msysgit or putty | 10:03 |
| → Redworm joined | 10:03 |
| → relix joined | 10:03 |
| ← Redworm left | 10:03 |
| → abms1116 joined | 10:03 |
| → tvw joined | 10:04 |
| → spaceonline joined | 10:07 |
| ← merlin83 left | 10:09 |
| ← kaseano left | 10:09 |
| → fualo_ joined | 10:10 |
| → capndiesel joined | 10:15 |
| → jayvee joined | 10:16 |
|
jayvee
| Quick Q that I couldn't find a straight answer to on the intertubes: | 10:17 |
|
| How do I do a lightweight checkout of a git branch? | 10:17 |
|
| i.e. download just the latest code without downloading 100MB of worthless buggy crap from 3 years ago | 10:17 |
|
| In bzr and svn it is very easy: just use the ‘export’ or ‘checkout’ command. | 10:18 |
| ← j416 left | 10:19 |
|
doener
| jayvee: "git archive", but often repos don't allow that to be used remotely. | 10:19 |
|
DrNick
| git clone --depth | 10:20 |
|
jayvee
| doener: it's from GNOME. hopefully they will. | 10:20 |
|
doener
| jayvee: there's also "git clone -depth N", but read the man pages comments on that | 10:20 |
| → siks joined | 10:20 |
|
jayvee
| DrNick: that is cool, I wish bzr had that ability. | 10:20 |
|
| so --depth=1 might fulfil my needs? | 10:21 |
|
| doener: I can't use git archive with a remote repository. | 10:22 |
|
doener
| jayvee: maybe, maybe not. Depth-limited clones have some restrictions | 10:22 |
|
jayvee
| My whole goal is to save bandwidth. (I'm a poor deprived Australian.) | 10:22 |
| ← balor left | 10:22 |
|
doener
| jayvee: and I'd not expect the space saving to be very big | 10:23 |
|
jayvee
| *cries* | 10:23 |
|
| Well I'm doing it with --depth=1, and it looks like it'll only need to download about 10MB. | 10:24 |
|
| oh there we go | 10:24 |
|
| did it in only 2.83 | 10:24 |
|
| cheers doener and DrNick | 10:24 |
|
doener
| jayvee: for empathy: full clone: 9.37MB downloaded, --depth 1 clone: 5.82MB. | 10:26 |
|
jayvee
| heh, that's not much different for empathy | 10:27 |
| ← roop left | 10:27 |
|
doener
| jayvee: given how much less useful the depth=1 clone is (unless you're basically just interested in a snapshot, and don't look at the code at all), I'd rather get those extra 4MB | 10:27 |
|
jayvee
| yeah k | 10:28 |
|
| but there is a repo I'm planning to work with that has lots of crufty history | 10:28 |
| → intripoon joined | 10:28 |
|
jayvee
| binary files being added and removed over time | 10:28 |
|
doener
| ouch | 10:29 |
| ← jxavier_ left | 10:30 |
| → khmarbaise joined | 10:30 |
|
jayvee
| like | 10:30 |
|
| hundred meg SQL dumps | 10:30 |
|
doener
| sounds like someone forgot to cleanup the history while doing the import into git | 10:31 |
|
| (I doubt that those SQL dumps are actually used, are they?) | 10:31 |
|
jayvee
| well, they were at one point | 10:32 |
|
| but are horribly outdated | 10:32 |
|
| and then "deleted" | 10:32 |
|
| by someone that clearly doesn't understand you shouldn't put that stuff in a VCS | 10:32 |
| → fualo__ joined | 10:34 |
| ← tango_ left | 10:36 |
| ← eletuchy left | 10:38 |
| → eletuchy_ joined | 10:39 |
| → kkoehne_ joined | 10:39 |
| ← Creap left | 10:39 |
| → Creap_ joined | 10:40 |
| ← kkoehne left | 10:40 |
| → Axius joined | 10:40 |
| → lamont` joined | 10:40 |
| → merlin83 joined | 10:40 |
| → ryah joined | 10:43 |
|
ryah
| how do i do this more easily: "git diff b893859c34f05db5c45f416949ebc0eee665cca6^..b893859c34f05db5c45f416949ebc0eee665cca6" | 10:43 |
|
| that is, see what changed in one commit | 10:43 |
|
Pieter
| git show b893859c34f05db5c45f416949ebc0eee665cca6 | 10:43 |
|
ryah
| great thanks | 10:43 |
| ← fualo_ left | 10:44 |
| → hyperair joined | 10:45 |
| ← jayvee left | 10:45 |
|
shruggar
| or git log -p b893859c34f05db5c45f416949ebc0eee665cca6 | 10:47 |
|
| and of course, git show b89385 | 10:47 |
|
funkmonk
| i want to put a config file into my project. there should be a dummy of it in every version, but i want my version with my secrets staying in my working folder. is that even possible? my config file version would always make the repro dirty, right? | 10:48 |
| ← dsch04 left | 10:48 |
|
vkroll
| funkmonk: you can put your private file in .gitignore | 10:48 |
|
funkmonk
| yeah but that doesnt work after committing it. | 10:49 |
|
vkroll
| no, but can't you require your private file in the offical one and put the private in your .gitignore? | 10:50 |
|
funkmonk
| and I need to commit it, so the project is complete and others get the config file with dummy input | 10:50 |
|
| how would people downloading the project from github get the file then? | 10:51 |
|
vkroll
| in perl you can do Things like if( -e my private_file) { ## use it } else { use the offical one } | 10:52 |
|
funkmonk
| hm. thing is it's an xcode project. but i will investigate that | 10:53 |
| ← VVSiz left | 10:55 |
| → priidu joined | 10:56 |
| → aziz joined | 10:56 |
| yhager|away → yhager | 10:58 |
| ← queso_ left | 10:58 |
| ← khmarbaise left | 10:58 |
| ← richcollins left | 10:58 |
| → VVSiz joined | 11:02 |
| → queso_ joined | 11:03 |
| → khmarbaise joined | 11:04 |
| ← alireza_ left | 11:05 |
| → b0fh_ua joined | 11:05 |
| Creap_ → Creap | 11:05 |
|
charon
| funkmonk: i usually track the file anyway, and have separate config branches with the "real configs". then a 'git checkout master^0; git merge realconfig' makes a temporary merge that is testable. remember to 'git checkout master' afterwards to reattach your HEAD | 11:06 |
|
b0fh_ua
| Hi there! We would like to migrate from SVN to git, however we still have to commit to remote SVN repository. There are several accounts used by developer for committing to SVN, the question is - how can we make it work in the way when all commits are going into git repository, then after review these changes are pushed to SVN, but each commit to svn is being made by appropriate developer (who actually did that commit)? | 11:06 |
| → alireza_ joined | 11:06 |
| → aliceinwire_ joined | 11:08 |
|
funkmonk
| charon: ah clever. thanks! | 11:08 |
| ← Axius left | 11:09 |
| ← SeySayux left | 11:11 |
| ← aliceinwire_ left | 11:12 |
| ← eletuchy_ left | 11:12 |
| → eletuchy joined | 11:12 |
| → alireza__ joined | 11:15 |
| ← upul left | 11:15 |
| → engla joined | 11:15 |
| → hingwah joined | 11:17 |
| → brizly1 joined | 11:17 |
| → tango_ joined | 11:17 |
| ← engla left | 11:18 |
| ← priidu left | 11:18 |
| ← tschundeee left | 11:20 |
| → fualo_ joined | 11:21 |
| → tek0_ joined | 11:22 |
| ← alireza_ left | 11:23 |
| ← tek0 left | 11:23 |
| → Axius joined | 11:23 |
| ← xenoterracide left | 11:23 |
| → ArdRigh joined | 11:24 |
| → lrojas joined | 11:25 |
| → xenoterracide joined | 11:25 |
| ← eletuchy left | 11:26 |
| ryah → ryah_away | 11:27 |
| ← xenoterracide left | 11:28 |
| ← fualo__ left | 11:28 |
| ← lrojas left | 11:29 |
| → xenoterracide joined | 11:29 |
| ← fr left | 11:29 |
| → fr joined | 11:29 |
| → Yuuhi joined | 11:31 |
| → tek0 joined | 11:31 |
| ← tek0_ left | 11:33 |
| ← brizly left | 11:33 |
| ← _ringlej left | 11:34 |
| ← jepler left | 11:37 |
| ← psankar left | 11:38 |
| → corni joined | 11:38 |
| → temoto joined | 11:38 |
| → trochala` joined | 11:39 |
| → jepler joined | 11:41 |
| ← temoto left | 11:42 |
| ← agkawj left | 11:43 |
| ← khmarbaise left | 11:44 |
| → Ryback_ joined | 11:49 |
| → _jason553839 joined | 11:49 |
| → holizz_ joined | 11:50 |
| ← fujin left | 11:52 |
| → fujin joined | 11:52 |
| ← fualo_ left | 11:52 |
| ← trochala left | 11:53 |
| ← funkmonk left | 11:54 |
| → catphish joined | 11:54 |
| → boto joined | 11:54 |
| catphish → adam | 11:55 |
| adam → catphish | 11:55 |
| ← Axius left | 11:55 |
| ← catphish left | 11:55 |
| ← tango_ left | 11:56 |
|
b0fh_ua
| 15+133+124.6 | 11:56 |
| → engla joined | 11:56 |
| ← b0fh_ua left | 11:56 |
| ← trochala` left | 11:57 |
|
Creap
| so I moved a repository with rsync and it kind of works, but I am using git-svn and I get "Unable to determine upstream SVN information from working tree history" | 11:57 |
|
| should I run some command to "init" git-svn again? | 11:57 |
| → lorandi joined | 11:58 |
| ← doener left | 11:59 |
| → doener joined | 11:59 |
| → maattd joined | 12:01 |
| → d0k joined | 12:03 |
| → queso__ joined | 12:04 |
| → fualo_ joined | 12:04 |
| ← queso_ left | 12:06 |
| ← ArdRigh left | 12:06 |
| ← abms1116 left | 12:07 |
| → froschi joined | 12:08 |
| ← a389742 left | 12:08 |
| ← tetha left | 12:08 |
| ← gaveen left | 12:08 |
| → a389742 joined | 12:08 |
| → tetha joined | 12:08 |
| ← rchavik left | 12:09 |
| ← s1 left | 12:09 |
| ← Blub\0 left | 12:09 |
| ← levifig left | 12:09 |
| ← Borbus left | 12:09 |
| ← Kudos left | 12:09 |
| ← beppu left | 12:09 |
| ← ewanm89_ left | 12:09 |
| ← w-m- left | 12:09 |
| ← Derega left | 12:09 |
| ← tank__ left | 12:09 |
| → rchavik joined | 12:09 |
| → Blub\0 joined | 12:09 |
| → w-m- joined | 12:09 |
| → tank__ joined | 12:09 |
| → s1 joined | 12:09 |
| → beppu joined | 12:09 |
| → Derega joined | 12:09 |
| → ewanm89_ joined | 12:09 |
| → levifig joined | 12:09 |
| → Borbus joined | 12:09 |
| → Kudos joined | 12:09 |
| lamont` → lamont2 | 12:12 |
| lamont2 → lamont | 12:13 |
| ← alireza__ left | 12:13 |
| → selckin joined | 12:13 |
| → maleknet joined | 12:14 |
|
reuss
| is there no way of looking at refs outside of refs/heads, from a remote repository? .. or do i have to know the sha1? .. | 12:15 |
|
sitaram
| git ls-remote | 12:16 |
|
| should be under refs/ though, but need not be refs/heads or refs/tags | 12:17 |
|
| and even if you know the SHA1 it wont help you; nothing in git will let you grab a SHA unless it has a ref pointing to it | 12:17 |
|
| (security reasons, I guess) | 12:17 |
|
reuss
| oh yeah -- then it only worked because i had the same sha1 in my own version, which makes sense.. | 12:18 |
| → yaotti_aw joined | 12:18 |
| yaotti_aw → yaotti | 12:18 |
| ← johan-s left | 12:18 |
|
reuss
| well, other question then - is it possible to reference it by the "refs/*" name in my local repository? | 12:18 |
| → nachocab joined | 12:18 |
|
nachocab
| how do you make Paperclip change the location of a previously uploaded file? (assuming I changed the has_attachment definition) | 12:20 |
| ← kpreid_ left | 12:20 |
|
nachocab
| oops, my bad | 12:20 |
| ← nachocab left | 12:20 |
|
sitaram
| reuss: didn't understand the question :( | 12:21 |
| → qrush_ joined | 12:21 |
| qrush → qrush|away | 12:22 |
|
reuss
| sitaram: you can do: git log origin/<branch> .. is there a way of doing what with refs stored in say refs/custom ? ... | 12:22 |
|
| erh, what=that | 12:22 |
|
sitaram
| refs/custom on your local side? | 12:22 |
| ← gk__ left | 12:23 |
| → NET||abuse joined | 12:24 |
|
dominikh
| just reading about git attributes and .gitattributes/.git/info/attributes. is there also a way for specifying global attributes that apply to all of my git repos? | 12:26 |
| → gk joined | 12:26 |
|
reuss
| sitaram: yeah - so you don't need to do git ls-remote origin - to see where it's stored .. or are they considered private? | 12:26 |
| → psynaptic joined | 12:27 |
|
engla
| dominikh: no, you can't | 12:27 |
| ← _jason553839 left | 12:27 |
|
dominikh
| too bad | 12:28 |
|
| i liked the idea of being able to diff binary files using external tools like "strings" | 12:28 |
|
doener
| reuss: try "git config --get remote.origin.fetch" | 12:29 |
|
| reuss: that shows the default fetch refspec for that remote | 12:29 |
| → _jason553839_ joined | 12:30 |
|
doener
| reuss: by default, "git clone/remote add" sets that to "+refs/heads/*:refs/remotes/origin/*" (for a remote called "origin") | 12:30 |
|
reuss
| doener: oh so you should configure it to also fetch what other refs you're insterested in? | 12:30 |
| → jas4711 joined | 12:30 |
| → Fullmoon joined | 12:30 |
| ← pom__ left | 12:30 |
|
doener
| reuss: so "fetch" only fetches things from the refs/heads/ namespace, if you want to fetch other stuff, you'll have to do that manually (specifiy a refspec on the command line), or adjust the config | 12:30 |
|
| reuss: you can have more than one refspec in the config, just add more "fetch = ..." lines in the file | 12:32 |
|
| reuss: or use "git config --add remote.<name>.fetch ..." (the --add makes it add another entry, instead of overwriting the existing one) | 12:32 |
|
reuss
| oh, cool. :) | 12:32 |
| ← pom_ left | 12:33 |
| → pom joined | 12:34 |
| ← jinzhu left | 12:36 |
| → tstclair joined | 12:38 |
| → khmarbaise joined | 12:38 |
| → wolog joined | 12:39 |
| → _jason553839 joined | 12:39 |
| → _ringlej joined | 12:41 |
|
sitaram
| doener: do you know of a way to make a 3-way merge disregard indentation differences? Causing too many conflicts :( | 12:41 |
|
| doener: or disregard *all* whitespace, like diff -b | 12:42 |
| → bdimcheff joined | 12:42 |
| ← bdimcheff left | 12:43 |
| → bdimcheff joined | 12:43 |
|
doener
| sitaram: even -b doesn't really "drop" the whitespace changes, it just disregards lines that have whitespace changes _only_ | 12:43 |
| ← bdimcheff left | 12:44 |
|
doener
| sitaram: how many files are we talking about? | 12:44 |
|
sitaram
| doener: not my project, but I think about 40-60 | 12:44 |
|
doener
| sitaram: hm, I can think of some really really ugly thing one could do... | 12:45 |
|
sitaram
| preprocess them and use that? | 12:45 |
|
doener
| sitaram: but I'm not even remotely sure that it would actually help | 12:45 |
|
| sitaram: kind of | 12:45 |
|
sitaram
| tell me anyway; even if it for academic curiosity I want to know | 12:45 |
| ← _jason553839_ left | 12:46 |
| → DavidKlein joined | 12:46 |
|
doener
| for each unmerged file that has modify/modify conflicts (i.e. stages 1-3 all exist in the index): | 12:46 |
|
| grab the common ancestor, diff -b against the side on which you want to ignore lines that only had whitespace changes, apply the patch | 12:47 |
|
sitaram
| aah -- should work; I can only try it tomorrow, but i will | 12:47 |
|
| let me think. diff -b :1: :2: and apply that patch to :3:? | 12:48 |
|
| doener: ^ | 12:48 |
|
doener
| then use either "git merge-file" (needs the files in the working tree, so get them there), or use "git merge-one-file" (needs a blob, so run "git hash-object -w" first) | 12:48 |
| → hugoxrosa joined | 12:50 |
|
doener
| git show :1:path/to/file > path/to/file; git diff :1:path/to/file :3:path/to/file | git apply; git merge-one-file :1:path/to/file :2:path/to/file $(git hash-object -w path/to/file) path/to/file | 12:50 |
|
| sitaram: like that, I think | 12:50 |
|
sitaram
| doener: thanks; I see that merge-one-file has a rather sparse manpage, no hint about what arguments it takes :( | 12:51 |
|
doener
| sitaram: it's a shell script, arguments documented in there | 12:51 |
|
sitaram
| doener: ok | 12:51 |
| ← tjboudreaux left | 12:51 |
|
sitaram
| doener: care to spend a couple minutes explaining that to me; just at a high level? | 12:52 |
|
doener
| sitaram: the basic merging internally does something like: | 12:52 |
| ← galderz left | 12:52 |
| → jason553839 joined | 12:52 |
| → roop joined | 12:52 |
|
doener
| sitaram: git merge-one-file :1:file :2:file :3:file file [...mode stuff...] | 12:53 |
|
| sitaram: just the plain 3-way merge | 12:53 |
| → johan-s joined | 12:53 |
|
doener
| sitaram: the show + diff + apply thing creates a new "theirs" version of the file, which doesn't have the whitespace-only changes | 12:54 |
|
sitaram
| doener: ok... | 12:54 |
|
| aah | 12:54 |
|
doener
| sitaram: show :3:path > path; diff :1: :3: | apply ==> you get :3: again | 12:54 |
|
sitaram
| doener: didnt you mean diff -b there? | 12:54 |
|
doener
| sitaram: with the -b in there, you get :3: without the whitespace stuff | 12:54 |
|
sitaram
| oh | 12:55 |
|
doener
| sitaram: oh, oops, yeah | 12:55 |
|
| sitaram scratches his head | 12:55 |
|
doener
| sitaram: the "long hack" should have "diff -b" | 12:55 |
|
| sitaram: otherwise, as I just said, we simply re-create the :3: version | 12:55 |
|
sitaram
| ok | 12:55 |
|
doener
| sitaram: and the final "git merge-one-file" call just does the merge with the new version we just created. The "git hash object -w" thing just puts it into the object db, so merge-one-file can use it | 12:56 |
|
sitaram
| doener: and the first 2 args dont need that because they already exist (the :1:file syntax *is* a blob sha) right? | 12:57 |
|
doener
| sitaram: right | 12:57 |
|
sitaram
| doener: up here: 18:24:37 < doener> sitaram: show :3:path > path; diff :1: :3: | apply ==> you get :3: again | 12:57 |
|
| doener: you meant show :1:? or is it really :3:? | 12:58 |
|
doener
| sitaram: I meant :1: | 12:58 |
|
| doener fails | 12:58 |
|
doener
| sitaram: as I said, the hack is butt-ugly. And (if at all), I'd only use it if I know that I can recreate the right indentation/whitespace after having solved the (now hopefully easier) conflicts | 12:58 |
| → Pupeno joined | 12:59 |
|
doener
| sitaram: otherwise the merge result is some weird mess | 12:59 |
|
sitaram
| :0 | 12:59 |
| → bdimcheff joined | 12:59 |
|
sitaram
| doener: I have a feeling this might actually work for some people though; I'll let you know tomorrow sometime :) | 12:59 |
|
| doener wonders how to interpret that smiley | 12:59 |
|
doener
| sitaram: I'm sure a lot of crap "works" for a lot of people. At least until they realize that it didn't | 13:00 |
| → therrg joined | 13:00 |
|
sitaram
| :0? interpret as bad keyboard/typing/shift key didn't "take" :) | 13:00 |
|
doener
| heh :-) | 13:00 |
|
sitaram
| doener: also as someone who's itching to go home before the traffic gets real bad :) | 13:00 |
| → flazz joined | 13:03 |
|
sitaram
| oh the "tomorrow" bit is also that it isn't my repo or I would have tried it right away :) | 13:07 |
| ← _jason553839 left | 13:08 |
| ← GodEater left | 13:08 |
|
sitaram
| doener: one last question: when you do merge-one-file A B C D, the 4th one is ignored/overwritten/immaterial what its starting contents are? | 13:08 |
|
doener
| sitaram: D is just the output file AFAIK, it gets overwritten | 13:09 |
| ← jason553839 left | 13:09 |
|
sitaram
| ok | 13:09 |
| → queso_ joined | 13:10 |
| → Bass10 joined | 13:10 |
| → kpreid_ joined | 13:12 |
| ← queso__ left | 13:13 |
| → chamo_ joined | 13:15 |
| ← khmarbaise left | 13:15 |
| ← chamo_ left | 13:16 |
| → flazz_ joined | 13:18 |
| rchavik → spoonfeeder | 13:19 |
| ← gk left | 13:19 |
| spoonfeeder → rchavik | 13:19 |
| → dsch04 joined | 13:20 |
| ← maleknet left | 13:22 |
| ← flazz left | 13:23 |
| → slabbeh joined | 13:24 |
| → abms1116 joined | 13:24 |
| → squentin joined | 13:25 |
| → fhr joined | 13:26 |
| → ryanarn joined | 13:26 |
| → fualo__ joined | 13:28 |
| ← hummingkid left | 13:30 |
| → tfarina joined | 13:30 |
| ← agile left | 13:32 |
| ← fualo_ left | 13:33 |
| ← chamo left | 13:33 |
| ← fhr left | 13:35 |
| ← sprasanna left | 13:39 |
| → TeckniX joined | 13:39 |
| → kukks joined | 13:40 |
| → Mezner joined | 13:41 |
| → ctusar joined | 13:44 |
| → ophswy joined | 13:44 |
| ryah_away → ryah | 13:45 |
| ← flazz_ left | 13:46 |
| → cannonball joined | 13:47 |
| → drewolson joined | 13:49 |
| → suman joined | 13:50 |
| → roop_ joined | 13:52 |
| → [t0rc] joined | 13:55 |
| → mw joined | 13:57 |
| ← kpreid_ left | 13:58 |
| → flazz joined | 13:59 |
| → keystr0k joined | 13:59 |
| ← flazz left | 14:00 |
| → flazz joined | 14:00 |
| → flazz_ joined | 14:01 |
| → veiz joined | 14:04 |
| → hummingkid joined | 14:06 |
| ← roop left | 14:06 |
| → tschundeee joined | 14:07 |
| ← [t0rc] left | 14:08 |
| → makkalot joined | 14:10 |
| ← ophswy left | 14:11 |
|
makkalot
| hi how can i pull everything up to a given tag,for example i want to pull my v1.0 of my application ? | 14:11 |
| → nighthwk1 joined | 14:11 |
|
Ilari
| makkalot: pull as in fetch + merge? | 14:12 |
| ← rchavik left | 14:13 |
| → spearce joined | 14:13 |
| ← alezandro left | 14:13 |
| → Swimming_Bird joined | 14:14 |
| → nsussman joined | 14:15 |
| → akahn joined | 14:16 |
| ← spearce left | 14:16 |
|
sitaram
| Ilari: just FYI; gitolite will not be putting out that "need SSH_ORIGINAL_COMMAND" error; see http://github.com/sitaramc/gitolite/blob/pu/doc/3-faq-tips-etc.mkd#myrights for what I do with that now! [still in "pu", not yet in "master" though] | 14:16 |
| → spearce joined | 14:16 |
| → altrux joined | 14:17 |
| ← flazz left | 14:17 |
| → loincloth joined | 14:19 |
| → Turias joined | 14:19 |
|
sitaram
| Ilari: I hope you don't mind me sending you this sort of stuff apropos of nothing; I do it because you spend more time than all the rest put together helping people with gitosis/gitolite type questions and I want to make sure you're updated :) | 14:20 |
| → ph^ joined | 14:21 |
|
Ilari
| sitaram: Ok. | 14:21 |
| → bcardarella joined | 14:23 |
| → lucsky joined | 14:24 |
| ← ph^ left | 14:24 |
| → patcito joined | 14:26 |
| ← Swimming_Bird left | 14:26 |
| → gk joined | 14:27 |
| → icwiener joined | 14:29 |
| flazz_ → flazz | 14:36 |
| ← Teo` left | 14:37 |
| → agile joined | 14:39 |
| ← ntoll left | 14:40 |
| → joevandyk_ joined | 14:41 |
| → drubies joined | 14:41 |
|
joevandyk_
| how can i get a list of all branches that were branched off a given branch? | 14:41 |
| → queso__ joined | 14:41 |
| ← kent\n left | 14:43 |
| → kent\n joined | 14:43 |
|
Ilari
| joevandyk_: Git doesn't have hierarchial branches... | 14:44 |
| → chamo joined | 14:45 |
|
jacobat
| joevandyk_: You might be able to use "git branch --contains [commit]" | 14:45 |
|
chamo
| sitaram: are you still around? | 14:45 |
|
jacobat
| It's not quite the same though | 14:45 |
| ← Lisimba left | 14:48 |
| → rolfb joined | 14:49 |
| → argnel joined | 14:49 |
| ← cannonball left | 14:50 |
| ← argonel left | 14:50 |
| ← __bert__ left | 14:50 |
| ← cj left | 14:50 |
| → jstemmer joined | 14:53 |
| ← queso_ left | 14:54 |
| rolfb → _rolfb | 14:55 |
| → ACSpike[Work] joined | 14:56 |
| → alezandro joined | 14:56 |
| → Haarg joined | 14:58 |
|
sitaram
| chamo: yes but cant talk right now; maybe another 20 min? | 14:59 |
|
| sorry :( | 14:59 |
|
chamo
| sitaram: np. okay. cause my passwordless access suddenly drop and not working after ssh'ing to other hosts. | 14:59 |
|
ACSpike[Work]
| a while back I cloned a repository that has ~325 branches, but I'm only interested in one or two. when I `git fetch` all of them get fetched and one of them seems to be causing an error (missing object somewhere). can I delete one or some or most of the files from inside .git/refs/remotes/origin/. could that possibly solve my problems? (waiting for lots of code I'm not interested in and having an error with one particul | 15:01 |
|
Ilari
| chamo: ssh agent? | 15:01 |
|
chamo
| Ilari: I don't know... | 15:01 |
|
Ilari
| ACSpike[Work]: Missing object errors are fairly serious... | 15:02 |
|
offby1
| ACSpike[Work]: you can "git branch -D" | 15:03 |
| → cannonball joined | 15:03 |
|
chamo
| Ilari: what can I check on ssh agent? | 15:03 |
|
Ilari
| chamo: What key it tries... No idea how to determine that... | 15:04 |
|
chamo
| Ilari: ssh -v user@host | 15:04 |
|
Ilari
| chamo: You could try unsetting 'SSH_AUTH_SOCK' and then trying access gitolite repos... | 15:04 |
|
chamo
| the verbose option answers this | 15:04 |
|
Ilari
| chamo: And define not working... User info from gitolite or not a git repository error? | 15:05 |
| → madewokherd joined | 15:05 |
|
ACSpike[Work]
| Ilari: the error http://gist.github.com/220528 | 15:06 |
|
chamo
| Ilari: it's the ssh priv/pub key that suddenly doesnt work. it was working before. | 15:06 |
|
| Ilari: and I didnt change any options | 15:06 |
|
| I did just login on other ssh servers | 15:06 |
| ← taicomjp left | 15:06 |
|
Ilari
| chamo: Or passwrd prompt? | 15:06 |
|
chamo
| with regular login/password | 15:06 |
|
| it shows me a pass prompt | 15:06 |
| ← WebDragon left | 15:06 |
|
chamo
| the pub/priv key is not found anymore on local comp | 15:06 |
|
| but all is OKAY | 15:06 |
| ← veiz left | 15:06 |
|
chamo
| as it hasnt changed | 15:06 |
|
| ... | 15:06 |
| → sagsousuke joined | 15:06 |
| → WebDragon joined | 15:07 |
|
Ilari
| ACSpike[Work]: Can you try using git://? | 15:07 |
|
| chamo: With SSH_AUTH_SOCK unset and ssh with -v, does it show the right key tried? | 15:07 |
|
| chamo: (might require more -v 's for it to show what it actually tries). | 15:08 |
|
chamo
| why unset SSH_AUTH_SOCK ? | 15:08 |
|
Ilari
| chamo: So ssh-agent won't come messing things up. | 15:08 |
| ← tvw left | 15:09 |
|
ACSpike[Work]
| Ilari: I'm limited by my ignorance of git. I could open git:// through the firewall, but I wouldn't know how to use git:// instead of http:// at this stage in the game. I'll reasearch it if you think it could help. but I'm also happy to stop fetching all these branches. | 15:09 |
| ← qrush_ left | 15:09 |
|
Ilari
| chamo: Always good to test with minimal configurations and at low level and then add parts until reaching real scenario. | 15:09 |
| → qrush joined | 15:12 |
|
Ilari
| ACSpike[Work]: 9418 outbound is not open in firewall? git:// is nicely behaved protocol (single TCP connection client to server). | 15:12 |
|
chamo
| Ilari: ... | 15:12 |
|
| okay | 15:12 |
| → Swimming_Bird joined | 15:12 |
|
Ilari
| ACSpike[Work]: I think that you could change the URL in configuration file (to git:// URL of repo) and then retry the fetch... | 15:13 |
|
chamo
| Ilari: not working | 15:14 |
| ← drewolson left | 15:14 |
|
Ilari
| chamo: Not trying right key? | 15:15 |
|
| ACSpike[Work]: I guess the right URL would be git://git.catalyst.net.nz/moodle-r2.git ... I ls-remoted it, it does exist... | 15:16 |
|
chamo
| Ilari: okay i've tried what you said, still asking for password. | 15:17 |
| → dunolie_ joined | 15:17 |
|
chamo
| then I exported the SSH_AUTH_SOCK again | 15:17 |
|
Ilari
| chamo: In verbose ssh output, can you confirm it is trying right private key? | 15:17 |
|
chamo
| and I cleaned with ssh-add -D | 15:17 |
|
| and added again my 2 priv keys | 15:17 |
|
| tried to log again without success | 15:18 |
|
Ilari
| chamo: Right now, what needs to be determined is wheither login failure is because client doesn't send the right key or because the server rejects it. | 15:18 |
|
chamo
| okay | 15:19 |
| ← therrg left | 15:19 |
|
chamo
| well, the client is offering the different private keys | 15:19 |
|
| but then nothing happens | 15:20 |
|
sitaram
| Ilari: I have a feeling something is changing the authkeys file on the other side... | 15:20 |
|
Ilari
| chamo: And at least without ssh-agent, with sufficient number of -v's, the debug output of ssh will tell what keys are tried and in what order (the first key must be correct). | 15:20 |
|
chamo
| and the last auth method is password | 15:20 |
|
| Ilari: it offers the wrong first! | 15:20 |
|
Ilari
| chamo: With gitosis/gitolite: password -> failed. | 15:20 |
|
sitaram
| chamo do you have gitosis also setup by any chance? or something else that may be fouling up the remote side authkeys file? | 15:20 |
| ← elTigre left | 15:21 |
| ← fualo__ left | 15:21 |
|
ACSpike[Work]
| Ilari: thanks. I was just about to report failure :-) | 15:21 |
|
sitaram
| chamo: or someone else (horrors!) also has authority on that account and is doing stuff? | 15:21 |
|
ACSpike[Work]
| but it seems to be doing something now with the fixed url | 15:21 |
|
chamo
| sitaram: yes all set up. it worked before. like what we looked earlier. but now, for a strange reason, it doesnt | 15:21 |
|
| Ilari: yes with gitosis it fails. | 15:22 |
|
sitaram
| and this is the second time it has done this? (works, suddenly stops working)? | 15:22 |
|
chamo
| seems so | 15:22 |
|
| Ilari: but what i dont understand is that it was working well 2 hours ago | 15:22 |
|
| and I worked on other project, didnt touch the git server at all | 15:22 |
|
Ilari
| chamo: Is that "wrong" key it tries supposed to have some kind of access (either full-power shell or gitolite key)? | 15:22 |
|
chamo
| just used the client to ssh to another remote server | 15:22 |
|
| on which we use the "classic" l/p auth method | 15:23 |
| ← johan-s left | 15:23 |
| → johan-s joined | 15:23 |
|
sitaram
| Ilari: agent forwarding screwing up something? | 15:23 |
|
chamo
| gitolite, not gitosis | 15:23 |
| → koltroll joined | 15:23 |
| → patmaddox joined | 15:24 |
|
Altreus
| How do I point a branch name at a different commit? | 15:24 |
|
koltroll
| hey guys. I was here some weeks ago trying to get git push web to work by adding post-receive hooks etc. The problem then was that checkout -f failed because I had an old version of git on the server. Now I have updated git, tho I'm still having troubles. but now I'm not getting -any- errors, so I guess that's good. But I'm also not getting any results. | 15:24 |
|
| doing git push web pushes the content to right repo, but the post-receive hook doesn't seem to work. | 15:25 |
|
Ilari
| Altreus: update-ref for local refs not checked out, for checked out branch, reset, for remote branches, push. | 15:25 |
|
koltroll
| the post-receive hooks more or less only contains of checkout -f, also I've chmod +x on it. | 15:25 |
| → elmob joined | 15:25 |
|
Altreus
| fanks | 15:25 |
|
koltroll
| uh. I hadn't done +x properly. | 15:26 |
| → Lisimba joined | 15:26 |
|
chamo
| Ilari: well when I remove the env var, with verbose SSH login, it doesnt use the right priv/pub keypair | 15:26 |
|
koltroll
| HOly FUCK | 15:26 |
|
| IT WORKS | 15:26 |
|
chamo
| lol | 15:27 |
|
Ilari
| chamo: What really matters is first keypair it tries that is supposed to have access (or wheither it tries such key at all). | 15:27 |
| → Theravadan joined | 15:28 |
| → fualo_ joined | 15:28 |
|
Ilari
| chamo: Note that if you have dual key setup, you have seperate host alias for accessing the server using gitolite key. | 15:29 |
|
chamo
| Ilari: yes I understood that. Well i tried to remove ALL keys, then add only the one I need | 15:29 |
| → mw___ joined | 15:29 |
|
chamo
| yes exactly! | 15:29 |
| ← sdboyer left | 15:29 |
| ← niki left | 15:29 |
|
chamo
| damn | 15:29 |
| → rchavik joined | 15:29 |
|
sitaram
| chamo: http://pastebin.com/m7884810 | 15:30 |
| → fhr joined | 15:30 |
| → sdboyer joined | 15:30 |
| → warthog9 joined | 15:30 |
|
sitaram
| that's a little more complex than it needs to be because its a cut from something else but it should work | 15:31 |
| → javatexan joined | 15:31 |
| ← dunolie left | 15:31 |
|
chamo
| sitaram: mmmh | 15:31 |
|
Altreus
| I did $(git update-ref branch SHA1) and now it says branch is ambiguous | 15:31 |
|
chamo
| sitaram: why change something on server | 15:31 |
|
| I havent touched it | 15:32 |
| ← jaysern left | 15:32 |
|
chamo
| okay lets try | 15:32 |
|
sitaram
| chamo: we're not changing anything in that script; we're just getting all the key fingerprints | 15:32 |
|
tvon
| /join fab | 15:32 |
|
Altreus
| oh I should try this -d | 15:32 |
| → jaysern joined | 15:32 |
|
chamo
| okay | 15:33 |
| ← mw left | 15:34 |
| mw___ → mw | 15:34 |
| → smuf joined | 15:34 |
|
Altreus
| hm | 15:34 |
|
| what does it mean when it says a refname is ambiguous? | 15:35 |
| ← sdboyer left | 15:35 |
| → sdboyer joined | 15:36 |
| → hobodave joined | 15:37 |
| → elTigre joined | 15:38 |
| ← wolog left | 15:38 |
|
| Altreus is typing in invisible ink | 15:38 |
| → taicomjp joined | 15:39 |
| → jofrum joined | 15:40 |
| ← _rolfb left | 15:40 |
|
Ilari
| Altreus: Multiple matches among the ways it tries to qualify ref. | 15:42 |
|
Altreus
| aha | 15:43 |
|
| When I check out $branch it points me at $SHA1, but I used update-ref to point it at $SHA2 | 15:43 |
|
Ilari
| Altreus: You missed the refs/heads/ prefix? | 15:43 |
|
Altreus
| ah | 15:43 |
|
| I'll try this | 15:43 |
| ← spearce left | 15:43 |
|
Ilari
| Altreus: I think update-ref can also delete refs. | 15:43 |
| ← sdboyer left | 15:44 |
|
Altreus
| it can - but it told me it wasn't part of it. the /refs/heads seems to have done it | 15:44 |
| → sdboyer joined | 15:44 |
|
Altreus
| er refs/heads | 15:44 |
|
jpic_
| hi, what does that mean please? http://nopaste.com/p/aO4hh4vvC | 15:45 |
|
| trying to clone a bare repo | 15:45 |
| ← chamo left | 15:45 |
| ← sdboyer left | 15:46 |
|
jpic_
| my bad, i think i failed at reading the manual, sorry | 15:46 |
| → sdboyer joined | 15:47 |
| ← jpic_ left | 15:47 |
| ← hgimenez left | 15:47 |
| → qhoxie_ joined | 15:48 |
| ← __iron left | 15:56 |
| ← fhr left | 15:57 |
| → fhr joined | 15:57 |
| → patrikf joined | 15:57 |
| → babilen joined | 15:58 |
| ← Weasel[DK] left | 15:59 |
| → Weasel[DK] joined | 15:59 |
| → jrmuizel joined | 15:59 |
| → juan_arandaalvar joined | 15:59 |
| ← sde_antrix1 left | 16:00 |
| → GodEater joined | 16:00 |
| ← efaistos left | 16:01 |
| → futoase joined | 16:01 |
| ← Pupeno left | 16:01 |
| → spearce joined | 16:01 |
| → Pupeno joined | 16:02 |
| ← Pewpewarrows left | 16:02 |
| ← dancor left | 16:04 |
| ← abms1116 left | 16:04 |
| ← johan-s left | 16:04 |
| → Pewpewarrows joined | 16:05 |
| ← hegge left | 16:07 |
| → JasonWoof joined | 16:10 |
| ← jrmuizel left | 16:11 |
| → btanaka joined | 16:12 |
| ← a389742 left | 16:13 |
| ← wagle left | 16:13 |
| ← fualo_ left | 16:13 |
| → fualo_ joined | 16:14 |
| ← Azeroth-Work left | 16:17 |
| ← psoo left | 16:17 |
| → agib joined | 16:17 |
| ← fualo_ left | 16:17 |
| ← thaz left | 16:17 |
| → JoeConyers joined | 16:17 |
| ← fluxusps left | 16:17 |
| ← s0ber left | 16:20 |
| → jmcantrell joined | 16:21 |
| → priidu joined | 16:21 |
| ← ACSpike[Work] left | 16:23 |
| ← tvon left | 16:25 |
| ← WALoeIII left | 16:26 |
| ← bentob0x left | 16:27 |
| ← JohnFlux left | 16:27 |
| argnel → argonel | 16:30 |
| → dreiss joined | 16:30 |
| ← slabbeh left | 16:31 |
| → parasti joined | 16:34 |
| → galderz joined | 16:35 |
| → yang_ joined | 16:40 |
| → NesWork joined | 16:40 |
|
| NesWork hi room.. need some help on git here.. | 16:41 |
| ← futoase left | 16:41 |
| → WALoeIII joined | 16:42 |
|
NesWork
| it says " warning: too many files, skipping inexact rename detection".. :-( | 16:42 |
| ← hingwah left | 16:42 |
| ← drubies left | 16:42 |
|
Ilari
| NesWork: Increase the limit or live without inexact rename detection... | 16:44 |
| ← argonel left | 16:44 |
| → Teo` joined | 16:45 |
| ← aatanasov left | 16:46 |
| → rettub joined | 16:46 |
|
Ilari
| NesWork: config setting diff.renameLimit | 16:46 |
| → lhz joined | 16:48 |
| → Axius joined | 16:48 |
| → argonel joined | 16:48 |
| → vuf joined | 16:48 |
|
NesWork
| Ilari, where can i find the conf file? | 16:49 |
| → marcelo__ joined | 16:49 |
|
marcelo__
| hello | 16:49 |
|
Ilari
| NesWork: man git-config | 16:50 |
|
Gitbot
| NesWork: the git-config manpage can be found at http://git.or.cz/man/git-config | 16:50 |
|
marcelo__
| what is the difference of using git revert HEAD and git reset HEAD^ for rolling back a commit | 16:50 |
|
| ? | 16:50 |
|
teuf
| git revert adds a new commit which cancels the changes made in the latest commit | 16:50 |
|
| and git reset just remove the commit | 16:50 |
|
Ilari
| marcelo__: Git revert HEAD is to reverse-cherry-pick HEAD. 'git reset HEAD^' resets branch and staging area to last commit (but leaves working copy alone). | 16:50 |
|
NesWork
| Ilari, Gitbot thx. :-) | 16:51 |
| ← qhoxie_ left | 16:51 |
|
teuf
| ie in the 1st case, you'll have 2 commits in git log, in the 2nd case, no commits | 16:51 |
|
mee
| so revert will also remove the change associated with the most recent commit from your working copy? | 16:51 |
|
| that's a pretty big difference, too | 16:51 |
| → qhoxie_ joined | 16:52 |
|
marcelo__
| Ilari, thank you | 16:52 |
| ← mattayers left | 16:52 |
| ← Teo` left | 16:53 |
| → segher joined | 16:53 |
| ← mw left | 16:54 |
| → Teo` joined | 16:56 |
| → abms1116 joined | 16:57 |
| ← GarethAdams|Work left | 16:57 |
| ← Thumper_ left | 16:58 |
| ← babilen left | 16:58 |
| → wagle_home joined | 17:00 |
| → hegge joined | 17:01 |
| ← jmcantrell left | 17:02 |
| → SRabbelier joined | 17:03 |
| ← flazz left | 17:05 |
| → flazz joined | 17:05 |
| ← froschi left | 17:05 |
| ← warthog9 left | 17:06 |
| → tansell_laptop joined | 17:09 |
| → khmarbaise joined | 17:10 |
| → ashc joined | 17:11 |
| → rudi_s joined | 17:14 |
| → veiz joined | 17:14 |
| ← murph_ left | 17:15 |
| ← galderz left | 17:16 |
| → murph_ joined | 17:16 |
| → mjansen joined | 17:17 |
| ← veiz left | 17:17 |
| → mrlemao joined | 17:18 |
|
mjansen
| any idea why "git blame <full_path>" doesn't work? It seems like git tries to find a repository from the current directory instead from the target file | 17:18 |
|
| i'm in the build directory trying to issue that for a file from the source directory | 17:19 |
| → krawek joined | 17:19 |
| → jsnmap joined | 17:20 |
| → veiz joined | 17:20 |
| → silas_ joined | 17:22 |
| ← mrlemao left | 17:23 |
|
dbt
| mjansen: easy enough to fix; (cd `dirname $file` && git blame `basename $file`) | 17:24 |
|
mjansen
| dbt: i know. i just wonder why it doesn't work out of the box? | 17:24 |
|
| it's not only that command. all of them | 17:24 |
| → bdiego joined | 17:25 |
| → mbroeker joined | 17:26 |
| → khmarbaise_ joined | 17:26 |
| ← Weasel[DK] left | 17:26 |
| → khmarbaise__ joined | 17:26 |
| → Diapo joined | 17:26 |
| ← khmarbaise left | 17:27 |
| → Weasel[DK] joined | 17:27 |
| → tbuehlmann joined | 17:27 |
| khmarbaise__ → khmarbaise | 17:27 |
| ← Grahack left | 17:27 |
| → icwiener_ joined | 17:29 |
| ← cedricv left | 17:29 |
| ← saurabhverma left | 17:31 |
| ← icwiener left | 17:31 |
| ← Axius left | 17:31 |
| → lohrun joined | 17:32 |
| ← jsnmap left | 17:32 |
| → Sigma joined | 17:33 |
|
ashc
| sitaram: are all the hooks working in latest gitolite master? | 17:33 |
|
Yewbacca
| Holy cow http://digg.com/politics/Arnold_Schwarzenegger_to_Legislators_F_You_No_really | 17:33 |
| → kennethlove joined | 17:34 |
| → AlexB joined | 17:35 |
| ← silas left | 17:35 |
| ← holizz_ left | 17:36 |
|
levifig
| does removing a remote branch remove it locally as well? | 17:36 |
| ← Fullmoon left | 17:37 |
| ← shruggar left | 17:40 |
| ← mcella left | 17:40 |
| ← veiz left | 17:40 |
| → bugfux joined | 17:41 |
| ← abms1116 left | 17:42 |
| → oosp joined | 17:44 |
| → dirk2 joined | 17:44 |
| ← khmarbaise_ left | 17:44 |
| → babilen joined | 17:45 |
| steveire → steveire_ | 17:46 |
| → rylar joined | 17:46 |
| → drubies joined | 17:46 |
|
oosp
| hello! i hope this isn't a silly question (i couldn't find an answer via Google) but is there an easy way to show the submodule version in a tree-ish? specifically I want to do something like: "git show origin/master:name-of-submodule" and have that give me the version of the submodule in origin/master | 17:47 |
|
Ilari
| levifig: 'git remote prune <remote>'. | 17:47 |
|
| oosp: 'git rev-parse origin/master:name-of-submodule'? | 17:47 |
|
levifig
| Ilari, what does that do? | 17:47 |
|
| I want to remove it remotely but NOT locally | 17:48 |
|
Ilari
| levifig: Delete remote tracking branches that no longer exist on remote. | 17:48 |
| ← priidu left | 17:49 |
|
Ilari
| levifig: If you want to leave the local branch alone, then just leave it alone. Pushing deletion to another repository won't affect local branches in current repo (unless you specify current repo as target for push). | 17:49 |
|
oosp
| <Ilari> oosp: 'git rev-parse origin/master:name-of-submodule'? <-- perfect, thank you :) i didn't realise git rev-parse knew that syntax too | 17:49 |
|
Ilari
| oosp: Its generic sha-expression syntax. | 17:49 |
| ← Renegade_ left | 17:49 |
| ← khmarbaise left | 17:50 |
|
oosp
| Ilari: ah, OK - thanks again | 17:50 |
| ← zoniq left | 17:51 |
| ← elmob left | 17:51 |
| ← Tuomas left | 17:52 |
|
WebDragon
| if I've ever done a git commit --amend is the intermediary commit still somewhere in the history ? | 17:52 |
| ← corni left | 17:54 |
| → dmq joined | 17:54 |
| → warthog9 joined | 17:54 |
|
dbt
| WebDragon: try the reflog (git log -g or git reflog) | 17:54 |
|
| WebDragon tips hat | 17:55 |
| → godsflaw joined | 17:56 |
| ← rchavik left | 17:56 |
| → Adlai joined | 17:57 |
| WebDragon → WebDragon|away | 17:58 |
| ← struberg left | 18:04 |
| → jrmuizel joined | 18:04 |
| → psoo joined | 18:05 |
| → tg_ joined | 18:07 |
| → alsadi joined | 18:09 |
| → ph^ joined | 18:12 |
| → mib_56hh88 joined | 18:12 |
|
tk
| hmm maybe someone has an answer to this... I am following http://toroid.org/ams/git-website-howto which sitaram pointed me at yesterday... however my git repo has files that should never be published (like a resources used to make images and what not) -- is it possible to only have certain portions of the site checkout to the live web dir? | 18:13 |
| ← mib_56hh88 left | 18:13 |
| ← agib left | 18:13 |
| WebDragon|away → WebDragon | 18:13 |
|
alsadi
| I'm using cgit and I want to add a custom css class to the <pre> used in rendered HTML code ? | 18:15 |
|
| is there something got that in cgitrc ? or any other way ? | 18:15 |
| → thiago_home joined | 18:16 |
| → veiz joined | 18:17 |
| → struberg joined | 18:18 |
| → kpreid_ joined | 18:19 |
|
alsadi
| s/got/for/ | 18:20 |
| → ihoka joined | 18:20 |
| → justin-george joined | 18:20 |
| → richcollins joined | 18:21 |
|
Mizar-jp
| gitk Japanese Translation 暫定的ですが日本語訳が完了しました。gitkを利用している日本語使用者の方は、おかしな訳が残っていないかレビューをお願いいたします。 http://lab.mzr.jp/gitk/ | 18:24 |
| ← richcollins left | 18:25 |
| ← bugfux left | 18:26 |
| → tono_ joined | 18:26 |
| → agib joined | 18:27 |
|
Mizar-jp
| (Japanese translation is completed preliminary. If you are using gitk and Japanese, please review whether there is a strange translation.) | 18:27 |
| ← rtyler left | 18:27 |
|
mugwump
| you mean "completed preliminarily" and "whether there are any strange translations" ? ;) | 18:29 |
| → nirvikalpa joined | 18:30 |
|
Mizar-jp
| I'm sorry, I do not speak English because it is using a machine translation. | 18:31 |
| ← cilly left | 18:31 |
| → rtyler joined | 18:31 |
| → bdimcheff_ joined | 18:32 |
| → cilly joined | 18:33 |
| → mm_work joined | 18:33 |
| → Axius joined | 18:33 |
| ← bdimcheff left | 18:33 |
| bdimcheff_ → bdimcheff | 18:33 |
| ← ph^ left | 18:34 |
|
Mizar-jp
| What phrase was hard to understand? | 18:35 |
| → jmcantrell joined | 18:35 |
|
mugwump
| I'm just trolling you | 18:35 |
|
| well done on completing your translation :) | 18:36 |
| ← tono left | 18:37 |
| → tono__ joined | 18:37 |
| ← warthog9 left | 18:39 |
| ← veiz left | 18:40 |
|
Mizar-jp
| Hmm, I do not know what it was intended to do, but thank you. | 18:41 |
| → Arrowmaster` joined | 18:44 |
| → richcollins joined | 18:44 |
| ← Arrowmaster left | 18:45 |
| Arrowmaster` → Arrowmaster | 18:46 |
| ← juan_arandaalvar left | 18:46 |
| → khmarbaise joined | 18:46 |
| ← tono__ left | 18:48 |
|
Mizar-jp
| "The contents of the Japanese of the previous line, it is said in English?" And wanted to say what? That's right, if that. | 18:50 |
| ← roop_ left | 18:51 |
|
godsflaw
| hey guys, I _need_ a clone or an archive to preserve timestamps on files. Does anyone have ideas on how to make this work? | 18:52 |
| ← Weasel[DK] left | 18:53 |
| → Weasel[DK] joined | 18:53 |
| ← tono_ left | 18:53 |
|
Ilari
| godsflaw: Store it in seperate files and restore on checkout? | 18:54 |
|
Adlai
| godsflaw: You could theoreticall add hooks to store and restore timestamps... | 18:54 |
| → Dashkal joined | 18:54 |
|
godsflaw
| right now the only option we can see is keeping a checked out master and building packages off that. | 18:55 |
| → coherence joined | 18:55 |
|
bremner
| godsflaw: use git archive? | 18:56 |
|
mugwump
| Mizar-jp: I was making a joke out of correcting your English, see this for more info: http://www.youtube.com/watch?v=XbI-fDzUJXI | 18:56 |
|
coherence
| any gitosis users - i'm trying to get the post-receive hook to work for commit emails working. any hints? | 18:57 |
|
godsflaw
| bremner: we are now and it does not preserve timestamps. | 18:57 |
|
bremner
| use the right options for tar? | 18:58 |
|
godsflaw
| we tried, but those need to be passed on the compress side, and it does not look like we have a solution for that. | 18:58 |
|
bremner
| or yeah, there is some fixup the metadata tools around. I forget the names. | 18:59 |
|
nirvikalpa
| ponnies == trojans? | 18:59 |
|
bremner
| godsflaw: metastore is one apparently | 19:02 |
|
| http://david.hardeman.nu/software.php | 19:02 |
| WebDragon → WebDragon|away | 19:03 |
|
Mizar-jp
| mugwump: Unfortunately, your jokes and jokes that video, I do not understand much. | 19:03 |
|
cannonball
| Am I seeing this correctly? git rm path/to/dir/file will drop that file. If it was the only file in that directory, it apparently drops the now empty directory from the repo as well. Intended? Or unintentially did exactly what I wanted? :-) | 19:05 |
| ← bcardarella left | 19:05 |
| ← qrush left | 19:07 |
|
mugwump
| Mizar-jp: jokes are often "lost in translation" | 19:08 |
|
Ilari
| cannonball: Intended. | 19:09 |
| ← smuf left | 19:10 |
|
Adlai
| cannonball: Git only tracks files, not directories. If you had wanted to track the directory, you could put an empty .gitignore file in it. | 19:10 |
| ← drubies left | 19:13 |
| → ramus`_ joined | 19:15 |
| ← Axius left | 19:15 |
| ← richcollins left | 19:18 |
| ← head left | 19:19 |
| → Dashkal_ joined | 19:19 |
| → doy joined | 19:20 |
| ← Dashkal left | 19:21 |
| Dashkal_ → Dashkal | 19:21 |
|
doy
| is there a way to pass default command line options to git commands? | 19:21 |
| ← bdiego left | 19:21 |
|
doy
| i'd like "git log" to always be "git log --stat" | 19:21 |
|
Ilari
| doy: No. | 19:21 |
| ← mjansen left | 19:21 |
|
doy
| bah | 19:21 |
|
| any workarounds? | 19:22 |
|
mugwump
| doy: git config --global alias.logs 'log --stat' | 19:22 |
|
| then 'git logs' will do whbat you wanted | 19:22 |
|
nirvikalpa
| `alias gl='git log --stat' | 19:22 |
|
doy
| sure, i'd rather have it on just log though | 19:22 |
|
| oh well | 19:22 |
| ← tansell_laptop left | 19:23 |
| ← btanaka left | 19:25 |
| → __iron joined | 19:25 |
| → benn_d joined | 19:25 |
| ← benn_d left | 19:26 |
|
mugwump
| not sure why you'd care, but ok | 19:26 |
|
| probably a config option for that would be vetoed due to performance reasons | 19:26 |
| → ChrisGo joined | 19:26 |
|
mugwump
| and because you can use alias | 19:26 |
|
doy
| performance? | 19:26 |
|
mugwump
| sure, well, you're having to diff everything to get the --stat | 19:27 |
|
doy
| oh, for --stat specifically, yeah | 19:27 |
|
ChrisGo
| is git as nice as the collab svn for windows server installer - ease of use is important for me right now | 19:28 |
| → richcollins joined | 19:29 |
| ← capndiesel left | 19:29 |
| → peff joined | 19:29 |
|
engla
| does anyone have a nice tutorial for topic branch workflows? That I can send to collaborators, without having to write it myself | 19:29 |
|
jonthefly
| ChrisGo: There are alot of good things i could say about git... but i dont think i would describe it as easy | 19:30 |
|
| especially if your new to the git concepts | 19:30 |
| ← ramus` left | 19:30 |
| ramus`_ → ramus` | 19:30 |
| ← doy left | 19:30 |
|
mugwump
| the only thing that's easy about svn is it's mum | 19:30 |
|
jonthefly
| svn might be a better choice if you do not care about branching and merging. | 19:30 |
|
ChrisGo
| well the gui for windows looks just like the svn version | 19:31 |
|
| just making sure its easy to install as server on windows without a whole bunch of non native crap | 19:31 |
|
mugwump
| instead you have to install native crap :) | 19:31 |
|
ChrisGo
| updates, and such... collab has done a pretty good job with this | 19:32 |
|
nirvikalpa
| There was a tutorial for people who don't know distributed scm.. | 19:32 |
|
mugwump
| ChrisGo: you have to install mSysGit, it has a couple of dependencies, but most people manage it ok | 19:32 |
|
| whether that's easy or not, well, that's always up to the material you're working with | 19:32 |
|
ChrisGo
| looking at msysgit | 19:33 |
| ← nirvikalpa left | 19:33 |
|
ChrisGo
| cygwin is a pain imo | 19:33 |
| ← dpino left | 19:34 |
|
mugwump
| msys != cygwin | 19:34 |
|
| the only reason it's msys and not plain mingw is for crappy svn api | 19:35 |
|
Thell
| Got a four part msg, sorry for the length... | 19:35 |
|
ChrisGo
| right thats why I was looking at that no native C build for windows yet? | 19:35 |
|
Thell
| ooops, thought you two where at a breaking point there | 19:36 |
|
| Thell will wait | 19:36 |
|
ChrisGo
| im done | 19:36 |
|
Thell
| Hi guys. Here's an interesting conundrum... A build version info script for VS ( http://git.pastebin.com/m7e15aba5 ) with a quirk I'm not quite sure how to handle efficiently. | 19:36 |
|
| The 'digital' file version is based on git describe output from a tag. So tag v1.0.0 + 1 commit would be 1,0,3,1 ( 3==release version ), this is fine except that if we have a maint branch on put a patch on there for tag v1.0.1 | 19:36 |
|
| The digital version is then 1,0,3,1. See the problem? two different commits giving the same digital version. Even though the string FileVersion is different and can clarify the situation. | 19:36 |
|
| Any ideas? | 19:36 |
|
mugwump
| Thell: use 'git describe' | 19:37 |
| ← ChrisGo left | 19:37 |
|
Thell
| mugwump: obviously I am | 19:37 |
|
| ...'based on git describe output'... | 19:38 |
| → ianmcorvidae|alt joined | 19:38 |
|
mugwump
| so, well, don't throw away the bit which makes it different | 19:38 |
|
Thell
| 'digital' version means no alpha | 19:38 |
|
mugwump
| the -gcafebab part of the version name | 19:38 |
|
Thell
| four part comma seperated int value | 19:39 |
|
mugwump
| sure, well don't do that then | 19:39 |
|
| add the hash | 19:39 |
|
| like git describe does | 19:39 |
|
bremner
| or use tags? | 19:39 |
|
Thell
| your not getting it... the digital version doesn't allow alpha mugwump | 19:39 |
|
mugwump
| well you're poked then | 19:40 |
| → tvw joined | 19:40 |
|
Thell
| bremner: tags are being used, that's how the 'git describe' is getting the # of commits since the tag | 19:40 |
|
bremner
| I mean, just tag the commit you mean to correspond with your version. | 19:42 |
|
Thell
| I did think briefly about using a '00', '01', etc... value at the end of the string for tagged release commit differences, so 1,0,3,01 | 19:42 |
|
mugwump
| you could convert the hash to an int | 19:42 |
|
Thell
| bremner: we are | 19:42 |
|
mugwump
| actually for debian version numbers I tend to use a timestamp | 19:42 |
|
Thell
| actually I guess it doesn't have to be an int, just numeric | 19:42 |
|
| I wanted to do timestamp too... I was outvoted for 'ease of reading' :/ | 19:43 |
|
mugwump
| eg, 1.2.3.0.20090821 | 19:43 |
| → wolog joined | 19:43 |
| → bcardarella joined | 19:43 |
| ← ianmcorvidae|alt left | 19:43 |
|
mugwump
| I think you might just have to say that functionality comes before astroturfing | 19:43 |
| ← voker57 left | 19:43 |
|
Thell
| ohhh and another issue with that was something to do with pdb info between different users for the same build... | 19:44 |
| → ianmcorvidae|alt joined | 19:44 |
|
mugwump
| not quite sure how a timestamp is not easy to read | 19:44 |
| → joevandyk__ joined | 19:45 |
|
mugwump
| you could split the time part | 19:45 |
|
| 1.2.3.0.20090821.123456 | 19:45 |
|
| mugwump helps | 19:45 |
| → Xaositect joined | 19:46 |
| ← ianmcorvidae left | 19:46 |
| → voker57 joined | 19:46 |
|
Thell
| four part | 19:47 |
| ← kpreid_ left | 19:48 |
| → ihoka_ joined | 19:50 |
|
mugwump
| sounds like you're really been run into a corner by stupid requirements | 19:50 |
| ← richcollins left | 19:51 |
| → richcollins joined | 19:52 |
| ← GodEater left | 19:52 |
| → bigmack83_ joined | 19:52 |
|
Thell
| I guess it really depends on the debug file info, from what I was told all file version info needed to match to be able to load a dump. | 19:52 |
| → GodEater joined | 19:52 |
| ← nsussman left | 19:52 |
| ← Xaositec2 left | 19:53 |
| ← tstclair left | 19:54 |
|
bigmack83_
| ok i have two clones of a repo. on one i added a branch with: 'git branch development' and comitted and pushed changes. in other repo i ran git pull and it showed new branch of development. but when i try to do 'git checkout development' i get the error: error: pathspec 'development' did not match any file(s) known to git | 19:54 |
| ← yang_ left | 19:54 |
| → tstclair joined | 19:54 |
| ← richcollins left | 19:54 |
|
bigmack83_
| do i have the process wrong to add branches so others can use it? beforei was able to commit the second branch i had to change a file to be able to commit. | 19:55 |
|
Ilari
| bigmack83_: Maybe it isn't local branch yet (git checkout -b development remote/development) or in newer git, shorter form (git checkout -t remote/development). | 19:55 |
| ← marcelo__ left | 19:55 |
|
Ilari
| bigmack83_: See 'git branch -r'. | 19:55 |
|
bigmack83_
| well it was all done on the server. i hadnt tried over ssh yet. | 19:55 |
|
| ok one sec. | 19:56 |
| → arrenlex joined | 19:56 |
|
bigmack83_
| ok in the second the development branch is listed | 19:56 |
|
arrenlex
| Hi. I am resolving merge conflicts after git stash apply. How do I make git throw out my local changes for one file and use the upstream version? | 19:57 |
| ← ihoka left | 19:59 |
| ihoka_ → ihoka | 19:59 |
| → khmarbaise_ joined | 20:00 |
| → kpreid_ joined | 20:00 |
|
gitster
| "git co HEAD that-file"? | 20:00 |
| → exygen joined | 20:00 |
|
gitster
| s/co/checkout/, that is. | 20:00 |
| ← javatexan left | 20:01 |
|
bigmack83_
| well i want to switch to the whole branch | 20:01 |
|
| not just one file | 20:01 |
| ← joevandyk_ left | 20:02 |
|
arrenlex
| gitster: Thanks! | 20:02 |
|
charon
| bigmack83_: in addition to what Ilari said, you mistook pull for fetch | 20:03 |
| ← koltroll left | 20:04 |
| → drizzd_ joined | 20:05 |
| → qrush joined | 20:06 |
| → ab3 joined | 20:06 |
| → juice_d joined | 20:07 |
| → corni joined | 20:08 |
| ← Pupeno left | 20:08 |
|
bigmack83_
| charlls, ok so on the second clone i need to run git fetch instead | 20:10 |
| → Pupeno joined | 20:10 |
| → tjholowaychuk joined | 20:11 |
| → malumalu joined | 20:11 |
|
bigmack83_
| charon, oops, last message was meant for you | 20:13 |
| ← elTigre left | 20:13 |
| → rudi_s_ joined | 20:15 |
| ← __iron left | 20:16 |
|
charon
| bigmack83_: indeed, and then make a local branch with a command like the ones Ilari gave. pull does a merge, so you may also want to see if running it resulted in history you didn't want to create | 20:16 |
|
| (i.e., the branch you were on when you ran git-pull may contain extra commits) | 20:17 |
| → __iron joined | 20:17 |
| → rofflwaffls joined | 20:17 |
|
rofflwaffls
| hi, i keep getting a error: Unable to verify pack 4297ca0b1564361d528ebabaa35981e04412a1cf is available when trying to clone my repo | 20:18 |
|
USA_NO_1
| if a git clone stalls over ssh can i resume? | 20:18 |
|
bigmack83_
| ok so in first dir, i added the files, committed, and pushed to repo to have the base starting point. run 'git branch development' to add the branch, edit a file. commit, push | 20:18 |
|
rofflwaffls
| i'm cloning over http though | 20:18 |
| ianmcorvidae|alt → ianmcorvidae | 20:19 |
|
bigmack83_
| then i in second directory. cloned after first push. i would run git fetch ? | 20:19 |
| ← khmarbaise left | 20:19 |
| khmarbaise_ → khmarbaise | 20:19 |
|
bigmack83_
| to pull the development branch | 20:19 |
|
| err | 20:19 |
|
| then (git checkout -b development remote/development | 20:20 |
| ← akahn left | 20:20 |
|
bigmack83_
| to checkout the dev branch. tight? | 20:20 |
|
charon
| bigmack83_: yes. note that by default, 'git push' does not push new branches, so the second push needs an explicit 'git push origin development' | 20:20 |
|
bigmack83_
| yes | 20:20 |
| rylar → rylar_off | 20:20 |
| ← Fissure left | 20:20 |
| ← drizzd left | 20:21 |
|
charon
| bigmack83_: also note that from there on you have three separate development branches (one per repo) and need to update/merge the local ones after fetching | 20:22 |
| → Fissure joined | 20:22 |
| → slabbeh joined | 20:22 |
|
dgs__
| i'm trying to do a git merge origin, but am getting an error 'Entry '/config/locales/en.yml' not uptodate. Cannot merge". I know this means that my local copy has changes that would be overwritten, but i'm not sure how to make git let me merge the differences? | 20:24 |
| → elliottcable joined | 20:24 |
|
patrikf
| dgs__: if you don't need the local changes, git checkout /config/locales/en.yml | 20:25 |
|
rofflwaffls
| anyone? :( | 20:25 |
|
patrikf
| dgs__: if you do need them, git stash might be of use | 20:25 |
| ← Sho_ left | 20:26 |
|
dgs__
| can't i get git to present a merged version that I can edit into shape? | 20:26 |
| Phurl → ThatFnordingGuy | 20:26 |
| → tansell_laptop joined | 20:27 |
|
patrikf
| dgs__: git will do so if it can't merge automatically. but in any case the working tree needs to be clean | 20:27 |
|
| i.e. have no uncommitted changes in affected files | 20:27 |
|
| so either: throw them away (checkout), stash them away for later (stash), or commit them now (commit) | 20:28 |
| ← pavelz left | 20:28 |
| ← alsadi left | 20:30 |
| ← psoo left | 20:30 |
| ← hugoxrosa left | 20:30 |
| ← rudi_s left | 20:31 |
|
dgs__
| hmm. crap. looks like i had forgotten to do a commit in there | 20:31 |
| ← ihoka left | 20:31 |
|
dgs__
| had heaps of changes that were stopping it from working | 20:31 |
|
| ta =) | 20:32 |
|
Thell
| coolio, I think the maint version building is figured out. There's a VC_FF_PRIVATEBUILD flag which I set if head is dirty. If two digital file-versions match the actual maint tag wouldnot have the flag set. | 20:33 |
| → nsussman joined | 20:33 |
|
Thell
| which also means the VS_FF_PATCHED is not set either. | 20:34 |
|
| woohoo. | 20:34 |
| boto → help | 20:36 |
| help → boto | 20:36 |
| boto → ehabkost | 20:37 |
|
bigmack83_
| charon ok now, on the second i have 2 branches, master and remote/branch . i have 3 seperate repos because the one master, and each user would have a copy of development right? | 20:37 |
| krynnotaur → krynnaway | 20:37 |
| → ^aristotle joined | 20:37 |
|
^aristotle
| is there a way to check out a file into the working copy but not into the index? | 20:37 |
|
| from a previous version | 20:38 |
| ← cilly left | 20:38 |
|
bigmack83_
| so if the second user edits files in development the first user would run a pull from the second user, that would merge changes assuming no conflicts | 20:38 |
| ← madewokherd left | 20:38 |
|
^aristotle
| or, vice versa | 20:38 |
| → ph^ joined | 20:39 |
|
dgs__
| i'm getting a message that my branch and origin/master have diverged and have 7 and 6 commits each respectively. there's a few results for this on google, but nothing I can find that describes what it means / how to resolve it... | 20:39 |
| ← ph^ left | 20:39 |
|
bremner
| merge | 20:39 |
| ← ashc left | 20:39 |
|
bremner
| git merge origin/master | 20:39 |
|
^aristotle
| restating the question from scratch... can I say "put /some/silly/file from version X into the index but leave the working copy alone" somehow? | 20:40 |
| → Alien_Freak joined | 20:40 |
|
dgs__
| bremner: was that for me? | 20:40 |
|
^aristotle
| dgs__: yes | 20:40 |
|
bremner
| dgs__: yes | 20:40 |
|
doener
| dgs__: "origin/master" is a remote tracking branch, basically a local mirror of the "master" branch head of "origin" remote | 20:41 |
|
Alien_Freak
| if I setup a project with a git submodule... ie. project A has a directory foobar which is clone of project B... whenever I checkout A, it'll also do a pull from B.. correct? | 20:41 |
|
doener
| dgs__: and your local "master" branch head has that setup as its upstream branch | 20:41 |
|
| dgs__: what the message tells you is that there are 7 commits reachable from master that aren't reachable from origin/master, and 6 commits reachable from origin/master that aren't reachable from master | 20:42 |
|
^aristotle
| aha, I wanted `git reset treeish -- path` | 20:42 |
| → Aikawa joined | 20:42 |
|
^aristotle
| dgs__ might want to rebase instead of merging | 20:42 |
|
| depending on the case | 20:42 |
|
dgs__
| cool. | 20:43 |
| ← jds left | 20:43 |
|
doener
| dgs__: if you now do "git merge origin/master", that will add a new merge commit to "master", which make the commits reachable from origin/master also reachable from master | 20:43 |
| → jds joined | 20:43 |
|
doener
| dgs__: so the message will change, saying that you now have 8 commits (one more than before) reachable from master but not from origin/master, but no commits reachable from origin/master but not from master | 20:43 |
| ← pgalbraith left | 20:43 |
|
doener
| dgs__: i.e. the message is just for your information. | 20:44 |
| ← flazz left | 20:44 |
| → flazz joined | 20:44 |
|
doener
| dgs__: "usually" it means that you made 7 commits locally, but didn't push them yet, and that "origin/master" also saw new commits (which you haven't merged yet) since you branched | 20:44 |
|
dgs__
| yeah, that would be about right - was trying to merge my code + my bosses with origin | 20:45 |
|
| made a right balls up of it =) | 20:45 |
|
doener
| dgs__: if you messed with rebase (or other history rewriting stuff), the meaning is slightly different. Therefore, git uses the "neutral" form, and leaves the rest up to your interpretation, as you should know what you did ;-) | 20:46 |
| ← Aikawa_ left | 20:49 |
| ← merlin83 left | 20:50 |
| ← qhoxie_ left | 20:51 |
| ← NET||abuse left | 20:51 |
| ← lorandi left | 20:51 |
| ← bigmack83_ left | 20:52 |
| → ablemike joined | 20:53 |
| ← scientes_ left | 20:53 |
| → merlin83 joined | 20:54 |
| ← peff left | 20:55 |
| ← tjholowaychuk left | 20:56 |
| → priidu joined | 20:57 |
| → godsflaw_ joined | 21:01 |
| ← lucsky left | 21:02 |
| → ryoma joined | 21:05 |
| ← godsflaw left | 21:05 |
| → bremner_ joined | 21:06 |
| → Th0ma5 joined | 21:07 |
| ← keystr0k left | 21:08 |
| ← malumalu left | 21:08 |
| ← dirk2 left | 21:09 |
| ← schmukkk2_ left | 21:09 |
| ← guerrill1 left | 21:09 |
| → guerrilla joined | 21:09 |
| ← flazz left | 21:11 |
| → lresende joined | 21:11 |
| ← Aikawa left | 21:13 |
| ← mbroeker left | 21:16 |
| → madewokherd joined | 21:16 |
| ← elliottcable left | 21:17 |
| ← tg left | 21:22 |
| tg_ → tg | 21:22 |
| → djszapi_ joined | 21:22 |
| → onigiri joined | 21:23 |
| → _patton joined | 21:23 |
| ← d0k left | 21:24 |
| ← djszapi_ left | 21:24 |
| → Aikawa joined | 21:24 |
| ← bremner_ left | 21:25 |
| ← ehabkost left | 21:27 |
| ← ctusar left | 21:28 |
| → sgh joined | 21:29 |
| ← bcardarella left | 21:30 |
| ← _ringlej left | 21:30 |
| ← DavidKlein left | 21:31 |
| ← RobertMeta_ left | 21:32 |
| ← mm_work left | 21:33 |
| → [M7] joined | 21:33 |
| → iron joined | 21:38 |
| ← jmcantrell left | 21:38 |
| ← __iron left | 21:38 |
| → RobertMeta joined | 21:39 |
| ← ixti left | 21:42 |
| ← babilen left | 21:42 |
| → jlilly joined | 21:43 |
| → matthewford joined | 21:43 |
| ← WALoeIII left | 21:44 |
|
godsflaw_
| is there a quicker way than using git log to see a list of log dates for each file? | 21:45 |
| → marcelo__ joined | 21:48 |
|
thiago_home
| no | 21:48 |
| ← kent\n left | 21:50 |
| → kent\n joined | 21:51 |
| ← macmaN6789 left | 21:51 |
| → agenteo joined | 21:52 |
| ← tschundeee left | 21:53 |
| → schacon joined | 21:54 |
| ← Sigma left | 21:54 |
| ← iron left | 21:54 |
|
schacon
| spearce, you around? | 21:54 |
| ← Akufen left | 21:54 |
|
spearce
| yup | 21:54 |
|
schacon
| was the smart http technical doc patch rejected? i don't see it in pu | 21:55 |
|
| or in the whats cooking list | 21:55 |
|
spearce
| held back. its not complete and doesn't fully match the code in pu | 21:55 |
|
schacon
| k | 21:55 |
| → WALoeIII joined | 21:56 |
|
mugwump
| schacon: http://article.gmane.org/gmane.comp.version-control.git/129734 ? | 21:56 |
|
schacon
| yup | 21:57 |
| → codejunky joined | 21:57 |
|
mugwump
| are you updating your rfc doc? | 21:57 |
|
schacon
| i was thinking of redoing it based off this example | 21:57 |
| godsflaw_ → godsflaw | 21:58 |
|
mugwump
| cool, a lot of people want that | 21:58 |
|
spearce
| yea, that's a draft, see http://repo.or.cz/w/git/fastimport.git?a=blob;f=Documentation/technical/http-protocol.txt;hb=http-doc for a more recent draft maybe | 21:58 |
|
| uh, ok, now the more recent draft is there | 21:59 |
| → ashc joined | 21:59 |
|
godsflaw
| okay, so let's say someone has touched a file (not tracked) in my repository and I want to reset --hard the repo. Is there a way to get it to blow that file away (without changing the timestamps on my working directory files?) | 22:01 |
|
Ilari
| Been thinking new rules for refspecs. More DWIM stuff, remove some really error-prone forms, add some new forms (to take advantage of some protocol features unexposed to UI in current versions). | 22:03 |
| ← bdimcheff left | 22:03 |
|
mugwump
| Ilari: examples or demoo doc patch? | 22:03 |
|
Ilari
| For destinations: qualify heads/, tags/ and remotes/ as one would expect. If fetch lines are available, fetch refs without destination according to them (otherwise these are errors). | 22:05 |
|
| Pull would have single-part forms only. | 22:05 |
| ← jrmuizel left | 22:06 |
|
Ilari
| Push would get three-part forms: src:old: , :old:dest and src:old:dest These would control what gets sent as old field in update request. Force push is impiled for these. | 22:07 |
| → hgimenez joined | 22:08 |
| ← icwiener_ left | 22:08 |
| ← lhz left | 22:08 |
| ← loincloth left | 22:09 |
| → damo221 joined | 22:09 |
|
_patton
| We've been using a bare git repository on our webserver to push to with a post commit hook to update the dev/ site. Problem is, now we need to allow another user to update the bare repository, but the post commit hook updates dev/ with mucked up permissions. I've tried using su command in the hook, but its not being run correctly. Anyone? | 22:09 |
| → babilen joined | 22:09 |
|
damo221
| i want to put a link on my website for people to apply a patch i wrote and build an experimental kernel module... but i want to specify the exact same git revision so the kernel will build successfully... how do i specify which git revision to check out? | 22:10 |
| ← gunmuc left | 22:10 |
|
thiago_home
| _patton: this is a shell scripting issue | 22:10 |
| ← Mezner left | 22:10 |
|
thiago_home
| _patton: not really a Git problem | 22:10 |
|
tk
| _patton: is your repo setup exactly how your site is pushed to the dev server? (working on this myself but my repo has non www files in it too) | 22:10 |
|
_patton
| thiago_home: yes true. | 22:11 |
|
tk
| _patton: maybe add your git user to the non pass required sudo list? | 22:11 |
|
_patton
| tk: our repo is set up with 3 branches, each for dev/ staging/ master/ | 22:11 |
|
| tk: tried that, hasn't worked | 22:12 |
|
Ilari
| damo221: Just say what kernel revision (by sha-1 hash or describe output) it is intended to be appiled on? | 22:14 |
| → sudoer joined | 22:14 |
|
sudoer
| i accidently added a 122 meg file to git, how can I completely remove it form git? | 22:15 |
| ← ablemike left | 22:15 |
|
damo221
| Ilari: well, its an experimental kernel branch "alsa-kernel" im not sure if its the same as the main kernel | 22:15 |
|
sudoer
| I already commited it | 22:15 |
|
Ilari
| sudoer: In last commit? | 22:16 |
|
sudoer
| yes | 22:16 |
|
cehteh
| sudoer: remove that commit (anything else there to preserve?) | 22:16 |
|
Ilari
| damo221: Well then also specify where one got that kernel. | 22:16 |
|
sudoer
| Ilari: yes | 22:16 |
|
damo221
| Ilari: some people have had trouble compiling just by cloning the latest git.... i was wondering if its possible to check out the identical revision which I used to write the module | 22:16 |
|
cehteh
| amend will do then | 22:16 |
|
Ilari
| sudoer: 'git rm --cached <bigfile>' and then 'git commit --amend'? | 22:16 |
|
cehteh
| and then gc/repack with some faith :) .. prolly expiring your reflogs first | 22:17 |
| ← Haarg left | 22:17 |
|
Ilari
| damo221: Well, there's 'git checkout -b <newbranchname> <id>'. | 22:17 |
|
damo221
| Ilari: oooh, i can specify the ID of the actual revision and check it out as a separate branch? | 22:17 |
| ← suman left | 22:17 |
|
damo221
| thanks | 22:18 |
|
Ilari
| damo221: And the checked out tree is the same one that you have... | 22:19 |
|
damo221
| ilari: do i have to do a git clone of the repo first? | 22:20 |
|
| Ilari: so git clone .... then git checkout -b newbranch <id> | 22:20 |
| → warthog9 joined | 22:20 |
| → merlin1983_ joined | 22:21 |
|
Ilari
| damo221: Yes. But if its some kernel fork, one could get it faster if one has existing kernel tree by using --reference or by adding new remote. | 22:21 |
|
damo221
| Ilari: do i need to switch to the new branch after checkout? | 22:22 |
| → ashc__ joined | 22:23 |
| ← merlin83 left | 22:24 |
|
cehteh
| mhmpf why are submodules so pita | 22:24 |
|
damo221
| nope apparently it switches automatically.... how do i switch back to the old branch | 22:25 |
|
cehteh
| git checkout | 22:25 |
| ← priidu left | 22:25 |
|
mugwump
| cehteh: sorry... it's been on the todo list to make them not suck for over a year | 22:26 |
| → bambule joined | 22:26 |
|
charon
| damo221: note that newer gits have 'git checkout -' as a short way to say "go back to the last branch" | 22:27 |
|
mugwump
| schacon: you have until 2009-11-09 until https://datatracker.ietf.org/idst/upload.cgi opens again | 22:28 |
|
cehteh
| you can not add recursive submodules to the toplevel you must add them truely recursive right? | 22:28 |
|
mugwump
| I don't really parse that question cehteh | 22:28 |
|
damo221
| charon: thanks! | 22:28 |
|
cehteh
| and there is a long outstanding bug which barfs on adding a submodule with a relative path './' | 22:28 |
| → bdimcheff joined | 22:29 |
| ← thiago_home left | 22:29 |
|
cehteh
| i have mydir as master then submodule mydir/sub and mydir/sub/subnested | 22:29 |
|
| i can not add this both submodules in order to mydir subnested must be a submodule for mydir/sub | 22:30 |
|
| ok i guess i can live with that | 22:30 |
| → moonin joined | 22:30 |
| ← _patton left | 22:30 |
|
^aristotle
| charon: when was that added? | 22:30 |
|
| that's awesome | 22:31 |
| → mattayers joined | 22:31 |
|
cehteh
| but always hand-editing .gitmodules to fix the paths after an add is bit unexpected | 22:31 |
|
moonin
| Does anyone know how to display a diff between staged versions in the index *without* including the working tree copy (and its conflict markers) at all? | 22:31 |
| ← mattayers left | 22:31 |
|
mugwump
| cehteh: yes, that's one of the bugs I've got on this list | 22:31 |
|
| also switching branches doesn't change the submodule, | 22:31 |
|
| cloning has no easy option to clone submodules too, | 22:32 |
|
cehteh
| that doesnt really hurt me yet | 22:32 |
|
Ilari
| The biggest reason submodules suck is that not having the right version checked out causes rebase and merge to abort. | 22:32 |
|
mugwump
| you also can't specify in .gitmodules that you prefer 'master' rather than the commit which was committed | 22:32 |
|
cehteh
| well i want only one repo and the submodules are branches in this repo, technically thats possible but no procelain for that | 22:33 |
|
mugwump
| yes, that's a valid use case I think | 22:33 |
| → warthog19 joined | 22:33 |
|
mugwump
| it's currently quite ugly | 22:33 |
| ← warthog9 left | 22:33 |
|
mugwump
| but really just a matter of cooking up the patches etc | 22:33 |
|
cehteh
| yes tracking refs than sha1's is high on the list for a lot people | 22:33 |
| ← ashc left | 22:33 |
|
charon
| 696acf45, first in 1.6.2-rc0 | 22:34 |
|
Gitbot
| [git 696acf45]: http://tinyurl.com/ykrfqrg -- checkout: implement "-" abbreviation, add docs and tests | 22:34 |
|
charon
| ^aristotle: ^ | 22:34 |
|
cehteh
| the good thing is that it all can work, the bad thing is that the frontend sux | 22:34 |
|
mugwump
| that's right | 22:34 |
|
| patches welcome, in this case help gladly given | 22:34 |
|
cehteh
| imo that would be a perfect gsoc project ... but summer is over :/ | 22:35 |
| ← Dashkal left | 22:35 |
|
cehteh
| i am busy with other stuff .. but i had toughts about writing my own submodules porcelain | 22:35 |
|
khmarbaise
| Hi. I have questions. If i do a clone of a repository and create a branch and do a push. Does that branch continue to exist in the target repository? | 22:35 |
| warthog19 → warthog9 | 22:36 |
| → jeckel joined | 22:36 |
|
Ilari
| Then wilder stuff I have plans for (but not all details on behavour are thought to end): empty branches (in way such that older clients won't break). Would simplify some stuff. | 22:36 |
|
cehteh
| khmarbaise: continue? | 22:36 |
|
moonin
| khmarbaise: When you say "target", do you mean the repository you cloned from and pushed to? If you pushed the branch, then yes it does. | 22:36 |
| → chovy_ joined | 22:36 |
|
^aristotle
| charon: :) | 22:36 |
|
chovy_
| how do i revert a working copy? | 22:36 |
|
Ilari
| chovy_: 'git checkout -- <file>'? | 22:37 |
|
cehteh
| Ilari: well that are corner cases .. submodules are so much incomplete and buggy it slaps right into ones head sometimes | 22:37 |
|
moonin
| khmarbaise: I know that the default won't create branches on "git push" unless you explicitly list it onthe command line, but there are a number of ways to override it. | 22:37 |
| ← arrenlex left | 22:37 |
|
khmarbaise
| moonin: Yes "target" is the repository i cloned before from and pushed back to...So i have to explicitly push the branch? | 22:37 |
| ← tvw left | 22:37 |
|
moonin
| chovy_: "git checkout [<revision to revert to>] path/to/file | 22:37 |
|
| chovy_ There are a couple of slightly different things you might mean by "revert" that I'd have to ask you about for more detail. | 22:38 |
|
| chovy | 22:38 |
|
chovy_
| it's just a local coyp, i haven't committed yet. | 22:38 |
|
| copy* | 22:38 |
|
cehteh
| anything below a submodule is *always* ignored or can i force commit something on master what lies in a submodule | 22:38 |
|
chovy_
| i modified ./foo and want to "revert" in the svn sense of the word. | 22:38 |
|
moonin
| chovy_: do you mean "to th last checked in version" or "to three versions ago" and do you want to revert *everything* or just a couple of files you screwed up? | 22:38 |
|
cehteh
| evil plan .. symlink submodule/.git to ../.git :) | 22:39 |
|
Ilari
| chovy_: 'git checkout HEAD -- foo'? | 22:39 |
|
| cehteh tries :P | 22:39 |
|
chovy_
| don't know. i'm a git n00b | 22:39 |
|
Ilari
| chovy_: (reverts it to last locally committed state). | 22:39 |
|
| chovy_: HEAD => tip of current branch. | 22:39 |
|
chovy_
| svn revert ./foo would wipe my local modifications to it, that's all i want to do. | 22:39 |
|
moonin
| chovy_: "git checkout foo" will do it. "git checkout -- foo" if "foo" might be mistaken for a branch name. HEAD is the default if not specified. | 22:40 |
|
Ilari
| moonin: It isn't default. | 22:40 |
|
cehteh
| git add -f chroot/.git | 22:40 |
|
| fatal: Path 'chroot/.git' is in submodule 'chroot' | 22:40 |
|
Ilari
| checkout <file> defaults to staged version. | 22:40 |
|
cehteh
| bah it doesnt like me | 22:40 |
|
Ilari
| cehteh: And nothing in directory named '.git' can be added anyway. If you manipulate commits to contain such paths, checkout will fail. | 22:41 |
|
cehteh
| ok is there some other way to delegate a .git | 22:41 |
|
moonin
| Ilari: Uh... RTFMing to see if that's right... | 22:42 |
|
cehteh
| not reads but also writes/commits shall go up a alternatives/references | 22:42 |
| → s0ber joined | 22:42 |
|
moonin
| Ilari: Wow, you're right. My memory was wrong. It ends up being synonymous is a lot of cases, but thanks! | 22:42 |
| ← TeckniX left | 22:43 |
| ← [M7] left | 22:44 |
| ← alezandro left | 22:44 |
|
moonin
| khmarbaise: I don't often create upstream branches, so I may have this slightly wrong, but generally as a safety measure you have to specify "mybranch:[remotebranch]" to create a branch upstream. Once you have, though, it continues to exist until explicitly deleted even if you delete yours locally. | 22:46 |
| → Sigma joined | 22:46 |
|
khmarbaise
| moonin: Ah...thanks.. | 22:46 |
| ← hagabaka left | 22:47 |
| ← Th0ma5 left | 22:47 |
| → newsham joined | 22:47 |
| ← agile left | 22:47 |
|
newsham
| I'm a little confused. If I "git checkout -b <somebranch>" does it create a new branch in my tree named that or does it pull a branch with that name form a remote archive? | 22:47 |
|
moonin
| khmarbaise: Of course, the --all and --mirror options also cause remote branches to be created, and if you list the branch in the config file, that's as good as on the command line... there's rather a lot of flexibility in the area. | 22:48 |
|
drizzd_
| spearce: I have added smart HTTP support to t5550 | 22:48 |
|
moonin
| newsham: The former. It creates the branch (with the same contents as the current HEAD) and switches to it. | 22:48 |
|
drizzd_
| spearce: would you like me to add that on top of my existing patches or should I squash it into the patch for t5540? | 22:48 |
|
newsham
| ok, thats not what I want to do.. how do I specify a branch to checkout/pull/whatever ? | 22:49 |
|
khmarbaise
| An other question. I have the following situaion: A Production line, for a prodcut already released (1.0) to a customer, may be need bug fixing on that and having a new release integration line (1.1), and a development line (2.0)...so the question is how to handle this in git ? Which kind of setup is needed ? Multiple Repositories ? | 22:49 |
|
moonin
| newsham: It's exactly the same as "git branch <somebranch> && git checkout <somebranch>" | 22:49 |
| ← makkalot left | 22:49 |
| → Azeroth-Work joined | 22:49 |
| ← tk left | 22:49 |
|
moonin
| newsham: The number of different things that "git commit" can do is somewhat confusing. | 22:50 |
|
spearce
| drizzd_: be curious to see what you have, but i just finished my own set of tests and was getting ready to send the respun series | 22:50 |
|
moonin
| khmarbaise: No, just multiple branches. | 22:50 |
|
newsham
| i am not really using git for changes/committing, I just want to reproduce certain src trees from a repo | 22:50 |
|
| that coincide with different releases | 22:50 |
|
khmarbaise
| thx. | 22:51 |
|
moonin
| khmarbaise: Generally, you tag releases, and have branches for versions being worked on. You might have 2.0 development be "master" and 1.1 be "released" or "stable" or some such. | 22:51 |
|
drizzd_
| spearce: ok, I'll wait for that then | 22:51 |
|
cehteh
| newsham: git reset --hard release would be bit rude then but works | 22:51 |
|
| where release is eiher origin/branch or tagname or such | 22:52 |
| ← lohrun left | 22:52 |
|
newsham
| and that would fetch the particular release tagged as 'release' ? | 22:52 |
|
cehteh
| thats destructive to your master which becomes the intended version then | 22:52 |
| → lightcap joined | 22:52 |
| → richcollins joined | 22:52 |
|
drizzd_
| spearce: it's funny how we now find bugs in the test suite because smart HTTP actually does some things right that dumb HTTP didn't :-) | 22:52 |
|
cehteh
| you cloned it .. you have to know what you want | 22:53 |
|
newsham
| so the clone url is the only thing that determines which versions of files? | 22:53 |
| ← damo221 left | 22:53 |
|
spearce
| drizzd_: :-) | 22:53 |
| → __iron joined | 22:53 |
|
cehteh
| newsham: clone gets you a copy of the repository | 22:54 |
|
moonin
| newsham: Git checkout <somebranch> will switch to and check out that branch. "git checkout <somebranch> <path>" will *not* switch branches, but will populate the <path> (recursively, so "." is quite powerful) with the given branch's files. | 22:54 |
|
drizzd_
| spearce: does smart HTTP need USE_CURL_MULTI? | 22:54 |
|
spearce
| no | 22:54 |
| ← Pewpewarrows left | 22:54 |
| ← Turias left | 22:54 |
|
spearce
| actually, i had to bypass USE_CURL_MULTI, there was a massive performance bug caused by that code path | 22:54 |
| → Pewpewarrows joined | 22:54 |
|
drizzd_
| that's what I thought, thanks | 22:54 |
|
spearce
| took me the better part of yesterday afternoon and today to debug that problem and find a workaround for when USE_CURL_MULTI was true at build time | 22:55 |
|
drizzd_
| yeah, I never quite got my head around that one | 22:55 |
|
newsham
| ok, I did git clone of some repo.. then I did "git branch tag" and I *thought* I was getting sources from that branch that I pulled down | 22:55 |
|
| now I want to play with a diff set of sources and I *thought* "git branch othertag" was switching to those versions of the files | 22:55 |
|
moonin
| newsham: To just check out particular versions, just us "git checkout <commit-ish>". A "commit-ish" is anything thta identifies a commit, like a SHA hash or a tag name or "tag^^^" | 22:55 |
|
newsham
| what do I need to do to undo the damage and get particular sets of flies | 22:55 |
| → tk joined | 22:55 |
|
drizzd_
| Well, I'm glad you had time to do it. It's obviously not as easy as the spec made it sound... | 22:56 |
| ← ludde left | 22:56 |
|
newsham
| ahh, I was using "-b" I guess is the wrong thing | 22:56 |
|
moonin
| newsham: No, "git branch" just creates/deletes/modifies branch names. It never modifies the working tree files in any way. | 22:56 |
|
Ilari
| spearce: That 12M vs 300k bug? | 22:56 |
|
newsham
| oops, I misspoke.. I was using "git checkout -b <something>" | 22:56 |
|
spearce
| Ilari: yup | 22:56 |
| → Myrth joined | 22:56 |
|
newsham
| so I should have been using "git checkout <something>" ? | 22:56 |
|
moonin
| newsham: Ah, no don't do that. For just looking at sources, you should basically never use -b. Exactly. | 22:57 |
| → ereslibre joined | 22:57 |
| ← cannonball left | 22:57 |
|
newsham
| ok, how do I discard my stupid "-b" thing? | 22:57 |
|
moonin
| newsham: "git checkout <where you wanted to be>" and "git branch -d <bogus created branch>". | 22:58 |
|
Myrth
| hi, is there a quick way to convert a full copy to bare repo? | 22:58 |
| ← godsflaw left | 22:58 |
| → scarabx joined | 22:58 |
|
moonin
| newsham: Use "-D" if you get complaints from -d; it's the ""do it, damn it" version. | 22:58 |
|
Ilari
| Myrth: mv the .git out, nuke the rest and set core.bare to true. | 22:58 |
|
newsham
| ok, that seems to have done the trick. | 22:58 |
|
| is there a way to query the repo for a list of branch tags? | 22:59 |
|
moonin
| Myrth: "rm -rf *; mv .git/* .; git config <something magic>" | 22:59 |
|
newsham
| (I can see some in git web browser page) | 22:59 |
|
Ilari
| newsham: ls-remote | 22:59 |
|
moonin
| Myrth: That's "git config core.bare true" | 22:59 |
| jeckel → revans | 22:59 |
|
Myrth
| thanks! | 23:00 |
|
newsham
| ilari: nice. thank you | 23:00 |
|
moonin
| Myrth: Oh, and traditionally bare repositories are located in directories named *.git. | 23:00 |
| → qhoxie_ joined | 23:00 |
| ← jaysern left | 23:00 |
|
Myrth
| yep | 23:00 |
|
| i love git | 23:00 |
|
moonin
| Myrth: That "rm -rf *" should be expanded to include any unwanted . files like .gitignore, of course; it was just shorthand for "blow away the working copy". | 23:01 |
| ← altrux left | 23:01 |
|
Myrth
| yeah i just moved out .git out of the folder and removed the folder | 23:01 |
|
newsham
| ok, I see one listed as "refs/heads/android-msm-2.6.29-donut" but if I "git checkout refs/heads/android-msm-2.6.29-donut" or "git checkout android-msm-2.6.29-donut" it says "pathspec did not match... did you forget to git add" | 23:02 |
|
| what did I do wrong? :) | 23:02 |
| ← JKac3BEq left | 23:02 |
|
moonin
| Myrth: that will work; the "core.bare = true" thing just changes a few error checks to complain. | 23:02 |
|
Ilari
| newsham: They get fetched as remote tracking branches (git branch -r). | 23:02 |
|
spearce
| drizzd_: git://repo.or.cz/git/fastimport.git smart-http | 23:03 |
| ← struberg left | 23:03 |
| ← dunolie_ left | 23:03 |
|
moonin
| newsham: Remove the "refs/": git checkout android-msm-2.6.29-donut. | 23:03 |
| ← qrush left | 23:03 |
|
drizzd_
| spearce: got it | 23:03 |
| → godsflaw joined | 23:03 |
|
Ilari
| newsham: Or 'git checkout -t origin/android-msm-2.6.29-donut'. | 23:04 |
|
Myrth
| is gitosis recommended, or there are better options? | 23:04 |
|
Ilari
| Myrth: gitolite | 23:05 |
|
newsham
| moonin: I did try that one (see above) and it failed | 23:05 |
|
| ilari: "-t"? "--track"? | 23:05 |
|
moonin
| If I could ask my own question: what is the incantation to get "git diff" to show differences between staged unmerged versions, without showing the working tree copy at all? | 23:05 |
|
newsham
| unknown switch '-t' | 23:05 |
|
Myrth
| Ilari: thanks | 23:06 |
|
newsham
| ilari: with "git brach -r" do you mean "git branch -r <branch>; git checkout <branch>" or something like that? | 23:06 |
|
moonin
| newsham: If a file named ".git/refs/heads/android-msm-2.6.29-donut" exists (and is 41 bytes long and contains a SHA-1), it should work. Are you sure you don't have a typo? | 23:06 |
|
newsham
| moonin: I cut&paste to make sure no typos | 23:07 |
| ← __iron left | 23:07 |
|
newsham
| git ls-remote <url> |grep donut, cut&paste | 23:07 |
| → ctusar joined | 23:08 |
|
moonin
| Myrth: Note that you don't need anything if you have ssh set up, or git-daemon if you want to allow anonymous pulls. | 23:08 |
|
| newsham: Oh! So that file doesn't exist! It's only on the upstream server! You have to fetch it. | 23:08 |
|
Myrth
| moonin: mmm... then what is the incentive of gitosis and gitolite? | 23:08 |
|
newsham
| how do I do that? | 23:08 |
|
charon
| moonin: git diff :2:foo :3:foo | 23:09 |
|
| moonin: see the git-rev-parse manpage for what the numbers mean | 23:09 |
|
moonin
| newsham: If you cloned, it's already been fetched, but moved to the "origin/" sibdirectory. Try checkiung out "origin/android-msm-2.6.29-donut" before we get clever... | 23:09 |
|
| (AFK for a few minutes...) | 23:10 |
|
doener
| moonin: (search for "stage number" in that man page) | 23:10 |
|
newsham
| moonin: origin/* seems to have done the trick (at least its taking a lot longer than the errors did :) | 23:10 |
| → bremner_ joined | 23:10 |
|
newsham
| ty for the help. this is very confusing. | 23:11 |
|
| (believe it or not I have read through the git community book a month or two ago... *sigh*) | 23:11 |
| → alvarezp joined | 23:11 |
|
Ilari
| newsham: Local branches of another repository are mirroed as remote tracking branches. | 23:11 |
|
| *mirrored | 23:11 |
| → d-snp joined | 23:12 |
|
Ilari
| newsham: Local branches are what you can check out. | 23:12 |
| dwmw2 → dwmw2_gone | 23:12 |
|
newsham
| ok, after I "git checkout origin/android-msm-2.6.29-donut" if I run "git branch" it says I am now on "* (no branch)" | 23:12 |
|
| is that normal? | 23:12 |
|
charon
| faq detached | 23:13 |
|
Gitbot
| charon: You are on a detached HEAD and might lose commits.. See http://git.or.cz/gitwiki/GitFaq#detached | 23:13 |
|
mugwump
| newsham: you want just 'git checkout android-msm-2.6.29-donut | 23:13 |
|
newsham
| it does look like I have the right code | 23:13 |
|
| mugwump: doesnt work.. I get an error | 23:13 |
|
mugwump
| assuming you're using git from next | 23:13 |
|
charon
| newsham: and run 'git checkout -b android-msm-2.6.29-donut origin/android-msm-2.6.29-donut' to get a local branch if you want to do work on it | 23:13 |
|
mugwump
| otherwise try git checkout -t origin/android... | 23:14 |
|
newsham
| I dont plan on doing local work right now | 23:14 |
|
charon
| mugwump: isn't that an unfair assumption :) | 23:14 |
|
mugwump
| charon: who runs ancient released versions? | 23:14 |
|
newsham
| I have no '-t' flag. (git version 1.5.4.3 under ubuntu) | 23:14 |
| ← qhoxie_ left | 23:15 |
|
mugwump
| ok. git checkout -b android-msm-2.6.29-donut --track origin/android-msm-2.6.29-donut | 23:15 |
|
gitster
| unreasonable assumption, especially when you know you are helping somebody who gets confused by being on detached HEAD. | 23:15 |
|
charon
| mugwump: true, but then who hasn't known the ins and outs of git since early 2005 or so :p | 23:15 |
|
mugwump
| heh... successful troll :-P | 23:16 |
|
charon
| on the plus side, we finally have a rare case of confusion about fetch and remotes with pull not involved at all :p | 23:16 |
|
doener
| *runs* | 23:16 |
|
mugwump
| newsham: you only really need that if you are planning on committing to the branch | 23:17 |
| → VVSiz_ joined | 23:17 |
|
newsham
| mugwump: not planning to.. but good to know. | 23:17 |
| → mrlemao joined | 23:17 |
|
charon
| newsham: you should also upgrade your git if at all possible | 23:17 |
|
gitster
| If newsham does not plan to work on the code (other than reading and building), it is perfectly fine to do "git checkout origin/android..." and say "make" or whatever the build procedure is. | 23:17 |
|
newsham
| so, are gits sharp edges an intentionally barrier to entry to prevent a flood of kernel questions? ;-) | 23:18 |
|
mugwump
| otherwise, yes the detached HEAD message is right | 23:18 |
| ← nighthwk1 left | 23:18 |
|
mugwump
| maybe that could be made less scary ... hmm | 23:18 |
|
gitster
| exactly what part of this experience are you referring to as "sharp edge"? | 23:18 |
|
newsham
| anyway, many thanks for getting me through this.. I need to go back and read docs about this stuff some more | 23:18 |
| ← mrlemao left | 23:19 |
|
mugwump
| newsham: no, they're there to get people to come ask questions because we like talking to you | 23:19 |
|
drizzd_
| spearce: you need to set LIB_HTTPD_PORT before you run lib-httpd.sh (otherwise it will set 8111 internally) | 23:19 |
|
newsham
| gitster: the process of trying to get a particular tagged version of the remote source tree | 23:19 |
|
spearce
| drizzd_: thanks | 23:20 |
|
drizzd_
| spearce: but I guess I will comment on it when you send it to the list | 23:20 |
|
charon
| newsham: tags are global of sorts though. origin/* is not a tag, but a representation of the _branches_ of the 'origin' repository. | 23:20 |
|
gitster
| newsham: meaning that the message you get when you run "checkout origin/android..." is unnecessary? | 23:21 |
| ← VVSiz left | 23:21 |
| ← sgh left | 23:21 |
|
newsham
| gitster: I had no idea about how to use "git checkout origin/..." in the first place | 23:21 |
|
moonin
| newsham: It's quite straightforward; anything that looks vaguely like a revsion can be checked out. The problem was that you were looking at the upstream server's list of branches, and git-clone adds "origin/" in front of those to avoid cluttering up your private list of branches. | 23:21 |
| ← onigiri left | 23:21 |
|
newsham
| "its quite straightforward [...] the problem was [...]" :) | 23:21 |
|
moonin
| The confusion was really about what "git clone" does rather than "git checkout". | 23:21 |
|
newsham
| that clarifies.. thank you. | 23:22 |
|
gitster
| newsham: that's a bit unfair use of the word "sharp edge", I guess. | 23:22 |
|
newsham
| I wouldnt go as far as to say "its straightforward". but it is definitely seeming more logical now. | 23:22 |
|
| gitster: I was trying to be a little tongue in cheek.. my apologies. | 23:22 |
|
mugwump
| trolling us eh ... what's the commands for p4 again? | 23:23 |
|
newsham
| but I have to be candid -- this does seem a bit more complex than many revision control systems I've used | 23:23 |
|
moonin
| newsham: The "-t" flag turns on some additional features for people *developing* on that branch. If you're not planning on adding any commits, -t is entirely superfluous. | 23:23 |
|
gitster
| no need to apologize. I am lurking to find true sharp edges, and occasional false positives are expected. | 23:23 |
| → niki joined | 23:23 |
|
newsham
| moonin: my cmd line version doesnt seem to support -t. Am I on an ancient rev? | 23:23 |
|
mugwump
| that should be --track | 23:23 |
|
doener
| moonin: additional features? It simply causes git to create a branch head | 23:23 |
|
gitster
| slightly older. What does "git version" say? | 23:23 |
|
doener
| moonin: at least in the "git checkout -t origin/foo" form | 23:24 |
|
newsham
| 1.5.4.3 | 23:24 |
|
moonin
| doener: Oh, doesn't it also record the trasking relationship in .git/config? | 23:24 |
|
charon
| on a completely unrelated note, hg-git worked very well for me so it seems we now have a free choice of hg/git frontend for hg/git repos | 23:24 |
|
gitster
| moderately older, then ;-) | 23:24 |
|
mugwump
| that's like 22 months old :) | 23:24 |
|
doener
| moonin: yeah, but that's the default if the starting point is a remote tracking branch anyway | 23:24 |
|
mugwump
| newsham: newer versions are worth it if only for the better docs | 23:25 |
|
doener
| moonin: i.e. "git checkout -b foo origin/foo" also does that (at least by default) | 23:25 |
|
gitster
| doener: if your git is new enough ;-) | 23:25 |
| ← Diapo left | 23:25 |
|
newsham
| thank you, I'll pull down a newer version. | 23:25 |
|
| mugwump prefers 'git checkout foo' for that ... yay it got in!! | 23:25 |
|
Myrth
| how to apply a .patch file on git copy? | 23:25 |
| ← warthog9 left | 23:25 |
|
Ilari
| Fortunately release of Lenny drastically reduced the frequency one would run into 1.4.4.4... | 23:25 |
|
Myrth
| i see that it's possible to apply from mail | 23:26 |
|
| git am | 23:26 |
|
newsham
| (this is what I got from apt-get on ubuntu 8.04.2, btw) | 23:26 |
|
mugwump
| Myrth, you can use git apply | 23:26 |
| ← rudi_s_ left | 23:26 |
|
mugwump
| newsham: yes, ubuntu stable | 23:26 |
|
Myrth
| that was simple :P | 23:26 |
|
doener
| gitster: yeah, but it's been a while since I saw someone with a git version older than 1.5.3 | 23:27 |
|
moonin
| Myrth: Or just "git apply". "am" is somewhat more automated and fills in a commit comment and does the commit. | 23:27 |
|
mugwump
| I'm running ubuntu unstable (karmic) and it has 1.6.3.3 | 23:27 |
|
moonin
| mugwump: Karmic indeed! Can you e-mail gitster a copy of the source so he can avoid having to do any development work for the next year? :-) | 23:28 |
| ← dsch04 left | 23:28 |
| ← hobodave left | 23:28 |
|
| mugwump missed the ojoke | 23:29 |
|
drizzd_
| spearce: t5551 usually passes, but sometimes I get FAIL 3 "-< Transfer-Encoding: chunked\n+< Content-Length 256" | 23:30 |
|
moonin
| Is there an easier way to get a diff between the staged versions of an unmerged index file than "for i in 1 2 3; do git show :$i:path/to/file.c > /tmp/$i; done; diff -u /tmp/[12]... | 23:30 |
| ← Theravadan left | 23:30 |
|
spearce
| drizzd_: whoa, both a transfer-encoding chunked and a content-length header from apache? | 23:30 |
| ← bremner_ left | 23:30 |
|
charon
| [00:08] <charon> moonin: git diff :2:foo :3:foo | 23:30 |
| → vinse joined | 23:30 |
|
drizzd_
| spearce: no, you're expecting chunked transfer-encoding, but you're not getting it | 23:31 |
|
moonin
| I'm really f*ing sick of conflict markers showing up in my diffs when I just want to see "what changed on side 1" and "what changed on side 2" of a merge... | 23:31 |
|
spearce
| oh, probably because its so small of a response. ok. | 23:31 |
|
mugwump
| moonin: see man git-mergetool | 23:31 |
|
Gitbot
| moonin: the git-mergetool manpage can be found at http://git.or.cz/man/git-mergetool | 23:31 |
|
| gitster is amazed by charon's example---how intuitive and straightforward for somebody who knew about "git show :$i:path/to/file" it is! | 23:31 |
|
moonin
| (I have a messy one with *lots* of conflict markers, so it's hard to read. | 23:31 |
| ← tbuehlmann left | 23:32 |
|
charon
| moonin: note that you can also 'git checkout --conflict=diff3 -- $file' to see the base version in the conflict hunks | 23:32 |
|
jonthefly
| so ive read through the git-hook man page, Im trying to create a hook that will get executed every time a git pull is performed. | 23:32 |
|
charon
| gitster: i was rather amazed that it worked, too ;) | 23:32 |
|
jonthefly
| there is post-merge, but this hook isnt executed if git-merge isnt called | 23:32 |
| → Theravadan joined | 23:33 |
|
gitster
| Please justify why 'echo "git pull ; .git/hooks/post-pull" >my-git-pull' is insufficient. | 23:33 |
| → cpg joined | 23:34 |
|
gitster
| By the way, today's 'pu' does not pass self-tests; pu~2 does, though. | 23:34 |
|
moonin
| charon: Now, how do I extend that to a git-style 3-way diff.... | 23:34 |
|
| After trying "git mergetool", I have a new problem: How do I get back the staged files after it "git add"ed the version with the conflict markers.... | 23:35 |
|
cpg
| hi! .... i am in a branch that is tracking a remote branch, and i am not sure how to pull things in ... here is the (unusually verbose) message i get from git ... http://www.fpaste.org/ujrY/ .... i want to bring in the latest in the head of the (remote) fedora-10 branch | 23:35 |
|
jonthefly
| id idnt know there was a post-pull :) | 23:35 |
|
| oh are you saying i should create a bash script? | 23:36 |
|
cpg
| but i don't really know exactly how ... (yes, i did read some tutorials, etc, but this part on handling remote branches i did not understand well) | 23:36 |
|
jonthefly
| I have users who are too retarded to remember a bash script | 23:36 |
|
| to remember to use it.... | 23:36 |
| → Dashkal joined | 23:36 |
|
jonthefly
| I want to ensure that when they git pull that a certain command gets executed, im actually thinking that maybe git-submodules is what i need to look into | 23:36 |
| ← newsham left | 23:37 |
|
charon
| moonin: well, you can apparently do 'git show :1:foo > foo; git diff-files --cc' | 23:38 |
|
| don't think you can restore the unmerged index without redoing the merge, though | 23:38 |
|
Ilari
| cpg: 'git pull origin fedora10' | 23:38 |
|
| cpg: (or whatever the branchname was). | 23:39 |
| → hobodave joined | 23:39 |
|
cpg
| Ilari: oh, thanks!! | 23:40 |
| ← nothingHappens left | 23:40 |
|
charon
| gitster: sadly 'git diff :1: :2:' doesn't work, as it doesn't refer to some virtual tree of all the stage-1 entries | 23:40 |
|
gitster
| The example was about :1:foo :2:foo wasn't it? | 23:41 |
|
charon
| yes, that was more a tangent along the lines of surprisingly intuitive features | 23:41 |
|
gitster
| My earlier comment was ":1:foo works in one place and naturally it works somewhere else". ";1:" itself consistently does not work anywhere ;-) | 23:41 |
|
charon
| true :) | 23:42 |
|
gitster
| s/work/mean anything/; | 23:42 |
| qrush|away → qrush | 23:42 |
|
moonin
| charon: That would be really nice. I compressed it with "git diff :{1,2}:path/to/conflicted/file.c", but what I was really hopig for was a | 23:44 |
|
| Myrth: "rm -rf *; mv .git/* .; git config <something magic>hopig for was a "git diff -c" style diff of all *three* versions. I find that a *lot* more legible than "diff3". | 23:45 |
| → Etherael joined | 23:46 |
|
Etherael
| is there a way to search the entire history of a git project for the existence of a specific file? | 23:46 |
|
charon
| moonin: as i said, you can get that by loading the stage 1 entries into the worktree first and using 'git diff-files --cc' | 23:47 |
|
moonin
| Etherael: Yup. "git log -- filename" will show every commit that modifies that file name, including deleting it. | 23:47 |
|
Etherael
| super, thanks | 23:47 |
|
charon
| moonin: there's 'git ls-files -u' to find the unmerged entries, if you want to script around it. | 23:48 |
|
moonin
| charon: *smacks head* D'oh! Yes, that's what I should have done. Move the conflict marker version aside, check out the :1: version, and diff-files will do what I want. | 23:48 |
|
| Kind of a kludge, but it'lll do. | 23:48 |
|
charon
| you don't need to move away the conflict marker version, 'git checkout --merge -- $file' will restore it. | 23:48 |
| ← ia left | 23:48 |
|
Etherael
| Hmmm. | 23:48 |
|
dbt
| is there a way to change the gitk presentation? | 23:48 |
|
Etherael
| wonder if that messes up msysgit, it dies whenever I do git log -- (anything goes here) | 23:49 |
|
moonin
| charon: Ah, thanks for the tip. I thought there was a way to do that, but couldn't think of it off-hand. | 23:49 |
|
cehteh
| mugwump: git submodule init should know --recursive too | 23:49 |
|
Etherael
| just silently does nothing | 23:49 |
|
charon
| Etherael: that means no commits modified the paths you specified | 23:49 |
|
moonin
| Etherael: Um, if there's nothing to list, it can spend a while searching history and producing nothing. Kind of like "grep -r string_not_found". I suspect it's working. | 23:49 |
|
charon
| in general, an empty 'git log <arguments>' means none of the commits in the current branch match the <arguments> | 23:49 |
|
Etherael
| charon: it just instantly fails | 23:50 |
|
| well | 23:50 |
| → ablemike joined | 23:50 |
|
Etherael
| maybe not fails | 23:50 |
|
| but if it's finding nothing, it's finding nothing awfully fast. | 23:50 |
|
moonin
| Etherael: How big is the project? | 23:50 |
|
Etherael
| moonin: 700mb | 23:50 |
|
charon
| Etherael: git is so blazingly fast that it indeed is frequently instantly, and silently, successful | 23:50 |
| ← patrikf left | 23:50 |
|
Ilari
| Etherael: 'git log -- <file>'? | 23:51 |
|
Etherael
| I can only make it do something with git log -- * which appears to be the same output as just git log | 23:51 |
|
moonin
| Etherael: I mean, how many commits? If it's less than a couplf of thousand, git will do it in less than a second. It takes 1.227 seconds elapsed for me to search the Linux tree. | 23:51 |
|
Etherael
| 1115 commits | 23:52 |
|
| (well, revisions, that's the same thing isn't it?) | 23:52 |
| ← Ryback_ left | 23:52 |
| → futoase joined | 23:52 |
|
Etherael
| but say for example I'm looking at a file in the root dir of the git repo that I can see is under version control | 23:53 |
|
moonin
| Etherael: Note that the "*" there probably doesn't do what you want. It's expanded to the current directory contents. | 23:53 |
| ← ablemike left | 23:53 |
| → marze joined | 23:53 |
| ← ereslibre left | 23:53 |
| → hugoxrosa joined | 23:53 |
|
Etherael
| ahh, ok, actually now it does appear to do stuff. | 23:53 |
|
Ilari
| Etherael: Execute commands in root of the repo. What commands run in subdirectory do depends on phase of the moon... | 23:53 |
|
Etherael
| all I have here is a filename, I don't know where it should actually sit within the directory hierarchy, is there a way to do real wildcards without them being expanded out by the shell? | 23:54 |
|
cpg
| hi all after pulling properly, i cannot push now ... http://paste.amahi.org/d636de4fb however, i am not sure why, as i knly did a cherry pick of a committ that was quite clean (a one liner) and i see no reason why ... -v does not help :( | 23:55 |
| → dunolie joined | 23:55 |
|
cpg
| any idea Ilari ? | 23:55 |
|
| Ilari: the repo is at http://git.amahi.org/?p=amahi.git;a=summary | 23:56 |
|
moonin
| Etherael: Ah, that's a bit tricker. I'm RTFMing to try to find an answer... | 23:57 |
|
Ilari
| cpg: 'git checkout fedora-10', 'git pull origin fedora-10', 'git push origin fedora-10'? | 23:57 |
|
Etherael
| moonin: Thanks! I'll race you ;) | 23:57 |
| ← futoase left | 23:58 |
|
charon
| Etherael: not sure it's even possible. i would try 'git log --oneline --name-status | less +/filename' if i had this problem. | 23:58 |
|
cpg
| hi Ilari - still fails ... i wonder if it's because we have a branch called fedora-10 and a label at the base of the branch also called fedora-10 | 23:59 |
|
| i had to do git co origin/fedora10 (otherwise the tag (not label) was picked up) | 23:59 |