| 2011-09-18 |
| → khaije|minder joined | 00:00 |
| ← vvsh left | 00:01 |
| → cybersphinx joined | 00:01 |
| → subbyyy joined | 00:02 |
| → Fudge joined | 00:02 |
| → janiczek joined | 00:04 |
| → lacrymol1gy joined | 00:04 |
| ← lacrymol1gy left | 00:04 |
| ← ludde left | 00:04 |
| → Targen joined | 00:05 |
| → unreal joined | 00:05 |
| ← the_cybersphinx left | 00:06 |
| → Samual joined | 00:06 |
| ← Cipher-0 left | 00:09 |
| ← janiczek left | 00:10 |
| ← kadoban left | 00:13 |
| ← bigkm left | 00:14 |
| → Yannick_Gagnon joined | 00:15 |
| ← field_it left | 00:16 |
| ← Yannick_Gagnon left | 00:17 |
| ← heppy left | 00:23 |
| → heppy joined | 00:23 |
| → maestrojed joined | 00:24 |
| ← berserkr1 left | 00:25 |
| → Ivoz joined | 00:26 |
| ← Ivoz left | 00:26 |
| → Ivoz joined | 00:26 |
| → tshauck joined | 00:27 |
| → Heimidal joined | 00:28 |
| → metcalfc joined | 00:31 |
| ← legumbre left | 00:32 |
| → legumbre joined | 00:33 |
| ← maestrojed left | 00:35 |
| ← metcalfc left | 00:39 |
| ← Heimidal left | 00:40 |
| → eletuchy joined | 00:41 |
| ← henriquev left | 00:43 |
| → mysphyt joined | 00:44 |
| ← pom left | 00:47 |
|
mysphyt
| Okay. I'm having brain problems, here. I've got four repos: working_a pushes to bare_a. bare_b is a clone of bare_a. working_b pulls from bare_b. I'm having problems getting changes in working_a all the way over to working_b. When I run git fetch on bare_b, it says "master -> FETCH_HEAD", but the most recent changes in bare_a aren't in git log. What am I missing? | 00:48 |
|
cbreak
| mysphyt: just make working_b pull from bare_a | 00:50 |
| ← Klif1980_ left | 00:51 |
|
cbreak
| after that you can push to bare_b | 00:51 |
|
| alternatively, reset after fetching | 00:51 |
|
mysphyt
| cbreak: Thanks. I knew there was a simple solution. I still feel like there's something important I'm not understanding. | 00:51 |
| ← wokkawokka1 left | 00:53 |
| ← tdebat left | 00:53 |
| → kadoban joined | 00:53 |
| → tdebat joined | 00:54 |
| ← pen_ left | 00:55 |
| ← ZapZ left | 00:57 |
| ← jbrokc left | 00:58 |
|
sitaram
| mysphyt: is there ever going to be a push sequence going the other way? (wb -> bb -> ba -> wa)? | 00:58 |
|
mysphyt
| sitaram: Nope. In fact, the whole reason for all of this is to get rid of wa and ba. | 01:00 |
|
sitaram
| oh ok | 01:00 |
|
mysphyt
| This is a web app. Working copies are the live files, bare repos are pushed to by my numerous working computers. I'm switching hosts, so I'm trying to get stuff across. Probably I'm making things too difficult. | 01:01 |
| → rbuck joined | 01:04 |
| → ZapZ_ joined | 01:04 |
| → frogonwheels joined | 01:05 |
| ← hsingh left | 01:05 |
| ← c00kiemon5ter left | 01:05 |
| ← thiago left | 01:05 |
| → guns joined | 01:05 |
| ← mandric left | 01:07 |
| ← tdebat left | 01:11 |
| → tdebat joined | 01:12 |
| → c00kiemon5ter joined | 01:12 |
| ← c00kiemon5ter left | 01:12 |
| → c00kiemon5ter joined | 01:12 |
| → mlncn joined | 01:12 |
| → JamesLeeds joined | 01:15 |
| ← sbell left | 01:15 |
| ← rendar left | 01:15 |
| ← mysphyt left | 01:18 |
| → maestrojed joined | 01:18 |
| ← rbuck left | 01:19 |
| ← AaronMT left | 01:21 |
| sythe-away → sythe | 01:23 |
| → kodie__ joined | 01:23 |
| ← kodie left | 01:24 |
| Spyraway → Spyro | 01:24 |
| → blaenk joined | 01:27 |
| → bolden joined | 01:30 |
| ← JamesLeeds left | 01:31 |
| ← chrisf_ left | 01:31 |
| → eigenburak joined | 01:31 |
| ← kadoban left | 01:33 |
| ← tshauck left | 01:33 |
| ← SimonNa left | 01:35 |
| → Weiss joined | 01:37 |
| → albel727 joined | 01:37 |
| ← JasCo left | 01:37 |
| → bigkm joined | 01:38 |
| ← p3rror left | 01:42 |
| ← avsej left | 01:42 |
| ← notbrent left | 01:42 |
| ← maestrojed left | 01:43 |
| ← brian_g left | 01:47 |
| ← normanrichards left | 01:49 |
| ← warthog9 left | 01:51 |
| → SimonNa joined | 01:52 |
| ← sh_sh left | 01:52 |
| → warthog9 joined | 01:53 |
| → notbrent joined | 01:54 |
| → avsej joined | 01:55 |
| → chrisf_ joined | 01:56 |
| ← gusnan left | 02:01 |
| → normanrichards joined | 02:01 |
| ← notbrent left | 02:01 |
| ← bitkiller left | 02:02 |
| → ISF joined | 02:03 |
| ← mattdipasquale left | 02:04 |
| ← eletuchy left | 02:06 |
| → envi joined | 02:06 |
| ← warthog9 left | 02:08 |
| → akosikeno joined | 02:08 |
| → gnufied joined | 02:10 |
| ← SimonNa left | 02:10 |
| ← fisted left | 02:13 |
| ← gnufied left | 02:15 |
| ← chuck left | 02:15 |
| → chuck joined | 02:16 |
| → fisted joined | 02:17 |
| ← eigenburak left | 02:18 |
| ← bigkm left | 02:23 |
| → roue joined | 02:27 |
|
roue
| hola | 02:27 |
|
| I'm trying to download a particular release of linux from github via the git command line. "git clone https://github.com/torvalds/linux.git" seems like it's getting me the latest patches, but how do I request the last stable release (3.0.4)? thanks. | 02:28 |
| ← Ivoz left | 02:30 |
| → dexter_e joined | 02:30 |
|
cirwin
| once you've downloaded it, "git tag" will give you the list of tags; and then "git checkout <tagname>" will give you that version | 02:30 |
|
roue
| cirwin thanks much. | 02:31 |
| ← Nedly left | 02:31 |
| → tos9 joined | 02:32 |
|
tos9
| Anyone have a tip on why this is happening? http://paste.pound-python.org/show/12677/ | 02:32 |
|
roue
| cirwin - oddness here. Git tag shows 3.0, then 3.0-rc1,2,3,4,5... but no 3.0.4 . Maybe I'm not understanding how these releases work. | 02:32 |
|
tos9
| (changing to dirty doesn't ignore either) | 02:32 |
|
cirwin
| roue: in that case you'll have to ask someone who knows something about linux.git | 02:33 |
| ← tureba left | 02:33 |
| → soulcake joined | 02:34 |
|
rue
| I just see 3.0 and 3.1 | 02:35 |
| ← mlncn left | 02:36 |
| → henriquev joined | 02:39 |
| ← sythe left | 02:39 |
| → nadavoid joined | 02:43 |
| ← chrisf_ left | 02:44 |
| → Ivoz joined | 02:46 |
| ← Ivoz left | 02:46 |
| → Ivoz joined | 02:46 |
|
cybersphinx
| roue: The stable kernels are in a different repo, git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-3.0.y.git for 3.0.x (don't know if/where a non-kernel.org repo is). | 02:47 |
| ← Weiss left | 02:47 |
| → sythe joined | 02:49 |
| → bburhans joined | 02:50 |
| → mattdipasquale joined | 02:52 |
| ← Chillance left | 02:53 |
| ← dexter_e left | 02:53 |
| → tureba joined | 02:55 |
| ← Targen left | 02:55 |
| ← ISF left | 02:56 |
| → warthog9 joined | 02:57 |
| → Weiss joined | 02:59 |
| → dexter_e joined | 03:00 |
| ← tureba left | 03:02 |
|
roue
| cybersphinx thanks for the pointer. | 03:03 |
| ← bolden left | 03:04 |
|
roue
| cybersphinx unfortunately kernel.org is out of commission for now (and the reason I'm looking at github...) | 03:04 |
|
cybersphinx
| http://thread.gmane.org/gmane.linux.kernel/1192147/focus=1192152 sounds like there is no other repo. | 03:08 |
| → ISF joined | 03:10 |
| → ericbarnes joined | 03:10 |
| → tureba joined | 03:11 |
| ← kodie__ left | 03:12 |
| → kodie joined | 03:12 |
| ← dexter_e left | 03:15 |
| ← tureba left | 03:15 |
| ← Bass10 left | 03:17 |
| → tureba joined | 03:21 |
| → kvanderw joined | 03:21 |
| ← tureba left | 03:27 |
| ← kukks left | 03:28 |
| → cjs joined | 03:28 |
| → haydenmuhl joined | 03:30 |
| ← kvanderw left | 03:30 |
| → kvanderw joined | 03:31 |
| ← ericbarnes left | 03:32 |
| → tureba joined | 03:35 |
| muneeb → muneeb|aft | 03:35 |
| ← muneeb|aft left | 03:36 |
| → alester joined | 03:38 |
| → infid joined | 03:39 |
| ← tureba left | 03:42 |
| ← nadavoid left | 03:45 |
| → tureba joined | 03:46 |
| → nadavoid joined | 03:47 |
| ← madewokherd left | 03:48 |
| ← guns left | 03:48 |
|
EugeneKay
| linux kernel? Linus registered on github and put it up, last I saw.... | 03:49 |
| ← akosikeno left | 03:50 |
| ← gbacon left | 03:51 |
| ← juvenal left | 03:51 |
| ← soulcake left | 03:51 |
| → akosikeno joined | 03:52 |
| ← bonhoffer left | 03:52 |
| ← tureba left | 03:53 |
| → guns joined | 03:54 |
| → gnufied1 joined | 03:55 |
| ← caseymcg left | 03:56 |
| ← ISF left | 03:56 |
| ← heppy left | 03:59 |
| → macmartine joined | 03:59 |
| ← guns left | 04:01 |
| → tureba joined | 04:03 |
| → n8o-mba joined | 04:03 |
| → metcalfc joined | 04:08 |
| ← tureba left | 04:08 |
| ← cakehero left | 04:09 |
| → tureba joined | 04:10 |
| ← gnufied1 left | 04:11 |
| → dexter_e joined | 04:12 |
| → cytrinox_ joined | 04:13 |
| → heppy joined | 04:13 |
| → gnufied joined | 04:14 |
| ← cytrinox left | 04:16 |
| cytrinox_ → cytrinox | 04:16 |
| ← tureba left | 04:17 |
| → dfr|mac joined | 04:19 |
| Tac_Home → atdiehm_home | 04:19 |
| → tureba joined | 04:21 |
| ← macmartine left | 04:22 |
| ← mattdipasquale left | 04:23 |
| → RichardBronosky joined | 04:23 |
| ← qian left | 04:23 |
| ← subbyyy left | 04:24 |
| → randomubuntuguy joined | 04:24 |
| → subbyyy joined | 04:25 |
| → mattdipasquale joined | 04:26 |
| ← dexter_e left | 04:26 |
| ← dfr|mac left | 04:30 |
| ← randomubuntuguy left | 04:33 |
| ← gnufied left | 04:34 |
| → gnufied joined | 04:36 |
| → w09x joined | 04:37 |
| ← larie left | 04:39 |
| ← w09x left | 04:39 |
| → pharvey joined | 04:40 |
| → kennethreitz joined | 04:42 |
| ← ZapZ_ left | 04:42 |
| → topeak joined | 04:43 |
| → mlncn-agaric joined | 04:46 |
| ← sivy left | 04:49 |
| → sivy joined | 04:50 |
| EugeneKay → EugeneKaway | 04:50 |
| → Coriolan joined | 04:53 |
| ← alester left | 04:54 |
| → wolftankk joined | 04:54 |
| ← sivy left | 04:55 |
| → iband joined | 04:56 |
| → aminpy joined | 04:57 |
| ← Coriolan left | 05:00 |
| → cakehero joined | 05:01 |
| → macmartine joined | 05:03 |
| → Coriolan joined | 05:07 |
| → dexter_e joined | 05:07 |
| ← gretch left | 05:09 |
| ← gnufied left | 05:09 |
| ← n8o-mba left | 05:10 |
| ← miguet left | 05:11 |
| → bolden joined | 05:12 |
| → kingfishr joined | 05:13 |
| → abec0 joined | 05:13 |
| → Nedly joined | 05:14 |
| ← tureba left | 05:15 |
| → vmil86 joined | 05:15 |
| ← nadavoid left | 05:17 |
| → tureba joined | 05:18 |
| ← asakura left | 05:19 |
| ← subbyyy left | 05:19 |
| ← rane_ left | 05:19 |
| → asakura joined | 05:22 |
| ← aalex left | 05:24 |
| ← johnkpaul left | 05:25 |
| → syphar joined | 05:26 |
| → rchavik joined | 05:27 |
| ← rchavik left | 05:27 |
| → rchavik joined | 05:27 |
| ← madprops left | 05:32 |
| → LouisJB joined | 05:33 |
| ← Error404NotFound left | 05:34 |
| → gretch joined | 05:37 |
| → dmac joined | 05:40 |
| → jwpeddle joined | 05:41 |
| ← LouisJB left | 05:41 |
| → harsh joined | 05:42 |
| ← toobluesc left | 05:42 |
| → madsy joined | 05:42 |
| ← madsy left | 05:42 |
| → madsy joined | 05:42 |
| → toobluesc joined | 05:42 |
| → notbrent joined | 05:42 |
|
jwpeddle
| ok what am I missing? I have a submodule in directory foo, git status tells me nothing is awry. I run git status later and it tells me that "modified: foo (untracked content)". How could my submodule dir be "untracked content"? | 05:43 |
|
| oh, I should have run git status inside the submodule. d'oh | 05:45 |
|
| Now I see the problem | 05:45 |
| ← kvanderw left | 05:45 |
| ← macmartine left | 05:47 |
| ← madsy left | 05:49 |
| ← cakehero left | 05:49 |
| → jmah joined | 05:50 |
| → madsy joined | 05:51 |
| ← madsy left | 05:51 |
| → madsy joined | 05:51 |
| ← sythe left | 05:52 |
| ← metcalfc left | 05:52 |
| ← kingfishr left | 05:53 |
| → m4dc0d3r joined | 05:56 |
| → Jon47 joined | 05:57 |
| → flavius joined | 05:57 |
| ← m4dc0d3r_ left | 05:57 |
| → kingfishr joined | 05:59 |
| → jonshea joined | 06:00 |
| ← Ivoz left | 06:00 |
| → Cromulent joined | 06:01 |
| ← Jon47 left | 06:01 |
| → shiba_yu36 joined | 06:02 |
| → ZapZ joined | 06:03 |
| ← ehsan left | 06:03 |
| ← chuck left | 06:04 |
| ← blaenk left | 06:04 |
| ← Coriolan left | 06:04 |
| → chuck joined | 06:06 |
| → caseymcg joined | 06:07 |
| → ManDay joined | 06:08 |
|
ManDay
| Can someone recomment a tutorial for Git which covers things like branching, what tracking is, origins etc.? | 06:09 |
| ← orafu left | 06:09 |
| ← wolftankk left | 06:09 |
|
selckin
| google will gladly direct you to a million of those | 06:10 |
| → towski joined | 06:10 |
|
ManDay
| google is pretty bad at making recommendations | 06:10 |
|
| but I guess you knew that and just had the urge to say *something* | 06:10 |
| → orafu joined | 06:11 |
|
tango_
| ManDay: pro-git | 06:12 |
|
ManDay
| thanks tango_ | 06:12 |
| ← mastro left | 06:13 |
|
sitaram
| ManDay: not precisely what you asked but http://sitaramc.github.com/gcs/ may help also | 06:15 |
|
| *I wrote it recently and would like opinions) | 06:15 |
| ← dmac left | 06:15 |
|
ManDay
| sitaram: Thanks. I will try to review it but now I've started with pro-git and it looks good. I'll make it my second choise :) | 06:16 |
| ← segher left | 06:16 |
|
ManDay
| sitaram: from the index it looks like a tutorial which is not bottom up | 06:17 |
|
| I'll surely read it later then. | 06:17 |
|
| I guess it offers more detail | 06:17 |
| ← urbanmonk left | 06:18 |
| → dfr|mac joined | 06:19 |
| ← heppy left | 06:19 |
| ← adamm left | 06:19 |
|
ManDay
| sitaram: actually, I'll try yours first now. It looks a little more condensed, probably just what I need. | 06:19 |
| ← hyperair left | 06:19 |
| → jimmy1980 joined | 06:20 |
| → ReekenX joined | 06:20 |
| → hyperair joined | 06:21 |
|
sitaram
| ManDay: prog-git is a book, this URL I gave is one article, and mostly pictures. pro-git also will teach you commands and options, this URL is only concepts but might help understand everything else much easier | 06:22 |
|
ManDay
| sitaram: in this picture here: http://sitaramc.github.com/gcs/images/fig0009 | 06:23 |
|
| It would be interesting to be told what happens if you do a commit on the abandoned_branch | 06:23 |
|
| (I guess I know the answer but it would probabaly be more interesting than a commit on master) | 06:24 |
| → segher joined | 06:24 |
|
sitaram
| ManDay: yes but that would require knowing how to *get* to the abandoned branch. Anyway see later for the part on detached HEAD | 06:24 |
|
| oh sorry | 06:24 |
|
| wrong answer; I forgot I had a *name* there | 06:24 |
|
| well nothing really unsurprising happens; it just grows from there... (from commit 3) | 06:25 |
|
ManDay
| yes | 06:25 |
|
| sitaram: yes, I know, yet it would erphaps be more telling to let that branch grow rather than master (or both) | 06:25 |
|
tos9
| Anyone have a tip on why this is happening? http://paste.pound-python.org/show/12677/ | 06:26 |
| → heppy joined | 06:26 |
|
sitaram
| ManDay: what would be more useful is to simply repeat fig0005 because it already shows a non-leaf node having a branch name | 06:27 |
| ← atdiehm_home left | 06:28 |
| → chrisf_ joined | 06:28 |
| ← harsh left | 06:30 |
|
jmah
| tos9: what's unexpected about it? | 06:31 |
| → Tac_Home joined | 06:31 |
|
tos9
| It's marking a submodule as dirty even though I have it ignored | 06:32 |
|
| Or am I making an error? | 06:32 |
| → maestrojed joined | 06:32 |
| → Ivoz joined | 06:33 |
| ← Ivoz left | 06:33 |
| → Ivoz joined | 06:33 |
| → tewecske joined | 06:33 |
|
ManDay
| sitaram: You know where you come to speak of the "really *really* important point"... | 06:34 |
|
jmah
| tos9: it should ignore untracked files in the submodule, but not different commits | 06:34 |
|
| maybe you can ignore = all | 06:34 |
|
tos9
| jmah: I'll try that. Thanks. | 06:35 |
| ← trevorgreen_ left | 06:37 |
|
tos9
| Yup that did it. Thank you. | 06:37 |
| → trevorgreen_ joined | 06:38 |
| ← heppy left | 06:39 |
| ← Swimming_Bird left | 06:42 |
| ← maestrojed left | 06:42 |
| → defendguin joined | 06:43 |
|
defendguin
| using git how can i look at the difference between a file from last week and a file from today? | 06:44 |
|
cirwin
| git diff "master@{1 week}" -- <file> | 06:44 |
| ← kingfishr left | 06:45 |
| → kingfishr joined | 06:45 |
|
kevlarman
| cirwin: that produces slightly unexpected results | 06:45 |
|
Ivoz
| tos9: vim-pathogen seems to be a lot simpler than that | 06:45 |
|
sitaram
| ManDay: ...yes? | 06:45 |
|
tos9
| Ivoz: how so? With pathogen you have a submodule to manually manage for each of your plugins, rather than managing none of them (and just hiding one for OCD's sake :) | 06:46 |
|
cirwin
| kevlarman: if you want more help, you'll have to be more specific about the unexpectedness | 06:46 |
|
kevlarman
| cirwin: you shouldn't advise people to use that | 06:46 |
|
cirwin
| why not? | 06:47 |
| → whitman joined | 06:47 |
| ← tewecske left | 06:48 |
|
kevlarman
| e.g. you didn't pull for a month, then you pull, and immediately look up master@{1 week ago}, you get a 1 month old commit | 06:48 |
|
ManDay
| sitaram: well it does not become quite clear *what* is actually so important about it. in the concluding sentence you even remain a bit vague | 06:49 |
|
| sitaram: over all your tut is a good introduction to the concepts of distributed vcs | 06:49 |
|
cirwin
| kevlarman: how would you do it more robustly? | 06:49 |
|
kevlarman
| cirwin: don't use the reflog | 06:49 |
|
cirwin
| what does git log --after use? | 06:50 |
|
kevlarman
| not the reflog | 06:50 |
|
| that would do it | 06:50 |
|
sitaram
| ManDay: maybe it needs more emphasis but the words are there. (People from Hg don't get this part at all, since Hg encodes the branch name inside the commit so it matters where it came from!) | 06:50 |
|
cirwin
| git diff $(git rev-list --after="1 week" --reverse -1) -- <file> | 06:50 |
|
| a little verbose perhaps | 06:50 |
| → tewecske joined | 06:50 |
| → nicoulaj joined | 06:51 |
| → dSebastien joined | 06:52 |
|
cirwin
| and you can't combine --reverse and -1 :( | 06:52 |
|
kevlarman
| uh | 06:52 |
|
lorenl
| does git have any mechanism to stash away changes without a commit so I can do things like change to another branch to apply a fix? | 06:52 |
|
kevlarman
| yes you can | 06:52 |
|
| i do it all the time | 06:52 |
|
| lorenl: it's named git stash | 06:52 |
|
DrNick
| lorenl: yes. git calls it the "stash" | 06:52 |
|
cirwin
| kevlarman: for me it gives the same 1 as the non-reversed version | 06:52 |
|
sitaram
| ManDay: I'll be back in about an hour; sorry... | 06:52 |
|
ManDay
| np | 06:52 |
|
Ivoz
| tos9: Actually, read it a bit more... didn't see that it's pulling plugins from git automatically. That's pretty cool | 06:53 |
|
tos9
| Ivoz: Yep. The only module you touch is vundles the first time you clone it and then leave it to manage itself too. | 06:54 |
|
cirwin
| http://dpaste.org/8eXOi/ ^^ kevlarman ? | 06:54 |
| ← dfr|mac left | 06:58 |
| → dr_lepper joined | 06:58 |
| ← dr_lepper left | 06:58 |
| → dr_lepper joined | 06:58 |
|
kevlarman
| cirwin: weird | 06:59 |
|
| same here | 06:59 |
| → harsh joined | 07:00 |
|
kevlarman
| i swear i've seen it work though | 07:00 |
|
cirwin
| maybe it was broken recently, I'm on current git.git master | 07:00 |
| → robotmay joined | 07:00 |
| → werdan7 joined | 07:03 |
| → drizzd joined | 07:05 |
| ← jwpeddle left | 07:05 |
| syphar → syphar|away | 07:05 |
| ← d0k left | 07:06 |
|
lorenl
| what's the best way to compare two distinct git repositories? Should I first add the other one as a remote? | 07:08 |
|
cirwin
| lorenl: that's what I'd do | 07:09 |
|
| then it's just a case of comparing stuff within one git repository, which is easier | 07:09 |
| → Daniel0108 joined | 07:09 |
| ← Daniel0108 left | 07:09 |
| → Daniel0108 joined | 07:09 |
| ← henriquev left | 07:16 |
| ← chrisf_ left | 07:16 |
| ← ManDay left | 07:19 |
| ← shiba_yu36 left | 07:19 |
| ← nyuszika7h left | 07:20 |
| ← mlncn-agaric left | 07:22 |
| ← kingfishr left | 07:25 |
| ← dr_lepper left | 07:27 |
| → kingfishr joined | 07:31 |
| ← harsh left | 07:36 |
| → nd___ joined | 07:37 |
| → ManDay joined | 07:38 |
|
ManDay
| Which manpage describes the syntax/notation used to describe commits or ranges thereof? | 07:39 |
|
cirwin
| man gitrevisions | 07:39 |
| ← dim_ left | 07:39 |
| ← nd__ left | 07:40 |
|
ManDay
| very good! | 07:40 |
|
| thanks cirwin | 07:40 |
|
cirwin
| np | 07:40 |
| ← cirwin left | 07:42 |
| → gnufied joined | 07:44 |
| ← bolden left | 07:45 |
| ← haydenmuhl left | 07:45 |
| → Squarism joined | 07:46 |
| ← kmc left | 07:46 |
| → johnkpaul joined | 07:46 |
| ← gnufied left | 07:46 |
| ← Cromulent left | 07:47 |
| ← topeak left | 07:49 |
| → kmc joined | 07:49 |
| → shiba_yu36 joined | 07:50 |
| ← johnkpaul left | 07:51 |
| ← towski left | 07:51 |
| → chrisf_ joined | 07:51 |
| → jutaro joined | 07:53 |
| → topeak joined | 07:53 |
| ← LiohAu left | 07:54 |
| → soc42 joined | 07:55 |
| ← shiba_yu36 left | 07:55 |
| → dvaske joined | 07:58 |
| → workmad3 joined | 07:59 |
| ← ManDay left | 08:00 |
| ← bgerber left | 08:03 |
| → stodan joined | 08:04 |
| ← pharvey left | 08:06 |
| → bgerber joined | 08:06 |
| → tobago joined | 08:07 |
| ← cjs left | 08:09 |
| ← bgerber left | 08:11 |
| ← makubi left | 08:13 |
| → makubi joined | 08:13 |
| ← zamabe left | 08:13 |
| ← flavius left | 08:13 |
| → ManDay joined | 08:14 |
| → airborn joined | 08:14 |
| ← Squarism left | 08:15 |
| ← tewecske left | 08:17 |
|
ManDay
| Guys imagine the following situation: A repository with a complicated history. I want to rewrite the history in a manner that the result are MULTIPLE repositories which do not share history. Example: Let the directories be named with letters according to depth in the tree, postfixed with numbers to distinguish them within one parent. The new repositories shall be: | 08:18 |
|
| First repository: A (the original root of the original repository), but without A/B1/C1...C5 (the history and everything associated to those contents of B1 shall not be in the history of the first repository). | 08:18 |
|
| Second repository: A/B1/C1 (the stuff which has been excluded from the first repository). Of course, only the history relevant to that C1 shall be recorded. | 08:18 |
|
| Third repository: A/B1/C2. And so forth. | 08:18 |
| ← ManDay left | 08:18 |
| → ManDay joined | 08:19 |
|
ManDay
| Guys imagine the following situation: A repository with a complicated history. I want to rewrite the history in a manner that the result are MULTIPLE repositories which do not share history. Example: Let the directories be named with letters according to depth in the tree, postfixed with numbers to distinguish them within one parent. The new repositories shall be: | 08:19 |
|
| First repository: A (the original root of the original repository), but without A/B1/C1...C5 (the history and everything associated to those contents of B1 shall not be in the history of the first repository). | 08:19 |
|
| Second repository: A/B1/C1 (the stuff which has been excluded from the first repository). Of course, only the history relevant to that C1 shall be recorded. | 08:19 |
|
| Third repository: A/B1/C2. And so forth. | 08:19 |
|
| Is there anything besides filter-branch that I would need to untangle the history based upon directories, so that each respective repository has no more notion of those other directories and history thereof? | 08:19 |
| → thiago joined | 08:20 |
| ← robotmay left | 08:27 |
| → miguet joined | 08:29 |
|
ManDay
| ping? | 08:30 |
| → bgerber joined | 08:30 |
|
thiago
| who are you pinging? | 08:30 |
|
ManDay
| anyone. i have problems with the atheros card i thought i was disconned | 08:31 |
|
| since obviously someone must have had replied by now :P | 08:31 |
| syphar|away → syphar | 08:34 |
| ← m4dc0d3r left | 08:35 |
|
sitaram
| ManDay: I think filter-branch is the only thing that you need. Unless there are lots of renames crossing your new boundaries, it should even be fairly easy | 08:36 |
| → j416 joined | 08:36 |
| ← warthog9 left | 08:36 |
| ← syphar left | 08:36 |
| → warthog9 joined | 08:37 |
| ← drev1 left | 08:37 |
| ← caseymcg left | 08:38 |
|
ManDay
| sitaram: Thank you, gives me confidence I can do it :) | 08:38 |
| → awallin joined | 08:39 |
| ← drizzd left | 08:41 |
| → mlncn joined | 08:42 |
|
sitaram
| ManDay: gfb (short for git-filter-branch) is picky about its arguments, and you should read the entire manpage before trying it | 08:43 |
|
| for example, what happens to tags in your case you need to decide... | 08:43 |
|
| you also need to decide if the repo containing A/B1/C2 should have A and A/B1 etc or simply start at the contents of C2 | 08:43 |
|
| expect to spend some time, dont panic and it will all work out | 08:44 |
|
| anyway its git... clone it somewhere and work on that if you like | 08:44 |
| → shiba_yu36 joined | 08:45 |
|
ManDay
| sitaram: Yes, I planned to be thorough with it | 08:45 |
|
| Thanks for the heads up | 08:45 |
| → Lemon|mbp joined | 08:46 |
|
sitaram
| you're welcome! | 08:46 |
|
ManDay
| I've a questing regarding mv - how does GIT figure out that I moved a file if I do so with my systems mv? How does Git distinguish between one of the files being deleted and the other created and the rename, if I don't explicitly let git handle it with git-mv? | 08:47 |
|
thiago
| ManDay: it compares the contents | 08:47 |
|
sitaram
| ManDay: even the so-called explicit command is just a convenience front; internally it's the same as a separate add and rm | 08:47 |
|
thiago
| ManDay: if it's exactly the same or similar, it concludes it's a move | 08:47 |
|
ManDay
| Aha. So after all the semantics aren't meant to matter to GIT at all - it just seeks the most efficient way to track the changes, is that right? | 08:48 |
|
| (the changes in the tree) | 08:48 |
|
soc42
| hi #git | 08:49 |
|
ManDay
| In other words: One may assume that no renames take place. It is only that *if* I actually renamed a file it is likely that GIT's preferred way of tracking the changes is saving the change as a rename, but still semantically presenting it as a delete and a create. | 08:49 |
|
sitaram
| ManDay: "saving the change as a rename" does not occur in git | 08:50 |
| → d3vic3 joined | 08:50 |
|
ManDay
| sitaram: It does not save the changes as a complete diff (meaning saving the content of the file which is "created") | 08:51 |
|
sitaram
| ManDay: look at it like this. "git mv a b" results in an *identical* git repo to "cp a b; git rm a; git add b" | 08:51 |
|
ManDay
| sitaram: Yes I know. | 08:51 |
| ← d3vic3 left | 08:51 |
| → d3vic3 joined | 08:51 |
|
sitaram
| ManDay: since a and ba have the same *content* they have the same SHA, so no diffing happens. A SHA changes in the tree object that's all | 08:52 |
|
ManDay
| I just meant: One can not rely on GIT faithfully representing the semantics of history (if I actually delete and create a file, instead of renaming the former, Git will store it as a rename) - so one may equally say GIT has only one semantic presentation of the change, though it has several means to save it. | 08:52 |
|
sitaram
| excuse me, a filename changes in the tree object | 08:52 |
|
thiago
| if you delete and re-add a different file with the same name, Git may not realise it's a new file either | 08:53 |
|
ManDay
| thiago: Yes. But I spoke of deleting one file, creating another with the same contents and a different name. | 08:53 |
|
thiago
| by the same token, if you modify a file too much, Git may conclude it is a rewrite | 08:53 |
|
ManDay
| Git will "falsely" take it as a rename. | 08:53 |
|
| thiago: Yes. We are clear on what happens. | 08:53 |
|
| I just wanted to stress that from the user perspective there is no reliable way to distinguish between renames and creating in the history, hence one should assume there is only one of them (necessarily the delete-and-create-type of change) | 08:54 |
| → mabrand joined | 08:55 |
| → gnufied joined | 08:56 |
| ← mabrand left | 08:56 |
| → mabrand joined | 08:57 |
| ← mabrand left | 08:57 |
| → Chib joined | 08:57 |
|
wereHamster
| ManDay: git tracks content, not files. If you delete one file and create another one with the same content, it's move (rename) from gits perspective. The content moved from one file to another | 08:57 |
| → Vile joined | 08:57 |
|
sitaram
| ManDay: you are right there is only one way git looks at it, but I dont see why the user should care that it is not being recorded as 2 separate activities | 08:58 |
| ← topeak left | 08:58 |
|
ManDay
| wereHamster: I don't grasp that. | 08:59 |
|
| wereHamster: What does "tracking contents" mean, if not "tracking contents of files"? | 09:00 |
|
wereHamster
| ManDay: contents of files | 09:00 |
|
ManDay
| Sounds like a motto - not really technical | 09:00 |
|
wereHamster
| you said: 'One can not rely on GIT faithfully representing the semantics of history'. What do you mean by 'semantics of history'? | 09:00 |
|
ManDay
| wereHamster: That's what I meant by two technical means to track. | 09:00 |
|
| wereHamster: Okay, let me elaborate again: | 09:01 |
|
wereHamster
| I didn't follow the conversation too much, I just got up | 09:01 |
| → _aeris_ joined | 09:01 |
| → jigal joined | 09:03 |
|
wereHamster
| git does not even tracks 'delete' and 'create' if you want to be strict. Git only tracks: the tree looked like this in commit A, and like this in commit B. Git then infers the changes by comparing the two trees | 09:04 |
| → m4dc0d3r joined | 09:04 |
|
sitaram
| ManDay: you MUST google for and read 'git from the bottom up' -- you won't regret it, I promise | 09:04 |
|
wereHamster
| it does not track changes. it tracks states (trees) | 09:04 |
|
ManDay
| I say that GIT has two technichal way to track the changes: One is patch'ing the changes between two commits of one file and the other is moving the file (and possibly additionaly patching it). It employs those means in the most efficient way. Meaning if the "distance" (as in levenshtein distance) between two commits is smaller with either of that methods, it will take that method to track the change. One | 09:05 |
|
| may plausibly called a "rename", the other an "edit". However, the method which it chooses does not directly relate to the semantics of the change, as the user did it - meaning depending on the exact structure of the change an "edit" might be tracked as a "rename" and vice versa. Hence I say the user shall not rely on GIT faithfully restoring the semantics and should generally assume that GIT tracks the | 09:05 |
|
| changes by the "patch"/"edit" method and only internally chooses the most efficient way to store that change. | 09:05 |
| → apocalyptiq joined | 09:05 |
|
ManDay
| Do you agree with that sitaram wereHamster ? | 09:05 |
|
wereHamster
| ManDay: as I said before, git does not track changes. What you described could be seen as two possible means to *display* changes between two trees | 09:06 |
|
| and assuming that, yes, I think it's an acurate description.. | 09:07 |
| → nazgul101 joined | 09:07 |
| ← kingfishr left | 09:07 |
|
wereHamster
| ManDay: practical question: when would the user prefer to record a rename not as a rename but as an delete/add? | 09:08 |
| → harsh joined | 09:09 |
|
ManDay
| wereHamster: The user musnt care. | 09:11 |
|
sitaram
| ManDay: I dont quite agree. The object *model* is of complete objects. The delta, Lev distance, and such is implementation and quite irrelevant to the concepts a git user needs | 09:11 |
|
ManDay
| He should assume that everything is recorded as a delete/add, to make it easy for himself to reason. | 09:11 |
| → Squarism joined | 09:11 |
|
sitaram
| ManDay: they only become factors when running say 'git repack' with custom window/depth, otherwise no | 09:11 |
| ← Daniel0108 left | 09:12 |
|
wereHamster
| ManDay: easy, use -M100% in git commands | 09:13 |
|
| then git won't display any renames | 09:13 |
|
| and -C100% | 09:13 |
|
ManDay
| wereHamster: ? | 09:14 |
| ← asakura left | 09:14 |
|
ManDay
| To which command? | 09:14 |
|
wereHamster
| actually, log doesn't display renames by default, you have to enable rename detection with -M | 09:15 |
|
ManDay
| wereHamster: So what is the advantage for the user two distinguish between renamed and add/deleted? | 09:16 |
|
| s/two/too | 09:16 |
|
| s/too/to | 09:16 |
| → asakura joined | 09:17 |
| ← f0i left | 09:17 |
|
wereHamster
| less cognitive load when reviewing code. If I see a rename, I don't have to review the code, if I see an add and delete, I have to review the whole added file. | 09:17 |
|
ManDay
| True. | 09:18 |
| iband → iband|away | 09:20 |
|
wereHamster
| ManDay: if you say that the user mustn't care about rename vs add/delete. The SCM has to choose one representation. Which one should it use? | 09:22 |
| → ouah joined | 09:23 |
|
wereHamster
| and it has to choose one way to store it in history. Which one should it use there? | 09:23 |
| → Rvl joined | 09:23 |
| ← workmad3 left | 09:24 |
|
ManDay
| wereHamster: I did just elaborate on that! | 09:24 |
|
| I said the SCM uses the *technical* representation which is most efficient. | 09:24 |
|
jigal
| hell can i get some help with this error : jigal@jigal-laptop:/var/www/nrka3$ git commit -a Error reading /home/jigal/.nano_history: Permission denied | 09:24 |
|
ManDay
| Which for an ordinary rename is a rename and for a normal delete/add is a delete/add. wereHamster | 09:24 |
|
| However, if you perform a delete/add which resembles a rename, it will choose a rename. | 09:25 |
|
| And if you rename and edit the file a lot, it will choose a delete/add. | 09:25 |
|
wereHamster
| ManDay: let's not debate what is technically more efficient. Because renames in git, even if not stored as such, are pretty damn efficient. | 09:26 |
| → flijten joined | 09:26 |
|
ManDay
| wereHamster: Perhaps. I assumed if NOT stored as a rename, it will store the diff for each of the individual files. | 09:26 |
|
wereHamster
| anyway, there are drawbacks when storing a rename each way. Linus wrote a nice email about it once. I'll try to dig it up | 09:26 |
| → field_it joined | 09:27 |
|
wereHamster
| actually, there are only drawbacks if you store it explicitely inside history :) | 09:27 |
| ← madsy left | 09:28 |
| ← Liquid-Silence left | 09:28 |
| → jj- joined | 09:28 |
| → Liquid-Silence joined | 09:28 |
| ← gnufied left | 09:29 |
|
wereHamster
| ManDay: here it is: http://article.gmane.org/gmane.comp.version-control.git/217 | 09:29 |
| → hsingh joined | 09:29 |
| ← Rvl left | 09:30 |
|
jigal
| hell can i get some help with this error : jigal@jigal-laptop:/var/www/nrka3$ git commit -a Error reading /home/jigal/.nano_history: Permission denied | 09:30 |
|
thiago
| jigal: not a git error | 09:30 |
|
| looks like your editor is nano and it doesn't work | 09:30 |
| iband|away → iband | 09:31 |
|
jigal
| thiago, but it happend after i do i do a git commit | 09:32 |
|
thiago
| jigal: git commit wants to run the editor to get a commit message | 09:32 |
|
jigal
| ok | 09:32 |
|
thiago
| jigal: does the same problem happen with git commit -a -m "Message here" ? | 09:32 |
|
ouah
| are HEAD^ and ORIG_HEAD always the same? | 09:32 |
|
thiago
| ouah: no | 09:32 |
| ← Nedly left | 09:32 |
| → dim_ joined | 09:33 |
|
thiago
| ouah: commit will cause that to happen, but most other commands will have different results. | 09:33 |
|
ouah
| so I don't understand them::( | 09:33 |
| ← defendguin left | 09:33 |
|
thiago
| ORIG_HEAD is what HEAD was before the last operation | 09:33 |
|
| HEAD^ is the first parent of the current HEAD | 09:34 |
|
| ORIG_HEAD is equivalent to HEAD@{1} | 09:34 |
| → cjs joined | 09:34 |
| ← jutaro left | 09:36 |
|
ouah
| ok thanks | 09:36 |
| → f0i joined | 09:36 |
| ← Matth1a31 left | 09:36 |
| → systemclient joined | 09:36 |
|
systemclient
| should I tag my stuff with "1.4.5" or "v1.4.5"? | 09:37 |
|
thiago
| systemclient: whatever you prefer | 09:37 |
|
systemclient
| thiago: I always see the former style everywhere, although I think the latter says more … | 09:37 |
|
jigal
| what do i need to do after a commit? to get it to my online repository? | 09:37 |
|
systemclient
| k, than I just use my style | 09:37 |
|
| jigal: like github? | 09:37 |
|
| jigal: usually a push | 09:37 |
|
thiago
| jigal: push it | 09:37 |
|
jigal
| systemclient, yes github how to push it | 09:38 |
|
| push origin master? | 09:38 |
|
thiago
| jigal: that would do it, yes | 09:38 |
|
jigal
| cool it worked | 09:38 |
|
| thiago, can i ask a different question? | 09:38 |
|
thiago
| jigal: that was already a different question :-) | 09:39 |
|
jigal
| lol | 09:39 |
|
| thiago, i have setup a git repositor on my laptop. Now i want to check it out from my pc and be able to commit from my pc. How do i have to setup my pc in terms of the certificate and so on? Do i need a different certificate to commit? | 09:40 |
|
thiago
| certificate? | 09:40 |
|
| I'd simply suggest you perform the same operations: clone from the same original repository, then start working | 09:40 |
| ← cjs left | 09:41 |
| ← dexter_e left | 09:41 |
|
jigal
| thiago, but how do i get the rights to commit to that repository? | 09:42 |
|
thiago
| you mean "right to push to that repository" | 09:43 |
|
| you can always commit in the clones you create -- because you created them | 09:43 |
|
| to push, you need to identify yourself in a way that the server will recognise and authorise you | 09:43 |
|
jigal
| thiago, yes the right to push | 09:43 |
|
| but do i need to download the ceftificate or so? | 09:44 |
|
thiago
| one way is to copy the private SSH key. I actually recommend you generate a new key in the old PC and upload the public key to the server. | 09:44 |
|
jigal
| so then i so to say act like two different users thiago | 09:44 |
| → JamesLeeds joined | 09:44 |
| ← shiba_yu36 left | 09:44 |
| → Matth1a3 joined | 09:44 |
| ← JorgeRuiz left | 09:45 |
| ← f0i left | 09:45 |
| ← harsh left | 09:46 |
| → Dave^| joined | 09:46 |
| iband → iband|away | 09:46 |
| ← systemclient left | 09:47 |
| iband|away → iband | 09:48 |
| → sbell joined | 09:48 |
| → rendar joined | 09:49 |
| → brian_g joined | 09:50 |
| ← iband left | 09:53 |
| → gnufied joined | 09:54 |
| → stoffus joined | 09:54 |
| ← chrisf_ left | 09:55 |
| → sbell_ joined | 09:57 |
| → cesc joined | 09:59 |
| ← sbell left | 09:59 |
| sbell_ → sbell | 09:59 |
| → f0i joined | 09:59 |
| → syphar joined | 10:01 |
| syphar → syphar|away | 10:01 |
| syphar|away → syphar | 10:02 |
| → Ben1980 joined | 10:02 |
| → dnivra joined | 10:03 |
| → Deesl joined | 10:05 |
| ← dnivra left | 10:07 |
| ← f0i left | 10:08 |
| ← gnufied left | 10:09 |
| syphar → syphar|away | 10:10 |
| ← kennethreitz left | 10:15 |
| → jutaro joined | 10:17 |
| ← jutaro left | 10:19 |
| ← soc42 left | 10:22 |
| → f0i joined | 10:22 |
| → seivan joined | 10:24 |
| ← stoffus left | 10:29 |
| → stoffus joined | 10:29 |
| → adnasa joined | 10:30 |
| ← albel727 left | 10:30 |
| → shiba_yu36 joined | 10:30 |
| ← f0i left | 10:32 |
| → ludde joined | 10:33 |
| ← shiba_yu36 left | 10:34 |
| ← alnewkirk left | 10:36 |
| ← adnasa left | 10:37 |
| ← aminpy left | 10:39 |
| → aminpy joined | 10:39 |
| → albel727 joined | 10:40 |
| → f0i joined | 10:45 |
| → malumalu joined | 10:47 |
| ← hsingh left | 10:49 |
|
ManDay
| can you see that picture? http://progit.org/figures/ch3/18333fig0313-tn.png | 10:50 |
|
cbreak
| it looks like a valid png | 10:51 |
|
ManDay
| ok my question is what is the difference between being on master and merging hotfix and the other way arround? | 10:51 |
|
| (id est being on hotfix, merging master) | 10:52 |
|
wereHamster
| being on hotfix and merging master is a noop | 10:52 |
|
ManDay
| i see | 10:52 |
|
| thanks | 10:52 |
|
wereHamster
| it will tell you 'already up to date' because there is nothing to do | 10:52 |
| → pantsman joined | 10:53 |
| ← pantsman left | 10:53 |
| → pantsman joined | 10:53 |
|
cbreak
| if you mean being on hotfix and merging issblah and vice versa: the difference is in which branch the commit ends up, and the order of the parents | 10:53 |
| ← dvaske left | 10:54 |
| ← shennyg left | 10:54 |
|
ManDay
| cbreak: with regard to your scenario: in this case http://progit.org/figures/ch3/18333fig0314-tn.png the order doesnt matter, correct? | 10:54 |
|
cbreak
| it does | 10:55 |
|
ManDay
| (merging iss53 with master=hotfix or the other way arround) | 10:55 |
|
| what will be the difference ? | 10:55 |
|
cbreak
| if you mean being on hotfix and merging issblah and vice versa: the difference is in which branch the commit ends up, and the order of the parents | 10:55 |
|
wereHamster
| he already explained | 10:55 |
|
cbreak
| same as before | 10:55 |
|
ManDay
| i dont understand | 10:55 |
|
| assume everything is committed | 10:56 |
|
cbreak
| if you are on the hotfix branch | 10:56 |
| → cjs joined | 10:56 |
|
cbreak
| and you merge the other... in which branch is the merge commit? | 10:56 |
| ← j416 left | 10:56 |
|
ManDay
| in both | 10:56 |
|
wereHamster
| *bzzzt* wrong | 10:56 |
|
cbreak
| in the current branch! Because git merge always changes the current branch and NO OTHER | 10:56 |
|
ManDay
| if I merge here, http://progit.org/figures/ch3/18333fig0314-tn.png, doesnt the result look like a diamond arround the c2,c4,c3 and the merge commit (c5) ? | 10:57 |
|
| no matter, which branch i am on when I do the merge? | 10:57 |
|
wereHamster
| merwe what | 10:57 |
|
| merge | 10:57 |
|
ManDay
| c3 and c4. merge hotfix=master with iss53 | 10:58 |
|
wereHamster
| .. into what | 10:58 |
|
| checkout master; merge iss53 or the other way around? | 10:58 |
|
cbreak
| ManDay: imagine you are on a branch | 10:58 |
|
ManDay
| with. i said "with". which implies symmetry - doesnt tit? | 10:58 |
|
cbreak
| let's call it HEAD | 10:58 |
|
wereHamster
| no | 10:58 |
|
cbreak
| and you make a commit | 10:58 |
|
| in which branch is the commit? | 10:58 |
|
wereHamster
| ManDay: a git commit can have multiple parents. There has to be a first and second parent. | 10:59 |
|
cbreak
| (I am trying to guide him to the answer like a teacher) | 10:59 |
|
| cbreak searches for a bamboo cane | 10:59 |
|
wereHamster
| cbreak: it doesn't look like you are a good teacher :P | 10:59 |
| ← f0i left | 10:59 |
|
cbreak
| :( | 10:59 |
|
| cbreak searches for an iron pole | 11:00 |
|
cbreak
| So Mr. ManDay, we're waiting for an answer! | 11:00 |
|
| if you make a commit, in which branch does it end up? | 11:00 |
|
| wereHamster raises his hand | 11:00 |
|
wereHamster
| I know the answer. pick me mr. teacher. | 11:00 |
|
albel727
| me too me too! | 11:01 |
|
cbreak
| I know you know the answer. But he has to solve the problem on his own | 11:01 |
|
| albel727 jumps and waves his hand wildly. | 11:01 |
|
cbreak
| It's a basic concept in git | 11:01 |
|
ManDay
| cbreak: I've found an online sketchpad which I've been sketching on to illustrate my assumption | 11:02 |
|
cbreak
| alright, wereHamster, you may answer. | 11:02 |
|
ManDay
| just to find out it doesnt save | 11:02 |
|
cbreak
| the answer is one word | 11:02 |
|
ManDay
| HEAD | 11:02 |
|
| of course | 11:02 |
|
cbreak
| yes! | 11:02 |
|
ManDay
| (though HEAD is a tag, not a branch, eh) | 11:02 |
|
cbreak
| no | 11:02 |
|
wereHamster
| no, HEAD is not a tag | 11:02 |
|
cbreak
| it's a symbolic ref | 11:02 |
|
ManDay
| well, yes. | 11:03 |
|
cbreak
| it usually points to the current branch | 11:03 |
|
ManDay
| ok, but i knew that | 11:03 |
|
cbreak
| ok, so you know where fresh commits end up | 11:03 |
|
| so what happens if the commit has two parents? | 11:03 |
|
| (if it is a merge commit). Where does it end up? | 11:03 |
|
ManDay
| cbreak: look | 11:04 |
|
| maybe if you would correct my assumption which is: | 11:04 |
|
wereHamster
| cbreak: that approach doesn't really work with certain people :) | 11:04 |
|
cbreak
| hmmm :( | 11:04 |
| → shiba_yu36 joined | 11:04 |
|
cbreak
| maybe it's just my brain that works with deductive and inductive reasoning based on similarity assumptions | 11:04 |
|
ManDay
| if I merge in the following sit http://progit.org/figures/ch3/18333fig0314-tn.png , i assume that i get a diamon shaped form (ending in the newly created commit C5) - are we clear on that? | 11:04 |
| ← Deesl left | 11:04 |
| → soulcake joined | 11:05 |
|
ManDay
| cbreak: you are simply adressing something that is not my problem in understanding | 11:05 |
|
cbreak
| ManDay: yes... but there are some differences | 11:05 |
|
wereHamster
| yes, the shape is a diamond | 11:05 |
|
ManDay
| cbreak: ok, i was not yet finished: | 11:05 |
|
| And do we agree that then, all branches point to C5 ? | 11:05 |
|
| (because i do so) | 11:05 |
|
wereHamster
| no, we don't | 11:05 |
|
ManDay
| i see. so only the branch which I have been in while merging will point to C5 i assume? | 11:06 |
|
wereHamster
| .. which is what cbreak was trying to explain to you | 11:06 |
|
ManDay
| so it's a special case of fast-fwd merges that both branches than point to the same commit | 11:06 |
|
cbreak
| the merge commit will only end up in HEAD | 11:06 |
|
| no | 11:06 |
|
ManDay
| bah | 11:06 |
|
wereHamster
| no, git well *never* modify anything else than the current branch | 11:07 |
|
cbreak
| almost every command not explicitly for changing arbitrary refs works only on HEAD | 11:07 |
|
ManDay
| i see | 11:07 |
| → SimonNa joined | 11:07 |
|
ManDay
| now i understood | 11:07 |
|
| thanks cbreak wereHamster | 11:07 |
|
cbreak
| also: do you think c5 is the same wether made on c3 or c4? | 11:07 |
|
ManDay
| you mean by the data it holds? | 11:08 |
|
| yes. it references two parents and specifies how they are merged | 11:08 |
|
cbreak
| no | 11:08 |
|
ManDay
| (it only belongs to two different branches in the two cases) | 11:08 |
|
cbreak
| incorrect assumption | 11:08 |
|
ManDay
| ok | 11:08 |
| → hsingh joined | 11:08 |
|
cbreak
| you know a merge commit is a commit with two parents, right? | 11:08 |
|
ManDay
| yes | 11:09 |
|
| thats what I said | 11:09 |
|
cbreak
| how are the parents stored? | 11:09 |
|
ManDay
| as trees | 11:09 |
|
cbreak
| no | 11:09 |
|
ManDay
| (commits which point to trees) | 11:09 |
|
| jeez... | 11:09 |
|
cbreak
| inside a commit object, they are stored with their hash | 11:09 |
|
| but... in which order? | 11:10 |
|
ManDay
| http://progit.org/book/ch3-1.html | 11:10 |
|
cbreak
| this is quite important for history traversal, because, as you surely know, HEAD~3 for example means: follow the first parent three times | 11:11 |
|
ManDay
| cbreak: I didnt know that | 11:11 |
|
| cbreak: I dont know in which order | 11:11 |
|
cbreak
| the current HEAD commit is parent 1 | 11:11 |
|
ManDay
| By the way, when you first asked me, I assumed you were referring "how the parents are stored in git" , not "in the merge" , as you meant | 11:12 |
|
cbreak
| all other merge heads are listed in the order in which you mention them on the cli | 11:12 |
| ← Squarism left | 11:12 |
|
cbreak
| so for example, if I am on c0, and I type git merge c2 c1 foo | 11:12 |
|
ManDay
| so the first HEAD is that which has been previously the HEAD of the branch? | 11:12 |
|
cbreak
| then the resulting merge has heads c0, c2, c1 and foo | 11:12 |
|
ManDay
| yes. | 11:12 |
|
| why does the order matter? | 11:13 |
|
cbreak
| this is quite important for history traversal, because, as you surely know, HEAD~3 for example means: follow the first parent three times | 11:13 |
| → bonhoffer joined | 11:13 |
|
cbreak
| for example, if you work with a "only merges in master" workflow, you can just follow the first heads to see all merge commits | 11:13 |
|
| and ignore all real commits in the second parent | 11:13 |
| → kingfishr joined | 11:14 |
|
ManDay
| hm - so its just a convenience - technically the order has no impact on the merge, right? | 11:14 |
|
cbreak
| the resulting tree is equivalent for most algorithms | 11:15 |
|
| BUT the resulting DAG is not | 11:15 |
|
| history traversal is important, so the order of parents is important as well | 11:16 |
|
ManDay
| topologically the DAG will be the same. and to all what matters (technically, again) it will also be equivalent | 11:16 |
|
cbreak
| no | 11:16 |
| → f0i joined | 11:16 |
|
cbreak
| see above | 11:17 |
| → tewecske joined | 11:17 |
|
ManDay
| you mean it matters for history traversal? yes, but only as a convenience, that's what i mean | 11:18 |
|
| by "it doesn't really matter" | 11:18 |
|
| are we clear? | 11:18 |
| → hafos joined | 11:18 |
|
cbreak
| no | 11:20 |
|
| not for convenience | 11:20 |
|
| for actual effect | 11:20 |
|
| think of git bisect | 11:20 |
|
| think of git rebase or git filter-branch | 11:20 |
| → martinjlowm joined | 11:21 |
| → dvaske joined | 11:21 |
| → toabctl joined | 11:23 |
| → w0bni joined | 11:23 |
|
ManDay
| but what if you don't want to traverse along the "primary inheritance line"? | 11:24 |
|
| I assume there must be a way to specify that, too? | 11:24 |
| ← ouah left | 11:27 |
| → gnufied joined | 11:28 |
| ← gnufied left | 11:28 |
| ← f0i left | 11:31 |
| → Raging_Hog joined | 11:31 |
| ← dvaske left | 11:33 |
| → alnewkirk joined | 11:33 |
| → gnufied joined | 11:33 |
| → ruskie joined | 11:34 |
| ← bittin left | 11:35 |
| → Rvl joined | 11:36 |
|
cbreak
| ManDay: there's the ref^parentnum syntax, but it only goes one parent far | 11:38 |
|
| so it's more cumbersome to use | 11:38 |
|
ManDay
| thank you cbreak | 11:39 |
|
cbreak
| np | 11:40 |
| → johnkpaul joined | 11:41 |
| ← jimmy1980 left | 11:43 |
| → zamabe joined | 11:43 |
| → f0i joined | 11:44 |
| → ouah joined | 11:49 |
| → jimmy1980 joined | 11:51 |
| ← johnkpaul left | 11:51 |
| ← shiba_yu36 left | 11:52 |
| ← f0i left | 11:54 |
| ← bonhoffer left | 11:55 |
| → f0i joined | 11:56 |
| → harsh joined | 11:59 |
| → chungwen joined | 12:01 |
| ← chungwen left | 12:01 |
| → sythe joined | 12:02 |
| ← sythe left | 12:02 |
| → sythe joined | 12:02 |
| ← JamesLeeds left | 12:02 |
| ← tos9 left | 12:03 |
| → nyuszika7h joined | 12:04 |
| ← f0i left | 12:07 |
| ← mattdipasquale left | 12:07 |
| → mattdipasquale joined | 12:08 |
| → the_metalgamer joined | 12:09 |
| → f00li5h joined | 12:10 |
| ← cesc left | 12:10 |
| ← Rvl left | 12:13 |
| → bittin joined | 12:14 |
| → f0i joined | 12:16 |
| → Drakonite joined | 12:16 |
| ← bittin left | 12:19 |
| → bittin joined | 12:19 |
| → subbyyy joined | 12:19 |
| → flaguy48 joined | 12:20 |
| ← stoffus left | 12:20 |
| → Sajaki joined | 12:21 |
| ← kingfishr left | 12:21 |
|
Sajaki
| hi, i'm on osX, and when i change the case of a filename, Git doesn't see it as a change. how to fix? | 12:22 |
| ← rchavik left | 12:23 |
|
rudi_s
| Hi. Where is the current git repository located? git.kernel.org doesn't work for me. | 12:24 |
|
Sajaki
| http://git-scm.com/ | 12:24 |
| ← f0i left | 12:25 |
|
Sajaki
| kernel.org is down for a few days now | 12:25 |
|
rudi_s
| Sajaki: That points to git.kernel.org, is there no mirror. I'm just asking because /topic talks about 1.7.6.3 and I'd like to get it (git-scm.com is outdated btw. it mentions 1.7.6.1). | 12:26 |
| → logii joined | 12:27 |
|
logii
| I'm getting this error: No submodule mapping found in .gitmodules for path 'sites/all/modules/admin_menu' | 12:28 |
|
| when i do git submodule status | 12:28 |
|
| i think the problem arises from the fact that i actually used clone, instead of submodule add | 12:29 |
| → pragma_ joined | 12:29 |
|
cbreak
| Sajaki: rename to something else and then back | 12:30 |
|
logii
| is there any command for me to update the remotes of the submodules, from the main repo? | 12:30 |
|
cbreak
| logii: man git-submodule foreach, try that | 12:30 |
| ← harsh left | 12:33 |
|
logii
| cbreak: cool! but what am i to do after submodule foreach? update? | 12:34 |
|
cbreak
| no | 12:34 |
|
logii
| cbreak: it keeps saying: No submodule mapping found in .gitmodules for path 'sites/all/modules/admin_menu' | 12:34 |
|
cbreak
| git remote update probably | 12:34 |
|
| but why do you want to do that anyway? | 12:34 |
|
| submodules will be automatically updated with git submodule update | 12:35 |
|
logii
| cbreak: I think they are not recognized as submodule in the main repo? | 12:36 |
| → loic_m joined | 12:36 |
|
cbreak
| why not? | 12:36 |
|
| if they are submodules then they are | 12:36 |
|
logii
| they were not added as submodule, those repo were cloned | 12:37 |
|
pragma_
| How does one get a git log of commits made since the repo was checked out? | 12:38 |
| → Praise joined | 12:38 |
|
cbreak
| then they aren't submodules | 12:38 |
| ← awallin left | 12:38 |
|
cbreak
| pragma_: repositories aren't checked out | 12:38 |
|
logii
| is there anything available for me to convert them to submodules? | 12:38 |
| → awallin joined | 12:38 |
|
cbreak
| reformulate your question | 12:38 |
|
| logii: git submodule add | 12:38 |
|
| but ... read up on what submodules are! | 12:38 |
|
| you seem very clueless at the moment | 12:39 |
|
| and it might not be the case that submodules are the solution to your problem | 12:39 |
|
thiago
| pragma_: you need to know the SHA-1 of the time of the clone | 12:39 |
|
| pragma_: this might work though: git log @{10.years.ago}.. | 12:40 |
|
pragma_
| I mean, suppose I have a working directory and I want to see what others have committed since then | 12:41 |
|
cbreak
| then just do a git remote update | 12:41 |
|
pragma_
| ie, what changes I'm missing | 12:41 |
|
cbreak
| and git diff ..origin/master or what ever | 12:41 |
|
| or git log ..origin/master | 12:42 |
|
ouah
| pragma_: git fetch and then git log master..origin/master | 12:42 |
| → f0i joined | 12:42 |
| ← zamabe left | 12:43 |
|
pragma_
| I get "fatal: ambiguous argument: unknown revision or path not in working tree | 12:43 |
|
wereHamster
| pragma_: paste the complete command | 12:44 |
| → Vortex34 joined | 12:44 |
| ← Vortex35 left | 12:46 |
| → Bass10 joined | 12:48 |
| → anaio joined | 12:49 |
| ← f0i left | 12:50 |
| ← alnewkirk left | 12:51 |
| anaio → alnewkirk | 12:51 |
|
ManDay
| tango_: the progit.org is really good! | 12:54 |
| → caruso_g joined | 12:55 |
| → Chillance joined | 12:55 |
| ← d3vic3 left | 12:59 |
| → _iron joined | 13:05 |
| → f0i joined | 13:09 |
| → yeban joined | 13:10 |
| ← Bass10 left | 13:10 |
| → jbrokc joined | 13:12 |
| ← yeban left | 13:13 |
| ← flijten left | 13:14 |
| → bonhoffer joined | 13:15 |
| ← catsup left | 13:16 |
| → catsup joined | 13:17 |
| → madewokherd joined | 13:18 |
| → goshakkk joined | 13:21 |
| → w09x joined | 13:22 |
| → johnkpaul joined | 13:22 |
| ← bonhoffer left | 13:23 |
| ← f0i left | 13:23 |
| ← jimmy1980 left | 13:25 |
| ← cjs left | 13:25 |
| → Cipher-0 joined | 13:25 |
|
sie
| If I just want a copy of the project from the bare repo for apache and other services, then I should fetch, instead of pulling, right? | 13:26 |
| → JamesLeeds joined | 13:26 |
|
rudi_s
| sie: If you don't have a repository local, you use clone. fetch/pull is used when you already have a clone of a remote repository and want to get new commits. | 13:26 |
|
sie
| I do. | 13:27 |
|
| I want to update it. | 13:27 |
| ← mattdipasquale left | 13:27 |
|
rudi_s
| sie: Then git fetch to get the new changes, git pull is git fetch plus git merge. | 13:27 |
|
sie
| Fetch cannot fail, right? | 13:27 |
|
cbreak
| sure it can | 13:27 |
|
rudi_s
| sie: But it won't corrupt your local state. | 13:28 |
|
sie
| because of conflicts and such, that is? | 13:28 |
|
rudi_s
| No. | 13:28 |
|
| It just stores the new commits in your repository and updates the remote branches. | 13:28 |
|
| (Like origin/master.) | 13:28 |
| → jimmy1980 joined | 13:31 |
| ← pantsman left | 13:32 |
|
sie
| Hmm, I did git fetch, but I see no changes in the files. Does it store the changes only in .git or something? | 13:33 |
|
wereHamster
| yes | 13:34 |
|
m1sc
| sie: fetch doesn't touch you objects, it's just about getting remotes objects | 13:34 |
|
| your | 13:34 |
|
sie
| Okay, so how can I fetch & merge(or pull) overwriting ALL THE THINGS and such? | 13:36 |
|
wereHamster
| git pull | 13:36 |
|
sie
| I have a `error: The following untracked working tree files would be overwritten by merge: | 13:36 |
|
wereHamster
| sie: oh wait. git fetch && git reset --hard @{u} | 13:37 |
| ← martinjlowm left | 13:37 |
| → mattdipasquale joined | 13:37 |
| → martinjlowm joined | 13:38 |
|
sie
| just ... '@{u}'? | 13:38 |
| ← tdebat left | 13:39 |
| → tdebat joined | 13:40 |
|
sie
| wereHamster - ^ | 13:42 |
| → f0i joined | 13:42 |
|
wereHamster
| ... | 13:42 |
| ← jimmy1980 left | 13:42 |
| → iband joined | 13:44 |
| ← tdebat left | 13:45 |
| → tdebat joined | 13:45 |
|
bremner
| sie: man git-rev-parse | 13:48 |
| ← tdebat left | 13:49 |
| ← jonshea left | 13:50 |
| ← f0i left | 13:51 |
| → tdebat joined | 13:52 |
| ← caruso_g left | 13:52 |
| ← lacrymology left | 13:53 |
| ← toabctl left | 13:54 |
| ← tdebat left | 13:54 |
| → lacrymology joined | 13:55 |
| → ISF joined | 13:55 |
| → Octalot joined | 13:56 |
| → kukks joined | 13:56 |
| → keyzs joined | 13:57 |
|
keyzs
| http://www.thevenusproject.com/ | 13:57 |
| ← keyzs left | 13:57 |
| → possibilities joined | 13:57 |
| ← airborn left | 13:57 |
| ← apocalyptiq left | 13:58 |
| → CannedCorn joined | 13:59 |
| → Prasad joined | 14:00 |
| → Cromulent joined | 14:00 |
| ← Lemon|mbp left | 14:03 |
| → MUILTFN joined | 14:04 |
| → f0i joined | 14:05 |
| → cjs joined | 14:06 |
| → pantsman joined | 14:07 |
| ← pantsman left | 14:07 |
| → pantsman joined | 14:07 |
| → ehsan joined | 14:07 |
| → toabctl joined | 14:08 |
| ← f0i left | 14:14 |
| ← Cromulent left | 14:15 |
| → tdebat joined | 14:15 |
| → shiba_yu36 joined | 14:15 |
| ← tdebat left | 14:16 |
| → heppy joined | 14:17 |
| → Phylock joined | 14:17 |
| → sorin joined | 14:19 |
| → Lisimba2 joined | 14:19 |
| ← heppy left | 14:19 |
| → bonhoffer joined | 14:20 |
| → sattu94 joined | 14:20 |
| iband → iband|away | 14:20 |
| → jonshea joined | 14:21 |
| ← jonshea left | 14:22 |
| ← Lisimba left | 14:22 |
| → stealthmk joined | 14:27 |
| ← seivan left | 14:27 |
| → sivy joined | 14:28 |
| → f0i joined | 14:28 |
| ← Ben1980 left | 14:29 |
| ← EricInBNE left | 14:29 |
| ← w09x left | 14:29 |
| → Lemon|mbp joined | 14:30 |
| ← the_metalgamer left | 14:30 |
| ← bonhoffer left | 14:30 |
| → heppy joined | 14:32 |
| ← fisted left | 14:32 |
| ← heppy left | 14:33 |
| → w09x joined | 14:33 |
| ← w09x left | 14:33 |
| ← gnufied left | 14:33 |
| → kvanderw joined | 14:34 |
| ← f0i left | 14:37 |
| → Daniel0108 joined | 14:38 |
| → jogla joined | 14:38 |
| → aalex joined | 14:42 |
| → fisted joined | 14:42 |
| ← pigeons left | 14:43 |
| → the_metalgamer joined | 14:43 |
| ← sorin left | 14:45 |
| ← goshakkk left | 14:46 |
| → gusnan joined | 14:46 |
| → JasCo joined | 14:46 |
| → jhoepken joined | 14:47 |
| → codebeaker joined | 14:47 |
| → apocalyptiq joined | 14:47 |
| → diegoviola joined | 14:49 |
| → f0i joined | 14:51 |
| ← f0i left | 14:51 |
| ← normanrichards left | 14:51 |
| ← Lemon|mbp left | 14:54 |
| → Lemon|mbp_ joined | 14:55 |
| → posciak joined | 14:56 |
| ← stodan left | 14:57 |
| → bloopletech joined | 14:57 |
| → bitkiller joined | 14:57 |
| ← brian_g left | 14:57 |
|
bloopletech
| Is there way to get all the changes for a specific part of a file? I want to git log -p a file, but I only care about a small part of a large file | 14:57 |
| → brian_g joined | 14:58 |
| ← Cipher-0 left | 14:58 |
| ← Chib left | 14:59 |
| → harsh joined | 14:59 |
|
wereHamster
| only with git blame | 15:00 |
| → setmeaway joined | 15:00 |
|
bloopletech
| wereHamster: can that give me the history as opposed to just the last change on the line? | 15:02 |
|
wereHamster
| no, but it's the closest you can get | 15:02 |
|
| you'll have to drill down through the history manually | 15:03 |
| → pen joined | 15:03 |
|
bloopletech
| aw I hate it when git isn't magic. Oh well thanks | 15:03 |
|
cybersphinx
| bloopletech: You can use "tig blame file", and then "," to go to the previous commit of the selected line. | 15:05 |
| → Deesl joined | 15:06 |
|
bloopletech
| cybersphinx: ooh I'll check it out | 15:06 |
| → anaio joined | 15:06 |
| ← mattdipasquale left | 15:07 |
| ← anaio left | 15:08 |
| EugeneKaway → EugeneKay | 15:08 |
| → masando joined | 15:08 |
| ← jbrokc left | 15:08 |
| ← alnewkirk left | 15:09 |
| → mattdipasquale joined | 15:09 |
| iband|away → iband | 15:10 |
|
bloopletech
| cybersphinx: tig looks friggin awesome, thanks for the tip | 15:11 |
| → replore_ joined | 15:12 |
| → dbpolito_ joined | 15:13 |
| ← stealthmk left | 15:13 |
| → sorin joined | 15:15 |
| ← codebeaker left | 15:15 |
| → dfr|mac joined | 15:16 |
| → ch077179 joined | 15:17 |
| → _steve joined | 15:17 |
| → Swimming_Bird joined | 15:19 |
| → flavius joined | 15:20 |
| flavius → Guest7083 | 15:20 |
| ← thews left | 15:20 |
| → thews joined | 15:22 |
| ← lacrymology left | 15:22 |
| → macmartine joined | 15:23 |
| ← Guest7083 left | 15:24 |
| → Guest7083 joined | 15:24 |
| ChanServ set mode: +v | 15:24 |
|
_steve
| hi all. just converted our hg project to git using fast-export. have installed git for windows & tortoise git. what do I need to do to tell tortoise git where my repository is & where my current working directory is ? | 15:25 |
| Guest7083 → flavius | 15:25 |
| ← macmartine left | 15:25 |
|
cbreak
| don't use tortoise :/ | 15:26 |
|
| but if you want, just use the context menu | 15:26 |
|
EugeneKay
| Tortoise Git is a shell extension. You open the directory and right-click. I hate it. | 15:27 |
|
_steve
| used to svn so works for me :) | 15:27 |
| ← pantsman left | 15:27 |
| ← mino left | 15:27 |
|
_steve
| get a context menu if I right click over the repository directory. | 15:27 |
|
jaeckel
| _steve: stop using it :) you will be happier when you're used to the commandline! | 15:28 |
| → Yuuhi joined | 15:28 |
|
EugeneKay
| The .git folder? Leave that alone. | 15:28 |
|
cmyers
| at my company, our recommendations for git on windows are git bash (msysgit) for CLI, and Visual Git Extensions for gui. | 15:28 |
| → Nedly joined | 15:28 |
|
_steve
| the git folder. that's where the version control data is. | 15:28 |
|
| how do I tell the system it's there or does it 'just know' | 15:29 |
|
EugeneKay
| Git operations re done on the working tree, not on the .git dir | 15:29 |
| ← jogla left | 15:29 |
| → goshakkk joined | 15:29 |
|
_steve
| sure, but it needs to know where the repo is surely ? | 15:29 |
|
EugeneKay
| Git looks in the current folder, then in every parent folder, for a .git dir. If it doesn' find one, it fails. | 15:29 |
| ← dbpolito_ left | 15:29 |
|
wereHamster
| _steve: it should 'just know' | 15:29 |
|
| well, git. Don't know about tortoisegi | 15:30 |
|
EugeneKay
| I use SmartGit. It suits me well, but it's not FOSS. I'm OK with this. | 15:30 |
|
_steve
| hmmm so I have drive/repo/.git & drive/dev/source ... will that config work ? | 15:30 |
| ← logii left | 15:30 |
|
EugeneKay
| No. The .git dir goes alongside your codes. | 15:31 |
|
cbreak
| _steve: if drive/repo/.git exists, then drive/repo is the repository | 15:31 |
|
_steve
| yes | 15:31 |
|
cbreak
| and everything inside it is working dir | 15:31 |
|
| (with some exceptions) | 15:31 |
|
| drive/dev/source is irelevant | 15:31 |
|
_steve
| so the working dir sits inside the repo ? | 15:31 |
| ← bgerber left | 15:31 |
|
wereHamster
| the working dir + the .git dir *is* the repo | 15:32 |
|
EugeneKay
| path/to/working/dir/.git/ | 15:32 |
| ← brian_g left | 15:32 |
|
_steve
| so all my working direcories have .git subdirs or just the root ? | 15:32 |
|
| *directories | 15:32 |
|
wereHamster
| just the root | 15:32 |
| ← harsh left | 15:32 |
|
_steve
| ok - we're still good. | 15:32 |
| → shtrb joined | 15:32 |
| → macmartine joined | 15:32 |
|
cbreak
| have you never used subversion? | 15:33 |
| ← Nedly left | 15:33 |
|
_steve
| so I need to position my .git dir in the root of my source tree ? | 15:33 |
|
EugeneKay
| Just dir/. A file at path/to/working/dir/foo/bar.txt will show up in you repo as being named "foo/bar.txt", wherease path/to/working/dir/README will simply be named "README" | 15:33 |
|
cbreak
| no | 15:33 |
|
| git will do that itself when you git init | 15:33 |
|
cmyers
| _steve: how are you creating this git repo? You shouldn't have to position anything | 15:33 |
|
_steve
| it is a conversion of a hg repo. | 15:34 |
|
shtrb
| is there any limit of revition amount when I use git svn ? git crashes after getting the 1000th rev and I wish to get all the history (60K revisions) | 15:34 |
|
selckin
| shtrb: "crashes" ? | 15:34 |
|
wereHamster
| shtrb: shouldn't be. Why is git crashing? | 15:34 |
|
cmyers
| _steve: I have only done it a few times, but I believe you shoudl create a new git repo using `git init` | 15:34 |
|
| then push into it from your hg repo. | 15:34 |
|
_steve
| done the conversion already, thanks. | 15:34 |
|
shtrb
| wereHamster , before saying that something have a bug I'm checking if this is not a feature | 15:34 |
|
| selckin : exit code 13 | 15:35 |
| → bgerber joined | 15:35 |
|
cmyers
| _steve: and it just created a .git dir, right? | 15:35 |
|
_steve
| yes | 15:35 |
|
wereHamster
| shtrb: any error messages? | 15:35 |
|
shtrb
| selckin , aka segmentation fault | 15:35 |
|
| nope | 15:35 |
|
cmyers
| that is because you haven't checked out a branch then probably | 15:35 |
|
| or it is a bare repo | 15:35 |
|
shtrb
| this is why I think it is a feature | 15:35 |
|
selckin
| shtrb: start with that last one in the future | 15:35 |
|
cmyers
| if you go to the directory which contains .git, and run `git checkout <branch>`, see what happens | 15:36 |
|
wereHamster
| shtrb: any idea which command causes that sigsegv? | 15:36 |
| → tpiep joined | 15:36 |
|
shtrb
| wereHamster, It works upto the 1000'th (checked 1 10 100 revisions works on this crashes) | 15:36 |
|
| wereHamster , nope | 15:36 |
|
_steve
| will try that, thanks. | 15:36 |
| → brian_g joined | 15:36 |
|
wereHamster
| shtrb: IIRC git repacks every 1000 revisions, so it's maybe git-repack? | 15:36 |
| ← shiba_yu36 left | 15:37 |
| → ajpiano joined | 15:37 |
|
shtrb
| I knew it some feature ;-) | 15:38 |
|
| it is ... | 15:38 |
| ← angelsl left | 15:38 |
|
shtrb
| how can I check if it's the $@$ problem (nothing in /var/log/syslog) | 15:38 |
| ← redglasses left | 15:40 |
| → cesc joined | 15:41 |
| → rpg joined | 15:41 |
| → SimonNaa joined | 15:41 |
| → henriquev joined | 15:42 |
|
shtrb
| can I continue clone after a crashed repack ? (if it is the issue) | 15:43 |
|
selckin
| git svn fetch | 15:43 |
|
_steve
| ok - ran git checkout master & worked as expected except seems top be an old version. had done some file renames in hg & they're not there. | 15:44 |
|
| *to | 15:44 |
|
| maybe should try the conversion again. | 15:44 |
|
shtrb
| selckin 10x I'll try | 15:45 |
|
selckin
| 10x? | 15:45 |
|
shtrb
| thank you | 15:45 |
|
_steve
| ran the fast-export script - is this the recommended method of conversion ? | 15:45 |
| ← SimonNa left | 15:45 |
| → Davey_ joined | 15:45 |
| ← Davey_ left | 15:45 |
| → Davey_ joined | 15:45 |
|
wereHamster
| _steve: yes | 15:45 |
|
_steve
| hmmmm. | 15:45 |
| → Cromulent joined | 15:45 |
| → eeanm joined | 15:46 |
|
_steve
| so I just ran checkout master from tortoise using its defaullt config. is there a better way to make sure I've got the very latest version in the repo ? | 15:46 |
|
cbreak
| git remote update | 15:47 |
|
| checkout master just checks out the master branch | 15:48 |
|
| it doesn't fetch anything from remotes | 15:48 |
|
_steve
| this is a local repo. I'm the only user. | 15:48 |
|
cbreak
| then it still doesn't check out the newest commit | 15:48 |
|
| just the master branch's tip | 15:49 |
|
_steve
| so how do I get all the latest commits ? | 15:49 |
|
cbreak
| look at the branches | 15:49 |
|
| find the branch with the latest commit | 15:49 |
|
| and switch to it | 15:49 |
|
_steve
| noob q - how do I look at the branches. | 15:50 |
| → mino joined | 15:50 |
|
wereHamster
| with your eyes. Unless you are blind in which case you need a braille reader | 15:50 |
|
_steve
| I see the nerdiverse is alive and well. | 15:51 |
|
cmyers
| _steve: you want to see what branches there are? | 15:51 |
|
cbreak
| git branch shows branches | 15:51 |
|
cmyers
| or look at their history? | 15:51 |
| → d0k joined | 15:51 |
|
_steve
| thanks | 15:51 |
|
cbreak
| surprise! | 15:51 |
|
| read the man page for flags | 15:51 |
|
| git log shows history graphs, read the man page for details | 15:52 |
|
_steve
| everything is easy & obvious when you know how to do it. | 15:52 |
|
| git branch says master | 15:52 |
|
selckin
| or if you read the most initial of documentation | 15:52 |
| → muneeb joined | 15:53 |
|
cbreak
| maybe you only have that branch... | 15:53 |
|
| or you forgot to read the man page | 15:53 |
|
_steve
| ok - think I'm going to switch back to hg & make sure everything is commited properly there | 15:53 |
|
| thought it was but could be user error. | 15:53 |
|
cmyers
| _steve: if you prefer a video tutorial, I suggest watchign this: http://www.youtube.com/watch?v=ZDR433b0HJY | 15:53 |
|
| 90 minutes well spent | 15:53 |
|
_steve
| ofc I haven't read any man pages - got you guys :) | 15:53 |
|
wereHamster
| we did'nt expect so | 15:54 |
|
cbreak
| what do you mean "committed properly"? | 15:54 |
|
| do you want an other branch? | 15:54 |
|
| or are you missing commits? | 15:54 |
|
_steve
| Some of my files on a basic repo are out of date after conversion. | 15:54 |
|
cbreak
| define "out of date" | 15:55 |
| → herdingcat joined | 15:55 |
|
_steve
| not the latest versions | 15:55 |
| → caruso_g joined | 15:55 |
|
_steve
| I'd renamed some files in hg so maybe that's confused the conversion | 15:55 |
|
cbreak
| how do you know? | 15:55 |
|
_steve
| because the file names are the old file names | 15:55 |
| ← caruso_g left | 15:55 |
| ← Yuuhi left | 15:55 |
|
cbreak
| is the commit with the renames in git? | 15:55 |
|
cmyers
| _steve: you are on windows, right? | 15:56 |
|
_steve
| yes | 15:56 |
|
cbreak
| or in other words: is the history there? | 15:56 |
|
cmyers
| did you change the case of any filenames? | 15:56 |
|
| renaming files from like, Foo.java to foo.java, for example, causes big problems | 15:56 |
|
| in hg and git. | 15:56 |
|
_steve
| didn't change case. file.hlsl to file.sh | 15:56 |
|
| leave it with me. now I know the basics I can check me repo is behaving properly in hg then will try another conversion. | 15:57 |
|
| worst case I could create from scratch & lose the history. wouldn't be the end of the world. | 15:57 |
| ← apocalyptiq left | 15:57 |
|
_steve
| thanks for your help guys. | 15:57 |
| ← SimonNaa left | 15:58 |
| ← shtrb left | 15:58 |
| → SimonNa joined | 15:58 |
|
_steve
| @cbreak - to be clear - the yes above is yes I'm on windows. haven't looked to see if the renames are in git yet. | 15:59 |
| → codetroll joined | 15:59 |
|
_steve
| checked one of the files - there's some history there but not all. best guess is fast-export doesn't handle renames properly but like I say, could be user error. | 16:01 |
| → Yuuhi joined | 16:01 |
| ← [1]codetroll left | 16:01 |
| → Dave^|| joined | 16:01 |
| ← aminpy left | 16:02 |
|
_steve
| ok - back to hg for now. will try again later. thanks for all your hard work on this. hope to use it later. | 16:02 |
| → defendguin joined | 16:03 |
| → f0i joined | 16:04 |
|
selckin
| try -C -M --follow | 16:04 |
| ← Dave^| left | 16:05 |
|
_steve
| @me ? | 16:05 |
|
selckin
| no this isn't twitter | 16:07 |
| → socketwiz joined | 16:07 |
| → Rvl joined | 16:07 |
| ← jhoepken left | 16:08 |
| → Targen joined | 16:08 |
| ← socketwiz left | 16:09 |
| → socketwiz joined | 16:09 |
|
_steve
| sorry. ok done for now. will leave you guys in peace. help appreciated. l8r. | 16:10 |
| ← _steve left | 16:10 |
| → harsh joined | 16:11 |
| → berserkr joined | 16:12 |
| → moops joined | 16:13 |
| ← ISF left | 16:15 |
| → dbpolito_ joined | 16:15 |
| ← Ivoz left | 16:16 |
| → drev1 joined | 16:16 |
| ← f0i left | 16:18 |
|
sorin
| Has anyone got an extensive article on the Git subtree merge strategy? | 16:19 |
| ← toabctl left | 16:19 |
| → dnivra joined | 16:20 |
| ← herdingcat left | 16:21 |
| → aalex-home_ joined | 16:21 |
| ← Targen left | 16:21 |
| → arunce_ joined | 16:22 |
| ← bloopletech left | 16:22 |
| ← arunce left | 16:23 |
|
ManDay
| Are git commit messages supposed to be line wrapped= | 16:23 |
|
| ? | 16:23 |
|
cbreak
| that's the job of the editor | 16:23 |
|
bremner
| ManDay: git does not mess with them, if that is your question | 16:23 |
|
cbreak
| or you | 16:23 |
| → kadoban joined | 16:23 |
|
ManDay
| my question was if by convention they are supposed to be | 16:24 |
|
sorin
| ManDay, the first line should be 58. Leave a blank line. Then write paragraphs at 78. | 16:25 |
|
cbreak
| in my repositories they have to | 16:25 |
|
ManDay
| sorin: That's what I meant | 16:25 |
|
cbreak
| around 80 chars wide | 16:25 |
|
| it's not that strict | 16:25 |
|
ManDay
| My friggin VIM does line wrap everywhere where I dont want it but OF COURSE it does NOT with commit messages | 16:25 |
|
| stupid thing | 16:25 |
|
sorin
| See https://github.com/blog/926-shiny-new-commit-styles | 16:26 |
| → DireFog joined | 16:27 |
|
sorin
| Sorry, I meant 50 then 72. | 16:27 |
| ← possibilities left | 16:28 |
| ← zivester_ left | 16:28 |
|
infid
| how is there no git pocket reference book on amazon | 16:29 |
|
DireFog
| I have a problem with filter-branch with a subdirectory filter. It will always come back with "error: Entry '.gitignore' not uptodate. Cannot merge.", and when I run an index-filter which "git-rm"'s files that are both in the new top-level directory and the old root, I get "error: Untracked working tree file 'CONTRIBUTORS' would be overwritten by merge." | 16:29 |
|
sorin
| infid, because the Git man pages are the size of a phone book? | 16:29 |
| ← moops left | 16:30 |
| → zamabe joined | 16:30 |
| ← harsh left | 16:30 |
|
cbreak
| DireFog: git status | 16:30 |
|
| what does it show? | 16:30 |
|
FauxFaux
| infid: 'cos it's too easy, no reason to have a book! | 16:31 |
| → alnewkirk joined | 16:31 |
|
DireFog
| cbreak: AFAICT the entire old repo as new files, and a few modifieds | 16:31 |
|
cbreak
| it should show nothing at all to commit | 16:31 |
|
| and nothing changed | 16:31 |
|
| and nothing untracked | 16:31 |
|
DireFog
| do you mean before or after the failed filter run? | 16:32 |
|
| because I'm starting with a fresh clone | 16:32 |
|
cbreak
| before you started | 16:32 |
| ← martinjlowm left | 16:32 |
| → martinjlowm joined | 16:32 |
| → metcalfc joined | 16:33 |
|
DireFog
| # On branch active_support | 16:33 |
|
| nothing to commit (working directory clean) | 16:33 |
|
ManDay
| ping? | 16:33 |
|
| wow, im still here | 16:33 |
| → Jon47 joined | 16:33 |
| ← flavius left | 16:33 |
| ← rpg left | 16:33 |
| ← Tabmow left | 16:33 |
|
thiago
| ManDay: yes, your wireless connection is still working | 16:33 |
|
infid
| sorin: FauxFaux you say it's too easy, sorin says it's too complicated. which is it? | 16:34 |
|
DireFog
| cbreak: it fails while rewriting tags AFAICT | 16:34 |
| ← defendguin left | 16:34 |
| → scarabx joined | 16:34 |
|
FauxFaux
| infid: Well, in my opinion, I'm right. Or, more seriously, the bits of the man page that are worth having in a pocket reference are bogglingly tiny. | 16:34 |
|
ManDay
| thiago: You DONT KNOW how HORRIBLE it is to live like that! | 16:35 |
|
thiago
| ManDay: connected to the internet? Yeah, horrible. | 16:35 |
|
cbreak
| DireFog: weird. | 16:35 |
| → shiba_yu36 joined | 16:36 |
|
ManDay
| thiago: No, using an Atheros card which is voted as working superb on linux but which constantly tortures you for over a year. | 16:36 |
| ← goshakkk left | 16:36 |
|
FauxFaux
| Homeplugs / pla / egthernet over power time. | 16:36 |
| ← Cromulent left | 16:37 |
| ← shiba_yu36 left | 16:37 |
| → Tabmow joined | 16:38 |
|
infid
| FauxFaux: yeah well, there's a cvs pocket reference but not one for svn either. and the svn manual in paper back is a pretty big book | 16:39 |
|
sorin
| infid, it's both. | 16:39 |
| → bloopletech joined | 16:39 |
| → adamm joined | 16:39 |
|
sorin
| Git is not easy, neither is Mercurial, whith pretends to be easy, but it's quite complex. | 16:40 |
|
| There is a learning curve to everything. | 16:40 |
| ← posciak left | 16:40 |
|
sekhmet
| (That said, git really isn't that difficult to pick up for simple use-cases) | 16:41 |
| → rpg joined | 16:41 |
|
FauxFaux
| infid: Also, o'really do those, and they basically publish books at random. | 16:41 |
|
sekhmet
| IMO if you're already familiar with non-distributed VCSes, you can hop into git using similar workflows within a few minutes | 16:41 |
|
sorin
| sekhmet, It would have been nice to hide Git's complexity for simple use cases. | 16:41 |
|
sekhmet
| I suppose | 16:41 |
| → f0i joined | 16:42 |
| → dcarper joined | 16:42 |
|
sorin
| I'm sure libgit2-based clients will fix Git's ugliness. | 16:42 |
|
cbreak
| you found uglyness in git? | 16:43 |
|
bremner
| as long you write to suit your definitions, I agree. when libgit2 is finished. | 16:43 |
|
ManDay
| In order to extract one directory and its contents from a repository and turn it into an own repository I first need to clone the reposirtory before I run filter-branch, so that I dont loose the rest, right? | 16:43 |
|
FauxFaux
| Should put some time into that. | 16:43 |
|
bremner
| sorin: you can already use mercurial as a git client aiui. | 16:43 |
|
cbreak
| ManDay: you can just make a branch | 16:43 |
| → possibilities joined | 16:44 |
|
sorin
| bremner, You can, but it doesn't support everything. | 16:44 |
|
ManDay
| cbreak: and then? | 16:44 |
|
cbreak
| filter-branch | 16:44 |
|
ManDay
| After I filtered the branch, how I separate the two? | 16:44 |
| ← dfr|mac left | 16:45 |
|
ManDay
| So that I got two distinct repos with separate history (both of which have no longer notion of the other) | 16:45 |
|
bremner
| sorin: well, that's not git's fault ;) | 16:45 |
| → toabctl joined | 16:45 |
|
cbreak
| branches are separate | 16:45 |
| → towski joined | 16:45 |
|
cbreak
| you can push them somewhere else | 16:45 |
|
| or just clone before or after the filtering | 16:45 |
|
ManDay
| cbreak: And that will not clone/push the data that is contained in the branch which has not been filtered? | 16:46 |
|
cbreak
| depends... | 16:46 |
|
| it's git. your choice what to fetch/push | 16:46 |
|
ManDay
| I don't understand that. If I "filter the branch" and the other branches remain uneffected, that means the history is still haning arround | 16:47 |
|
| Doesn't it? | 16:47 |
| → LouisJB joined | 16:47 |
|
cbreak
| sure | 16:47 |
|
sorin
| bremner, bzr has a pretty decent interface. Hopefully, a libgit2-based client will look at it for inspiration. | 16:47 |
|
ManDay
| but i want to get rid of everything that is related to that directory | 16:47 |
|
cbreak
| then just do that | 16:48 |
|
ManDay
| cbreak: with that new repository i want to extract there should no longer be a bit associated with the old data | 16:48 |
|
| cbreak: can you please make an example? | 16:48 |
|
cbreak
| why? | 16:48 |
|
bremner
| sorin: well, maybe. Or you could just propose patches to git. Previous separate interfaces have not been sustainable (see e.g. cogito) | 16:48 |
|
cbreak
| it's all simple git commands | 16:48 |
|
| push what you want | 16:48 |
| ← macmartine left | 16:48 |
|
cbreak
| delete what you don't want | 16:48 |
|
| fetch what you want | 16:48 |
|
| there's nothing special about it | 16:48 |
|
ManDay
| cbreak: Of course there is | 16:49 |
|
| I want to rid the repository of all the history associated with the parent directory. | 16:49 |
|
cbreak
| there's nothing special about it | 16:49 |
|
| just do it | 16:49 |
|
ManDay
| *how* | 16:49 |
|
cbreak
| you've ever looked at man git-branch? | 16:49 |
| ← Rvl left | 16:49 |
|
cbreak
| it can delete branches | 16:49 |
|
sorin
| bremner, neah. People who are used to Git's ugliness tend to oppose such patches. | 16:49 |
|
cbreak
| or git fetch? it can fetch branches | 16:50 |
| → Textmode joined | 16:50 |
| → macmartine joined | 16:50 |
|
ManDay
| cbreak: If I fetch a branch, i fetch the history associated with it. | 16:50 |
|
cbreak
| that's the whole point... | 16:50 |
|
ManDay
| I dont want the history. | 16:50 |
|
cbreak
| then DO NOT FETCH THE BRANCH! | 16:51 |
|
ManDay
| Thats what I meant by | 16:51 |
|
cbreak
| is that so hard? | 16:51 |
|
| fetch what you want | 16:51 |
|
| do NOT fetch what you do NOT want | 16:51 |
|
| it's like photoshop | 16:51 |
|
| if you don't want the picture to be pink | 16:51 |
|
| don't paint it pink | 16:51 |
| ← f0i left | 16:51 |
| ← ZapZ left | 16:51 |
|
ManDay
| cbreak: if its so easy please make an example. I want to extract A/B1/C1 from the A repository as an own repository, how? | 16:52 |
|
cbreak
| git branch -d branch1 deletes branch1 | 16:52 |
|
| got it? | 16:52 |
|
selckin
| http://www.google.com/search?q=git+split+repo | 16:52 |
|
cbreak
| just delete all you don't want | 16:52 |
|
| or git fetch remotename branchname | 16:53 |
|
| fetches the branch into FETCH_HEAD | 16:53 |
| → canton7 joined | 16:53 |
| ← macmartine left | 16:54 |
| → f0i joined | 16:54 |
|
ManDay
| cbreak: this is not helpful | 16:54 |
|
cbreak
| because you don't read what I write! | 16:54 |
|
| I answered your question like 5 times | 16:54 |
|
ManDay
| selckin: Yes, the thread on StackOverflow does do it the way i suggested. | 16:54 |
|
| cbreak: You keep talking about fetching branches which makes no sense to me. thats why i asked for an example | 16:55 |
|
EugeneKay
| ManDay - you want to split a directory out? filter-branch. The command is misnamed, it's really filter-work-tree. | 16:55 |
|
cbreak
| do you know git fetch? | 16:55 |
| → thoraxe joined | 16:55 |
|
cbreak
| do you know what it does? | 16:55 |
|
thoraxe
| if i wanted to grab a previous commit to test what i might have broken, i always forget how to do that | 16:55 |
|
cbreak
| EugeneKay: wrong | 16:56 |
|
| it filters branches, not the work tree, so it's filter-branch, not filter-worktree... | 16:56 |
|
ManDay
| cbreak: If you could drop your permantent counter-questions and eventually answer straight-ahead i might actually understand it. | 16:56 |
|
cbreak
| if you want filter-worktree, look at sed or awk | 16:56 |
|
| ManDay: ok, I assume you know nothing about git | 16:56 |
|
ManDay
| then you assume wrong. | 16:56 |
|
selckin
| ManDay: what part of the stackoverflow awnser do you have problems with | 16:57 |
|
cbreak
| ManDay: then don't pretend you're a moron | 16:57 |
|
| if you know git fetch | 16:57 |
|
EugeneKay
| cbreak - filtering a "branch" to me means to filter out differing branches. filter-branch works on the repo itself.... this is just how I'm looking at it, within the context of the usual usage. | 16:57 |
|
cbreak
| then you know that it fetches history | 16:57 |
|
| make a new repo | 16:57 |
|
| fetch the branch you want | 16:57 |
|
| done! | 16:57 |
|
EugeneKay
| It may be wrong, but it makes sense, within context. | 16:57 |
|
cbreak
| is that so hard to get? | 16:57 |
|
ManDay
| none selckin. Since it is exactly what I said. But cbreak started claiming that I would not have to clone that repo a priori and instead fetch something, so I got involved with him. | 16:57 |
|
cbreak
| EugeneKay: filter-branch means you're filtering a branch | 16:57 |
|
ManDay
| cbreak: Not per se | 16:57 |
|
cbreak
| you put a branch into it and get the filtered branch out | 16:58 |
| ← cesc left | 16:58 |
|
cbreak
| ManDay: not per se? | 16:58 |
|
EugeneKay
| cbreak - it depends on how oyu look at it. From a git internals perspective that makes sense, but looking at the filesystem, not quite as much. | 16:58 |
|
ManDay
| cbreak: I'm not entirely convinced (or understood how) the history will be gone from the branch by fetching it. | 16:58 |
|
cbreak
| EugeneKay: who cares about the filesystem? it's not involved | 16:59 |
|
EugeneKay
| cbreak - and, as far as "how hard is it to understand", history suggests that unlearning a concept is harder than learning a new one. See the group of people who are convinced that Windows 7 is the invention of the devil, and XP is the one true windows. | 16:59 |
|
cbreak
| ManDay: you fetch the branch you want to keep! | 16:59 |
| → ajpiaNOU joined | 16:59 |
| ← ajpiaNOU left | 16:59 |
|
cbreak
| the branches you do NOT fetch are not there | 16:59 |
|
| got it? | 16:59 |
|
| if you only want to keep the new filteredBranch, just fetch that branch | 17:00 |
| → ajpiaNOU joined | 17:00 |
| ← ajpiaNOU left | 17:00 |
|
ManDay
| cbreak: You're really making it hard to understand you if you are deliberately not replying to questions but instead leading a monologue one is supposed to learn from. | 17:00 |
|
cbreak
| all other branches will not be there because you did not fetch them | 17:00 |
|
| I answered your question like 8 times by now | 17:00 |
|
| but you're acting like a read only medium :( | 17:01 |
| → ajpiaNOU joined | 17:01 |
| ← ajpiaNOU left | 17:01 |
| → __iron joined | 17:01 |
|
EugeneKay
| cbreak - repeating yourself 8 times is doing him no good when he doesn't understand the explanation. ;-) | 17:01 |
| ← canton7 left | 17:01 |
|
cbreak
| he doesn't say what he doesn't get | 17:01 |
|
sekhmet
| TYPE LOUDER | 17:01 |
|
ManDay
| cbreak: I bet you tried. But it really didn't come across. For whose fault it might be. | 17:01 |
|
cbreak
| ok, noob edition | 17:01 |
|
EugeneKay
| So, stop wasting your time and let somebody else pound it into his head :-p | 17:01 |
| → ajpiaNOU joined | 17:01 |
| ← ajpiaNOU left | 17:01 |
|
ManDay
| sekhmet: excellent idea, lol | 17:01 |
|
cbreak
| init a fresh repository | 17:01 |
|
shturm
| how do i set .gitignore to ignore any files under a folder/ but keep the folder sutrcture ? | 17:01 |
|
cbreak
| what history do you have? | 17:02 |
|
| NO HISTORY | 17:02 |
|
EugeneKay
| shturm - git doesn't track folders, only files within them. | 17:02 |
|
cbreak
| because it's a fresh repository | 17:02 |
|
| then you fetch the history you want with git fetch | 17:02 |
|
| what history do you have now? | 17:02 |
|
| the history you want! | 17:02 |
|
| anything else? NO! | 17:02 |
|
| why not? because you didn't fetch anything else! | 17:02 |
|
| horay! | 17:02 |
|
EugeneKay
| You can touch&add a foo/bar/.folder file within an ignored folder foo/bar/ to make the dir create. | 17:02 |
| → canton7 joined | 17:03 |
|
ManDay
| Does anyone else see a point in what cbreak says with regard to my question? | 17:04 |
|
| (Which is how to get rid of history based upon which directory it belongs to - in other words just keep the history of one specific directory) | 17:04 |
| → Squarism joined | 17:04 |
|
| selckin sides with cbreak and thinks ManDay needs some sleep | 17:04 |
| ← dnivra left | 17:05 |
| ← _iron left | 17:05 |
| → harsh joined | 17:05 |
|
EugeneKay
| ManDay - So, you want to remove foo/ from history? Like it never existed? | 17:05 |
| → alexim joined | 17:05 |
| ← ManDay left | 17:05 |
| ← alexim left | 17:06 |
| → ManDay joined | 17:06 |
|
ManDay
| Sorry, you know the story with my ATH card. | 17:06 |
|
DireFog
| OK, just for dummies, this should work when starting from a freshly cloned repo, right? git filter-branch -d /tmp/lolrebase2 --subdirectory-filter merb-core --tag-name-filter cat --prune-empty | 17:06 |
|
ManDay
| cbreak: My problem with your suggestion is that I don't see where the "abandoning the other history" comes in. | 17:06 |
| ← bloopletech left | 17:06 |
|
selckin
| ManDay: the making a new repo part | 17:06 |
| ← canton7 left | 17:07 |
|
cbreak
| ManDay: man git filter-branch | 17:07 |
|
| ever heard of it? | 17:07 |
|
| as I said like half an hour ago... | 17:07 |
|
| it filters a branch | 17:07 |
|
ManDay
| cbreak: What happens with the history in the commits which the branch shares with branches which I did NOT filter? | 17:07 |
| ← f0i left | 17:08 |
|
cbreak
| ManDay: the whole branch gets filtered | 17:08 |
|
| the filtered version has no commits in common with other branches | 17:08 |
|
ManDay
| Aha. | 17:08 |
|
EugeneKay
| filter-branch usually ends up rewriting all history in the repo, because the SHA1 chain changes from the first commit on up. | 17:08 |
|
cbreak
| maybe the initial commit, but that'd be a very rare case, which doesn't matter | 17:08 |
|
ManDay
| cbreak: That explains it. | 17:08 |
|
EugeneKay
| So you have to throw out all fo the old packfiles, etc. | 17:09 |
|
cbreak
| EugeneKay: no | 17:09 |
| → canton7 joined | 17:09 |
| ← canton7 left | 17:11 |
| ← envi left | 17:11 |
| ← Pupeno left | 17:13 |
| → canton7 joined | 17:13 |
| → Error404NotFound joined | 17:13 |
| → flavius joined | 17:13 |
| ← w0bni left | 17:13 |
| → ajpiaNOU joined | 17:16 |
| ← ajpiaNOU left | 17:16 |
| → munificent_ joined | 17:16 |
| → ajpiaNOU joined | 17:17 |
| ← ajpiaNOU left | 17:17 |
| → robotmay joined | 17:17 |
| → f0i joined | 17:17 |
| → ajpiaNOU joined | 17:18 |
| ← ajpiaNOU left | 17:18 |
|
shturm
| thanx EugeneKay | 17:18 |
| → w0bni1 joined | 17:18 |
|
munificent_
| i'm having a "fatal: The remote end hung up unexpectedly" problem pushing to github, which i don't *think* is related to ssh. (https://gist.github.com/1225296) any ideas? | 17:21 |
| → j0llyr0tten joined | 17:21 |
|
j0llyr0tten
| hi, anybody can instruct me on signing a tag? | 17:21 |
| ← Squarism left | 17:22 |
|
FauxFaux
| munificent_: git branch -avv; git remote -v | 17:22 |
|
j0llyr0tten
| i have a public/private key pair already for github.com and i thought i might be able to use that pair? | 17:22 |
|
FauxFaux
| j0llyr0tten: Wrong kind of key; gpg and ssh kkeys are unrelated. | 17:22 |
|
j0llyr0tten
| FauxFaux: i did not know that ... interesting, i thought all keys are created equal | 17:23 |
|
munificent_
| FauxFaux, https://gist.github.com/1225300 | 17:23 |
| ← toabctl left | 17:23 |
|
FauxFaux
| j0llyr0tten: Arguably a key is just a random number, and you can probably kind of convert between them, but... :) | 17:23 |
| → Targen joined | 17:24 |
|
FauxFaux
| munificent_: Looks fine; that's me out of guesses. :) | 17:24 |
|
j0llyr0tten
| FauxFaux: i'll look up how to use GPG on Mac OS X cuz that's what I'm on, if I run into trouble using it the key I generate with git I'll come back here | 17:24 |
|
| FauxFaux: thx | 17:24 |
|
munificent_
| :( thanks anyway. | 17:24 |
|
ManDay
| cbreak: The counterpart for the subdirectory-filter will be the index-filter, to remove the extracted directory from the repo, right? | 17:26 |
|
cbreak
| hmm? it's not reversible | 17:26 |
|
| oh, yes | 17:26 |
|
| that kind of counterpart | 17:26 |
| → rolfb_ joined | 17:27 |
| → Saur joined | 17:27 |
| ← Saur left | 17:27 |
| → lacrymology joined | 17:27 |
|
canton7
| munificent_: try GIT_TRACE=1 git push ? | 17:29 |
|
munificent_
| trying... | 17:29 |
|
ManDay
| cbreak: thanks | 17:30 |
|
canton7
| munificent_, and you haven't suddenly gone behind a new firewall, have you? try cloning a random repo over ssh | 17:31 |
| → normanrichards joined | 17:31 |
|
munificent_
| no, i don't think so. just on my usual home wifi. let me try grabbing a random repo. | 17:31 |
|
canton7
| actually that's a dumb suggestion. try sshing into anything, though | 17:31 |
| → kumbayo joined | 17:32 |
| ← f0i left | 17:32 |
|
munificent_
| i've trying pushing and pulling from other repos of mine and that doesn't seem to work either. | 17:32 |
|
canton7
| can you ssh into *anything*? | 17:33 |
| → leen^| joined | 17:33 |
|
munificent_
| i not sure, any idea what servers i should be able to connect to? i don't use ssh much/ever. | 17:33 |
|
canton7
| munificent_, ssh 178.79.161.15 ? | 17:35 |
|
| success is a prompt for password | 17:35 |
|
j0llyr0tten
| FauxFaux: hi again, any idea where i need to put the key? | 17:35 |
| → gnufied joined | 17:35 |
|
FauxFaux
| j0llyr0tten: I thought it Just Worked... although, you did say OS X. | 17:35 |
|
munificent_
| result of GIT_TRACE=1 git push: https://gist.github.com/1225296 | 17:35 |
|
ManDay
| cbreak: Any idea how it is with the history with filter-branch --index-filter? Will all history associated with a file be garbage-collected if I prune it out of all indices in all commits? | 17:36 |
| → p3rror joined | 17:36 |
|
munificent_
| also, ssh 178.79.161.15 is just sitting there, so it's probably going to fail too... | 17:36 |
|
cbreak
| what? | 17:36 |
|
j0llyr0tten
| FauxFaux: hold on, i may not have specified the signing key correctly | 17:36 |
| ← Dave^|| left | 17:36 |
|
cbreak
| unless you fetch the new branch into a new repository, the old history will stick around for a long time | 17:36 |
| → madprops joined | 17:36 |
|
cbreak
| kept alive by reflog, other branches, tags, ... | 17:36 |
| ← kadoban left | 17:37 |
|
canton7
| munificent_ sounds like the problem is your end, namely that something's blocking your ssh attempts | 17:37 |
| ← ManDay left | 17:37 |
|
munificent_
| yeah, looks like it. weird. thanks! | 17:37 |
| → ManDay joined | 17:37 |
|
ManDay
| Any idea how it is with the history with filter-branch --index-filter? Will all history associated with a file be garbage-collected if I prune it out of all indices in all commits? | 17:37 |
|
canton7
| munificent_, as a work-around, you can always push over http | 17:37 |
|
thiago
| ManDay: garbage collection happens at a later time | 17:38 |
|
munificent_
| thanks canton7, i'll try that. | 17:38 |
|
thiago
| it's independent of filter-branch | 17:38 |
| ← munificent_ left | 17:38 |
|
canton7
| munificent_, sweet np | 17:38 |
|
ManDay
| thiago: so what does actually happen when I filter a file out of the index at certain commits with filter-branch and how can I get it to eventually completely disappear? | 17:39 |
|
thiago
| ManDay: it removes from the commits | 17:39 |
|
cbreak
| ManDay: read above | 17:39 |
|
thiago
| ManDay: but filter-branch keeps a backup. You have to delete it. | 17:39 |
|
j0llyr0tten
| FauxFaux: done! it just works once i tell the config the signing key id correctly | 17:39 |
|
cbreak
| if you want to make it really clean, do as I told you hours ago, and fetch the new history into a new repository | 17:40 |
|
j0llyr0tten
| FauxFaux: do i need to git push the tag now? | 17:40 |
|
ManDay
| cbreak: I got that | 17:40 |
|
cbreak
| if you do NOT do that, the old history will stick around | 17:40 |
|
ManDay
| Does that also work for the --index-filter (the counterpart) | 17:40 |
|
cbreak
| for probably a month or longer | 17:40 |
|
| it works for any kind of history rewriting | 17:40 |
|
FauxFaux
| j0llyr0tten: If you want people to see it, yes. | 17:40 |
| → OOPMan joined | 17:40 |
|
ManDay
| cbreak: In the case of --index-filter i do not really understand what happens. If I remove a file from the index at only specific times, for example, what will happen in the file in the future comits? | 17:41 |
|
j0llyr0tten
| FauxFaux: but I did not tag a commit :( i tagged nothing it seems :( | 17:41 |
|
cbreak
| ManDay: they will be there | 17:41 |
|
| inex-filter filters each commit individually | 17:41 |
|
| so if you remove a file only in the first half of the commits, it would appear as if it was added the start of the second half | 17:42 |
| ← metcalfc left | 17:42 |
|
cbreak
| this is different from rebase -i of course | 17:42 |
|
ManDay
| it would be in the future commits unchanged? | 17:42 |
|
wereHamster
| ManDay: filter-branch works on commits. It gives you each commit in the range you specify and you can modify each commit however you want. | 17:43 |
|
ManDay
| wereHamster: But arent the second half of commits based upon the first half | 17:43 |
|
| So if I mess with the first half it has consequences for the second half? | 17:43 |
| ← w0bni1 left | 17:43 |
|
wereHamster
| ManDay: it looks at each commit individually | 17:43 |
|
cbreak
| ManDay: tree/index filter filter the tree/index of a commit | 17:44 |
| ← possibilities left | 17:44 |
|
cbreak
| ONLY a commit | 17:44 |
|
DireFog
| so yay, it seems like this repository is ultimately breaking filter-branch. | 17:44 |
|
ManDay
| wereHamster: cbreak : yes i got that | 17:45 |
|
DireFog
| https://gist.github.com/1225318 | 17:45 |
|
| just farking ONCE I'd like a tool to just work. | 17:45 |
| → beto joined | 17:46 |
|
ManDay
| i just dont understand how it can go without consquences. if I travel back to the past and change something, that will have consequences for the future no? | 17:46 |
|
cbreak
| ManDay: no | 17:46 |
|
| think of git as a series of snapshots | 17:46 |
| ← diegoviola left | 17:46 |
| ← beto left | 17:46 |
|
cbreak
| imagine you take a picture of a house that is built | 17:46 |
|
| now with filter-branch you go back and filter out the fundament of the first three pictures | 17:46 |
|
| this doesn't change any of the latter ones | 17:47 |
| ← subbyyy left | 17:47 |
|
cbreak
| git works with snapshots | 17:47 |
| → subbyyy joined | 17:47 |
|
ManDay
| i read that. but technically - doesnt git base its commits upon diffs? | 17:47 |
| → diegovio1a joined | 17:47 |
|
ManDay
| if I change something in the past, those diffs wont patch any longer, no? | 17:48 |
|
cbreak
| no | 17:49 |
|
| http://eagain.net/articles/git-for-computer-scientists/ | 17:50 |
|
Araxia__
| ManDay: your thinking about git is being unduly influenced by your familiarity with other vcs systems. | 17:50 |
|
cbreak
| look at the third picture | 17:50 |
| syphar|away → syphar | 17:50 |
| → haydenmuhl joined | 17:51 |
|
ManDay
| cbreak: I know | 17:51 |
| ← canton7 left | 17:51 |
|
cbreak
| then why do you say "based on diffs"? | 17:51 |
|
ManDay
| But that abstract representation doesnt tell me how this is implemented. | 17:51 |
|
cbreak
| no | 17:51 |
|
| it's not an abstract representation | 17:51 |
|
| it tells you how it is implemented | 17:52 |
|
ManDay
| oh | 17:52 |
| ← diegovio1a left | 17:52 |
| → jbrokc joined | 17:52 |
| ← jbrokc left | 17:52 |
|
cbreak
| git stores files as blobls. | 17:52 |
|
ManDay
| so you mean that every commit has a full description of the tree associated with it (which can stand alone)? | 17:52 |
|
cbreak
| it stores tree objects that point to those blobs, giving them file names | 17:52 |
|
| trees can contain other trees, making subfolders | 17:52 |
|
| a commit points to a tree | 17:52 |
|
ManDay
| i know | 17:53 |
|
| hm | 17:53 |
|
cbreak
| the commit therefore refers to every single file | 17:53 |
|
| not diffs | 17:53 |
|
| not patches | 17:53 |
|
ManDay
| i guess i kind of got it. i need to think that over | 17:53 |
| → doug joined | 17:53 |
|
cmyers
| it is dififcult to wrap your brain around at first, but once you do, very powerful | 17:53 |
| ← brian_g left | 17:53 |
| → f0i joined | 17:53 |
|
cbreak
| as I said, http://eagain.net/articles/git-for-computer-scientists/ :) | 17:53 |
|
doug
| is there a way to tell what branches exist in a remote repo? | 17:53 |
| → toabctl joined | 17:53 |
|
cbreak
| doug: man git-ls-remote | 17:53 |
|
doug
| cool. does that allow a hook on the remote side? | 17:54 |
|
cbreak
| what? | 17:55 |
|
| it doesn't matter if the remote has a hook | 17:55 |
|
| it won't be run for listing remote refs | 17:55 |
|
doug
| so, i can't set up a hook for that one on the remote repo? | 17:56 |
| iband → iband|away | 17:56 |
|
cbreak
| for doing what? | 17:56 |
|
| anyway, food :) | 17:56 |
|
| man githooks lists all hooks you can have | 17:56 |
| syphar → syphar|away | 17:57 |
| → canton7 joined | 17:57 |
|
doug
| hm, seems there no hook for that one. | 17:58 |
|
cmyers
| doug: a hook doesn't make much sense - what do you want to accomplish? | 17:58 |
| ← mino left | 17:58 |
|
doug
| ask me in a month or two | 17:59 |
|
cbreak
| do you know gitolite? | 17:59 |
| → vbajpai joined | 18:00 |
| → dexter_e joined | 18:00 |
|
doug
| yup, i'm using that. | 18:00 |
| iband|away → iband | 18:01 |
|
vbajpai
| I want to move my public projects from bitbucket to github? how do I export an hg project to git (I have tried the hg-git extension; and I cannot get it to install) | 18:01 |
|
Araxia__
| vbajpai: what os? | 18:01 |
|
bremner
| vbajpai: there is a nice git-hg tool based on fast-export | 18:01 |
|
vbajpai
| Mac OS X | 18:02 |
|
| bremner: are you talking about: http://hg-git.github.com/ ? | 18:02 |
|
bremner
| http://repo.or.cz/w/fast-export.git | 18:02 |
|
doug
| cbreak++ | 18:03 |
|
| thanks | 18:03 |
|
Araxia__
| try `sudo easy_install hg-git` | 18:03 |
| → guns joined | 18:03 |
| → d0k_ joined | 18:03 |
|
bremner
| but is that even the right tool? | 18:03 |
|
Araxia__
| yeah, i used it just a few weeks ago. works quite well. | 18:03 |
|
bremner
| ok | 18:03 |
| ← d0k left | 18:04 |
| d0k_ → d0k | 18:04 |
| ← f0i left | 18:04 |
| → mino joined | 18:05 |
| ← toabctl left | 18:06 |
| → f0i joined | 18:07 |
| ← cyphase left | 18:08 |
|
vbajpai
| Araxia__: it has a weird dependency on a version of dulwich which is not even out yet | 18:09 |
| → possibilities joined | 18:09 |
|
Araxia__
| dulwich? hrm. i never had to do anything with that. what version of os x? | 18:10 |
| → Tyraziel joined | 18:10 |
|
vbajpai
| lion | 18:11 |
| ← cjs left | 18:11 |
|
Araxia__
| i've got a lion box i haven't installed this on yet. let me see if i can get it working there. | 18:12 |
| → jbrokc joined | 18:12 |
| → alester joined | 18:15 |
| ChanServ set mode: +v | 18:15 |
|
Tyraziel
| Hi all. Just installed GIT and was about to create a repository however I have a few "best practice" questions, if someone could provide some guidance..... | 18:16 |
|
Araxia__
| vbajpai: i assume you're using hg 1.9.x, no? | 18:17 |
|
vbajpai
| yep 1.9.2 | 18:17 |
|
wereHamster
| Tyraziel: man gittutorial | 18:18 |
|
Araxia__
| okay, looks like there's an incompatibility. but if you grab hggit from the repo, you can get it to work pretty easily. instructions coming... | 18:18 |
|
vbajpai
| Araxia__: well here was my question: http://stackoverflow.com/questions/7388814/switching-mercurial-projects-bitbucket-to-git-github | 18:19 |
| → masonkramer joined | 18:19 |
|
vbajpai
| I have tried the repo thingy as well | 18:19 |
|
Araxia__
| `git clone [email@hidden.address] then edit your .hgrc [extensions] hggit= /path/to/repo/hggit | 18:20 |
|
| Araxia__ tried that? | 18:20 |
|
vbajpai
| yes | 18:20 |
|
| and then I get *** failed to import extension hggit from ~/.bin/hg-git/hggit: No module named dulwich.errors | 18:20 |
| ← scarabx left | 18:20 |
|
vbajpai
| even though I can import duwlich and dulwich.errors in a python interpreter just fine | 18:21 |
|
Araxia__
| weird. let me review that page and see what i can come up with. | 18:21 |
|
| this was dead simple for me a few weeks ago. :-P | 18:22 |
| → drith joined | 18:22 |
|
vbajpai
| yeah, apparately somebody mistakenly bumped up dulwich requirements a week back, and easy_install thing has got broken since then | 18:22 |
| ← hsingh left | 18:23 |
| → ^Mike joined | 18:23 |
| syphar|away → syphar | 18:23 |
| → mjt joined | 18:23 |
|
Tyraziel
| wereHampster -- my questions deals with handling multiple projects with GIT and the best practices around that. | 18:24 |
|
wereHamster
| Tyraziel: each project in its own repository | 18:25 |
|
Araxia__
| vbajpai: hrm. `which dulwich` for me points to `/usr/local/bin/`, though i don't see it in `brew list` | 18:25 |
|
selckin
| Tyraziel: it helps to actually ask a question | 18:25 |
|
wereHamster
| usually, at least | 18:25 |
|
| sometimes, we can read minds | 18:25 |
|
| but not this case | 18:25 |
|
Tyraziel
| wereHamster - that actually answers my question | 18:26 |
|
Araxia__
| vbajpai: are you using homebrew? | 18:26 |
| → herdrick joined | 18:26 |
| → tshauck joined | 18:26 |
|
vbajpai
| yes, but a brew search dulwich doesn't give me anything | 18:26 |
| ← muneeb left | 18:26 |
|
vbajpai
| Araxia__: ^ | 18:26 |
| → muneeb joined | 18:26 |
|
Araxia__
| yeah, i'm thinking it gets installed as part of something else. i have git-hg and git-extras installed. | 18:27 |
| → jceb joined | 18:27 |
|
vbajpai
| tortoiseHG maybe | 18:28 |
| syphar → syphar|away | 18:29 |
| → brian_g joined | 18:29 |
| → warlock_mza joined | 18:29 |
| ← Tyraziel left | 18:31 |
|
vbajpai
| okay, hg-fast-export worked for me | 18:34 |
|
| I am going to use that for now | 18:34 |
|
| Araxia__: thanks for the help :-) | 18:34 |
|
| bremner: thanks for the suggestion | 18:34 |
| ← vbajpai left | 18:35 |
|
bremner
| welcome | 18:35 |
| ← f0i left | 18:35 |
| ← towski left | 18:35 |
| ← evelyette left | 18:36 |
| → cesc joined | 18:36 |
|
DireFog
| can't even tree-filter the file that causes the problem | 18:36 |
| → Heimidal joined | 18:37 |
| ← sbell left | 18:38 |
| ← Targen left | 18:38 |
| ← kermit left | 18:39 |
| ← ajpiano left | 18:39 |
| → metcalfc joined | 18:40 |
| → munificent_ joined | 18:40 |
| → workmad3 joined | 18:40 |
| → ajpiano joined | 18:41 |
|
munificent_
| canton7, i fixed my issue with pushing to git (or really, my ssh issue). strangely, all it took was a reboot. <shrug> | 18:41 |
| ← iband left | 18:42 |
| → caseymcg joined | 18:42 |
| → w0bni joined | 18:43 |
|
ManDay
| cbreak: wereHamster I filtered one branch and wanted to filter another now - now it speaks about a backup being overridden | 18:43 |
|
cbreak
| yeah. you have to delete it. | 18:43 |
|
ManDay
| that backup is only there to restore the branch which i filtered and is superflous if I had branched it as a beackup measure, right? | 18:43 |
|
cbreak
| your decision. | 18:44 |
|
| it's a copy of the branch you filtered | 18:44 |
| → Rvl joined | 18:44 |
|
ManDay
| yes, but that "copy" in my case is already provided by master, right? | 18:44 |
|
| darn | 18:46 |
| → glennpratt joined | 18:46 |
|
ManDay
| now I rewrote with git rm something/* and it also removed something | 18:46 |
| → hjax joined | 18:46 |
|
ManDay
| How can i prevent it from removing something and only remove everything in something? | 18:46 |
|
wereHamster
| git does not track folders | 18:47 |
|
| if you delete all files in a folder that folder disapears | 18:47 |
| → theoros joined | 18:47 |
|
hjax
| hello i seem to be having a problem with git (i have never used it before0 when i try to use the command "git push -u origin master" it says that the remote end hung up unexpectedly | 18:47 |
| syphar|away → syphar | 18:48 |
| → stoffus joined | 18:48 |
|
ManDay
| wereHamster: right | 18:48 |
|
| thanks | 18:48 |
| ← munificent_ left | 18:49 |
| → Shusshu joined | 18:50 |
|
DireFog
| cbreak: moment of WTF, it works when I don't specify a temp directory | 18:51 |
| → dangerousdave joined | 18:52 |
|
DireFog
| i.e., no -d option | 18:52 |
| syphar → syphar|away | 18:53 |
| ← intchanter left | 18:53 |
| ← doug left | 18:53 |
| ← Davey_ left | 18:53 |
|
dangerousdave
| hi, i have git repository on my laptop which i pulled from my desktop. I accidently deleted my desktop version, so was hoping to recover from my laptop. Problem is, my pull version only seems to have the master branch, and none of the other branches my desktop version had. | 18:54 |
| → f0i joined | 18:55 |
| → intchanter joined | 18:55 |
| → tdebat joined | 18:55 |
| ← stoffus left | 18:56 |
|
jmah
| dangerousdave: usually it will know about other branches of the remote | 18:56 |
|
| even if there isn't a local branch for them | 18:57 |
|
SethRobertson
| git branch -a | 18:57 |
|
jmah
| (run "git branch -r") | 18:57 |
|
dangerousdave
| SethRobertson: they are all there! phew | 18:57 |
|
| jmah: also all there | 18:58 |
| ← agile left | 18:58 |
|
dangerousdave
| so, what state is my repository in now then? | 18:58 |
|
| and how do i get it so that "git branch" shows all branches | 18:59 |
| ← Akari` left | 18:59 |
|
jmah
| on your laptop copy, git checkout each named branch | 19:00 |
| → Akari` joined | 19:00 |
|
jmah
| (if it shows "origin/x", "git checkout x") | 19:00 |
|
| (or, to avoid changing your working copy, "git branch x origin/x") | 19:01 |
|
| then clone it back. | 19:01 |
|
| You need to make local refs for the branches first because remotes only go one level deep | 19:01 |
|
dangerousdave
| jmah: great, thanks for all the help,all working now | 19:03 |
| ← zamabe left | 19:04 |
|
jmah
| pleasure | 19:04 |
| → HG` joined | 19:04 |
|
magnate
| Evening all | 19:04 |
| ← f0i left | 19:05 |
|
magnate
| Does anyone know how to say to git "show me a list of commits which are present in branch 1 but not in branch 2"? | 19:05 |
| → Klif1980 joined | 19:05 |
|
wereHamster
| magnate: git log branch1 ^branch2 | 19:05 |
|
| ^ == not | 19:05 |
| ← hjax left | 19:06 |
|
magnate
| Excellent - thanks | 19:06 |
|
| I should have known it would be something simple! | 19:06 |
|
| Trying it now | 19:06 |
| → AlexC_ joined | 19:06 |
|
AlexC_
| g'morning | 19:06 |
|
jmah
| are they the same commits? or different commits with the same effect? (for that there's "git cherry") | 19:06 |
| ← Prasad left | 19:07 |
|
AlexC_
| I have two branches, 3.2.x and master. The master branch has many many different commits that I would never want in 3.2, however there is some commits that I want to merge into 3.2.x. What is the best way of doing this? I know about cherry-pick, but I also know that breaks a lot of the history | 19:07 |
| → archis joined | 19:07 |
|
wereHamster
| AlexC_: why do you think it breaks history? | 19:07 |
| ← archis left | 19:08 |
|
jmah
| I agree that it's not great on your history, but I think it's still the best way | 19:08 |
|
AlexC_
| wereHamster: hum, I was under the impression that it did - since they are effectively two different commits | 19:08 |
|
wereHamster
| AlexC_: can you elaborate on the 'break' aspect? | 19:08 |
|
AlexC_
| wereHamster: not entirely; maybe break wasn't the best word | 19:09 |
|
wereHamster
| maybe | 19:09 |
|
jmah
| it the cherry-pick applies cleanly, some tools can deal with it nicely (like git-cherry) | 19:10 |
|
| but if you need to fix up conflicts, I don't know of anything that considers them equivalent | 19:10 |
| ← alnewkirk left | 19:10 |
|
AlexC_
| the commits will apply cleanly (at least, that is the plan) | 19:10 |
|
jmah
| isn't it always :) | 19:11 |
|
AlexC_
| :) | 19:11 |
|
cybersphinx
| wereHamster: Is "git log branch1 ^branch2" different from "git log branch2..branch1"? | 19:11 |
|
AlexC_
| ok, thanks. I'll go cherry picking | 19:11 |
| ← cesc left | 19:11 |
|
wereHamster
| cybersphinx: no, it's exactly the same | 19:11 |
| → bauruine joined | 19:11 |
| ← madprops left | 19:12 |
| → macmartine joined | 19:13 |
|
cybersphinx
| Ok. Never saw the ^ version before. | 19:13 |
|
wereHamster
| cybersphinx: you've never read man git-rev-parse | 19:14 |
| ← gretch left | 19:14 |
| → maestrojed joined | 19:14 |
| ← guns left | 19:15 |
|
cybersphinx
| Very possible. | 19:15 |
| ← AlexC_ left | 19:15 |
| → gbacon joined | 19:16 |
| ← demi` left | 19:16 |
| ← ^Mike left | 19:16 |
| → f0i joined | 19:17 |
| ← dexter_e left | 19:19 |
| ← rolfb_ left | 19:19 |
| → macmartine_ joined | 19:19 |
|
magnate
| wereHamster: it worked a treat - many thanks | 19:19 |
| ← macmartine left | 19:20 |
| macmartine_ → macmartine | 19:20 |
| ← macmartine left | 19:20 |
|
selckin
| i really wish i could use head instead of HEAD | 19:20 |
| ← robotmay left | 19:20 |
|
selckin
| typing caps just doesn't flow | 19:21 |
| ← warlock_mza left | 19:22 |
| ← alester left | 19:22 |
|
jmah
| selckin: any command in particular? | 19:22 |
|
selckin
| any refspec | 19:23 |
| ← canton7 left | 19:23 |
| → demi` joined | 19:25 |
| → redii joined | 19:25 |
| ← resmo_ left | 19:26 |
| → resmo_ joined | 19:26 |
|
ManDay
| Do you know how to create a new repository on gitorious? | 19:28 |
| → VxJasonxV joined | 19:28 |
| ← CannedCorn left | 19:28 |
| → chrisf_ joined | 19:29 |
| → pantsman joined | 19:30 |
| ← pantsman left | 19:30 |
| → pantsman joined | 19:30 |
|
VxJasonxV
| is it possible to delete the 'push' only portion of a remote? | 19:31 |
| ← f0i left | 19:31 |
| ← nazgul101 left | 19:31 |
| ← nyuszika7h left | 19:32 |
| ← maestrojed left | 19:32 |
| → sylr joined | 19:33 |
|
jmah
| VxJasonxV: please explain | 19:34 |
| → nazgul101 joined | 19:34 |
| ← tshauck left | 19:34 |
|
VxJasonxV
| when I clone a third party repo, I have a fetch and a push url | 19:34 |
|
| I have no permission to push, so I don't wish to enable certain software (github for mac) to try. | 19:35 |
| → f0i joined | 19:35 |
| ← adamm left | 19:35 |
|
jmah
| but you still want to pull from it? | 19:36 |
|
VxJasonxV
| yeah | 19:36 |
| ← harsh left | 19:36 |
| ← demi` left | 19:36 |
|
VxJasonxV
| GitHub for Mac has a sync option, but whenever I do I get a push error for a third party repo | 19:36 |
| → maestrojed joined | 19:36 |
| ← gnufied left | 19:36 |
|
ManDay
| How do I list all branches (including remote ones) of a repo? | 19:36 |
| → harsh joined | 19:36 |
| ← maestrojed left | 19:36 |
|
jmah
| git branch -a | 19:36 |
|
VxJasonxV
| I don't know python, so I have no intention of submitting patches to the repo owner, so forking my own repo seems unnecessary. | 19:37 |
|
ManDay
| thanks | 19:37 |
|
VxJasonxV
| I'd rather just maintain a straight clone of their repo. | 19:37 |
|
jmah
| Well it sounds like the GH client wants to push to somewhere, even if you change it | 19:37 |
|
VxJasonxV
| but without errors every time I sync :/. | 19:37 |
|
jmah
| there's Repository > Pull menu item | 19:37 |
|
esc
| VxJasonxV: 'git remote' has a '--set-url' option, perhaps that helps? | 19:37 |
| ← baburdick left | 19:37 |
|
VxJasonxV
| just set it to blank? | 19:37 |
| → maestrojed joined | 19:37 |
|
VxJasonxV
| jmah, is there? I think I've missed it... | 19:38 |
|
esc
| its worth a try, have a look at the manpage first though | 19:38 |
|
VxJasonxV
| oh, so, jmah you're saying don't sync, just pull? | 19:38 |
|
esc
| there is apparently a '--push' option too | 19:38 |
| ← workmad3 left | 19:38 |
|
jmah
| VxJasonxV: yeah probably, if that works | 19:39 |
|
VxJasonxV
| mmm | 19:39 |
| ← nazgul101 left | 19:39 |
|
VxJasonxV
| seems like the better answer is to just not use github for mac for this repo | 19:39 |
| ← SethRobertson left | 19:40 |
| → markit joined | 19:41 |
| ← maestrojed left | 19:41 |
|
VxJasonxV
| git remote set-url --delete --push origin 'https://github.com/rg3/youtube-dl.git' doesn't seem to change much. re-running git remote -v lists both the fetch and the push urls | 19:41 |
| → SethRobertson joined | 19:41 |
|
markit
| hi, newbie here. I've a branch "A", and now I create a new one from it "B". I would like to have a "tree" that shows that there is the main code, branch A and from it branch B. Is it possible? $ git branch shows me in a plain list | 19:42 |
| → maestrojed joined | 19:42 |
|
jmah
| git show-branch | 19:42 |
|
wereHamster
| git log | 19:42 |
| → baburdick joined | 19:42 |
|
jmah
| git log --oneline --graph | 19:43 |
|
markit
| git show-branch works, even if not very clear | 19:43 |
|
| git log --oneline --graph does not show B as being from A | 19:43 |
| → nazgul101 joined | 19:43 |
|
cbreak
| git log --graph --oneline --decorate --all | 19:44 |
|
wereHamster
| markit: git doesnt' store the fact that B was created form A | 19:44 |
|
markit
| AH! | 19:44 |
|
| so I could merge B from whatever branch? | 19:44 |
| ← nazgul101 left | 19:44 |
|
wereHamster
| mrege? | 19:44 |
|
markit
| merge to, sorry | 19:44 |
| ← maestrojed left | 19:44 |
|
wereHamster
| you can merge any commit with any other commit | 19:44 |
|
jmah
| um, sure | 19:44 |
|
markit
| oh... | 19:45 |
|
| but this seems an important information for me | 19:45 |
| ← Shusshu left | 19:45 |
|
wereHamster
| what? | 19:45 |
| ← flavius left | 19:45 |
|
markit
| that a certain branch is "derived" from another one | 19:46 |
|
wereHamster
| well, other people disagree | 19:46 |
|
cbreak
| that's not really the case | 19:46 |
|
| it's like copying an mp3 | 19:46 |
|
| the result are two MP3s that are equivalent | 19:46 |
|
jmah
| don't think of it as one derived from another | 19:46 |
|
cbreak
| you could say one is the original and one is the copy | 19:46 |
|
jmah
| but rather that they used to be the same at a point in history | 19:46 |
|
cbreak
| but data wise, both are exactly the same | 19:47 |
|
markit
| I have a rails project at version 2, I create a branch for upgrade to version 3, then I create from it a branch for a fix I need, but that branch can reasonably be merged only to verion 3, not 2 | 19:47 |
| → macmartine joined | 19:47 |
|
wereHamster
| markit: well, git won't prevent you from trying to merge it into 2 | 19:47 |
| ← macmartine left | 19:47 |
|
wereHamster
| you can try if you really want to. It's up to you not to do it | 19:47 |
|
markit
| if someone else sees branches 2, 3 and "fixed", could be tempted to merge "fixed" to 2 and not to 3 | 19:47 |
| ← DireFog left | 19:48 |
|
wereHamster
| markit: name it fixed-only-for-3 | 19:48 |
|
markit
| I see, good workaround | 19:48 |
|
| thanks for the clarification :) | 19:48 |
| → macmartine joined | 19:48 |
|
herdrick
| question: it looks like git revert to an older commit will try to only un-apply that commit, leaving behind any changes since then | 19:48 |
|
| which is ccol | 19:49 |
| ← metcalfc left | 19:49 |
|
herdrick
| but what if I just want to get the codebase as it existing after that commit? | 19:49 |
| ← field_it left | 19:49 |
|
jmah
| git checkout -b as-it-was <commit> | 19:49 |
|
herdrick
| I just want to go back to an earlier point in time | 19:50 |
|
| jmah, ah, ok, thanks | 19:50 |
|
jmah
| (or you can use "reset" to destructively update the current branch) | 19:50 |
|
cbreak
| herdrick: revert creates undo commits | 19:50 |
|
| reset kills history | 19:50 |
|
markit
| btw, $ git branch shows a "delete" branch in the list... I've no memory of having created it, is it automatic? | 19:50 |
|
cbreak
| pick your tool. | 19:50 |
| ← redii left | 19:51 |
|
herdrick
| jmah: cbreak: ok, that's what i had read about reset - definitely don't want that | 19:51 |
|
wereHamster
| markit: no, you created it | 19:51 |
| → shedammit joined | 19:52 |
| ← f0i left | 19:52 |
| → davzie joined | 19:54 |
|
herdrick
| ok, so in the docs, ex. http://linux.die.net/man/1/git-checkout , <tree-ish> could be anything that could be a tree of code? | 19:54 |
|
| i.e. "commit, tag or tree" | 19:54 |
|
| ? | 19:54 |
| ← OOPMan left | 19:54 |
| → f0i joined | 19:55 |
| → n8o-mba joined | 19:55 |
| → codebeaker joined | 19:55 |
| ← Rvl left | 19:55 |
|
markit
| wereHamster: maybe I wanted to delete a branch, and issued the wrong command that created a "deleted" one? sigh | 19:55 |
|
ManDay
| cbreak: You said that changes only affect the current branch | 19:56 |
|
| is fit filter-branch -- --all an exception to that? | 19:56 |
|
markit
| wereHamster: how can I tell if it's code has been merged? | 19:56 |
|
wereHamster
| ManDay: the --all means you want to apply the changes to all branches | 19:56 |
|
| so yes, it's an 'exception' to that | 19:57 |
|
ManDay
| wereHamster: Hence my question | 19:57 |
|
wereHamster
| markit: git branch --merged | 19:57 |
|
| ManDay: it's not really an exception. You told git to do that. | 19:57 |
| → CannedCorn joined | 19:57 |
|
cbreak
| ManDay: I said "unless told otherwise" :) | 19:57 |
|
| --all affects all | 19:57 |
| ← codebeaker left | 19:58 |
|
markit
| wereHamster: says "* delete" and the following line "master", I guess means it has been merged to master, correct? | 19:58 |
| → zamabe joined | 19:58 |
| ← ajpiano left | 19:58 |
| → ajpiano joined | 19:58 |
|
wereHamster
| markit: no. it means your current branch is delete | 19:58 |
|
| markit: go read a git tutorial | 19:58 |
|
markit
| ok, I feel lost with git | 19:59 |
| ← muneeb left | 19:59 |
|
markit
| better read the basics | 19:59 |
|
wereHamster
| hnece why I said to go read a tutorial | 19:59 |
| ← dcarper left | 19:59 |
|
markit
| yes, good suggestion, I thought was very simple but I've discovered I'm messing it a bit too much, lol | 20:00 |
| ← Klif1980 left | 20:00 |
| ← harsh left | 20:00 |
| → dcarper joined | 20:01 |
| → harsh joined | 20:01 |
| ← dcarper left | 20:02 |
|
ManDay
| cbreak: How do I fetch only one specific branch from the repository at ../mydir/myrepo ? | 20:02 |
|
cbreak
| read man page | 20:03 |
| ← n8o-mba left | 20:03 |
|
cbreak
| it'll end up in FETCH_HEAD | 20:03 |
| → xpot-mobile joined | 20:03 |
|
ManDay
| i dont understand | 20:03 |
| ← localhost left | 20:04 |
|
jmah
| git fetch ../mydir/myrepo thebranch | 20:05 |
| ← mattdipasquale left | 20:05 |
|
ManDay
| oh, so a branch name is a valid refspec, i see | 20:05 |
| → nyuszika7h joined | 20:05 |
| → archis joined | 20:06 |
| ← archis left | 20:06 |
| → localhost joined | 20:06 |
| ← ehsan left | 20:07 |
| ← brian_g left | 20:08 |
| ← masando left | 20:08 |
| → EricInBNE joined | 20:09 |
| → OOPMan joined | 20:09 |
|
ManDay
| why does the fetched branch not show up in git branch? | 20:09 |
|
cbreak
| it'll end up in FETCH_HEAD | 20:09 |
| → brian_g joined | 20:09 |
|
cbreak
| you have to make yourself a branch yourself | 20:09 |
|
ManDay
| and then? how do I get the branch which i fetched checked out? | 20:10 |
| → belkiss joined | 20:10 |
|
cbreak
| man git checkout | 20:10 |
| ← f0i left | 20:11 |
|
ManDay
| i dont see how. it says just what i already know: how to check out an existing branch | 20:11 |
|
wereHamster
| ManDay: see the -b option | 20:11 |
|
| or use git brnach to create the branch before checking it out | 20:11 |
|
ManDay
| wereHamster: It just says that with -b I specify a start point | 20:12 |
|
wereHamster
| it probably does | 20:12 |
|
ManDay
| I still have no clue what happend when the branch got put into "fetch head" | 20:12 |
|
markit
| wereHamster: I'm reading a "git pro" tutorial about merging and branching... I've found the command "git branch --no-merged" that should show not merged brances.. but here shows nothing, while sure I've not merged ror31 to master. Do I have to study this stuff deeply, or is something you can easely enlight me on? | 20:13 |
|
jmah
| git checkout -b other-branch FETCH_HEAD | 20:14 |
|
wereHamster
| markit: checkout master first | 20:14 |
|
markit
| oh, thaks a lot | 20:14 |
| ← chrisf_ left | 20:14 |
|
ManDay
| fatal: Not a valid object name: 'master'. | 20:14 |
|
| When I try to create a branch | 20:14 |
|
wereHamster
| ManDay: the complete command please | 20:15 |
| ← ReekenX left | 20:15 |
|
ManDay
| git branch master | 20:15 |
|
wereHamster
| that doesn't make sense | 20:16 |
|
ManDay
| i guess it doesnt | 20:16 |
|
wereHamster
| you're saying: create a new branch with name 'master' and make it point to the same commit as HEAD | 20:16 |
|
markit
| wereHamster: I've the feeling that I've messed things up a lot, sigh... but I'm not sure if "deleted" is the brench I used to create ror30 and then, from it, ror31. If is so, I could easely merge ror31,otherwise I'm in troubles. That's why I thougth were important know the "merge tree" (what is merged from what) | 20:16 |
|
| or, probably, I'm not aproaching the stuff properly | 20:16 |
|
ManDay
| wereHamster: I still have no clue how to set up a repository based upon only that remote branch as cbreak suggested | 20:16 |
|
| (ps: this is a bare repo, if that matters) | 20:17 |
| syphar|away → syphar | 20:17 |
|
cbreak
| in bare you don't even need to check out anything | 20:17 |
|
| just fetch | 20:17 |
| ← __iron left | 20:17 |
|
cbreak
| then git branch somename FETCH_HEAD | 20:17 |
|
ManDay
| ah! | 20:17 |
|
cbreak
| but I told you that like three times already | 20:17 |
|
wereHamster
| step 1: create the repository. step 2: fetch commits into it. step 3: create branches to your liking | 20:17 |
|
ManDay
| so FETCH_NAME is also a valid refspec?! | 20:17 |
|
wereHamster
| step 4: ???. step 5: profit | 20:17 |
|
jmah
| markit: if there isn't too much going on, you can just do a big graph and try to untangle it | 20:18 |
|
| git log --decorate --oneline --graph --all | 20:18 |
| ← Jon47 left | 20:18 |
| ← Raging_Hog left | 20:19 |
| → TeckniX joined | 20:19 |
| ← leen^| left | 20:20 |
|
markit
| jmah: mmm can't decode the output... may I post in private chat the colored lines to you? | 20:20 |
| ← Tommy[D] left | 20:20 |
|
mjt
| Hello here. I've a project in git which was based on upstream tarball releases imported as git commits into "upstream" branch. Now I want to switch to real upstream git branch instead. If i just merge -X theirs into my branch, it will tell me "no commits in common" and import whole upstream history between previous and current version. Is there a way to work around that, maybe by just removing whole upstream branch? | 20:21 |
| → srji joined | 20:21 |
| → Tommy[D] joined | 20:21 |
| syphar → syphar|away | 20:22 |
| → demi` joined | 20:22 |
| ← unreal left | 20:24 |
|
mjt
| it looks like the best way is to recreate whole my branch using their git tree. | 20:24 |
| → f0i joined | 20:25 |
|
ManDay
| whats teh possibly advantage of --tree-filter vs --index-filter? | 20:25 |
|
| When would I use the former? | 20:25 |
| ← harsh left | 20:25 |
|
wereHamster
| ManDay: I believe it's described in the man page | 20:26 |
|
ManDay
| wereHamster: I believe the manual only unconditionally states that index-filter is faster | 20:26 |
|
wereHamster
| it also states why | 20:27 |
|
ManDay
| it does not say when not to use it in place of tree filter | 20:27 |
|
| yes. but thats not my questions | 20:27 |
|
wereHamster
| the tree filter checks out the tree | 20:27 |
|
ManDay
| I know | 20:27 |
|
| My question is when I would have to use the tree filter? | 20:27 |
|
wereHamster
| so if you need the tree, use the tree filter. If you can operate only on the index, use the index filter | 20:27 |
|
ManDay
| ah, ok, thats plausbile | 20:27 |
|
| sorry im a little tired | 20:27 |
|
| a lot actually | 20:28 |
|
wereHamster
| how was that not obvious? | 20:28 |
|
jmah
| if you want to change file content, it's easier to use tree-filter | 20:28 |
|
ManDay
| yes yes i see | 20:28 |
|
wereHamster
| if you're tired, get some sleep | 20:28 |
|
ManDay
| wereHamster: I thought that if you wanted to perform 'rm' you would never need it | 20:28 |
|
jmah
| if you want to delete some files, it's just as easy to use index-filter, and much faster | 20:28 |
|
ManDay
| but of course the content could matter | 20:28 |
|
wereHamster
| ManDay: never need what? | 20:28 |
|
ManDay
| tree filter | 20:29 |
| ← davzie left | 20:29 |
|
wereHamster
| you can perform a rm only with the index (git update-index --remove ...) | 20:29 |
|
| or git rm --cached .. | 20:29 |
| → unreal joined | 20:29 |
| ← unreal left | 20:30 |
| → unreal joined | 20:30 |
| → davzie joined | 20:30 |
| ← jds left | 20:33 |
| ← f0i left | 20:34 |
| → nadavoid joined | 20:34 |
| → metcalfc joined | 20:34 |
| → maestrojed joined | 20:34 |
| → apocalyptiq joined | 20:35 |
| → robotmay joined | 20:36 |
| → hsingh joined | 20:37 |
| → jds joined | 20:37 |
| ← jceb left | 20:37 |
| → ISF joined | 20:37 |
| ← bburhans left | 20:39 |
| → bburhans joined | 20:39 |
| ← bburhans left | 20:40 |
| → Anchakor joined | 20:40 |
|
Anchakor
| hi, is there a way to change the description note of the last commit? | 20:41 |
| ← dSebastien left | 20:42 |
|
jmah
| git commit --amend | 20:42 |
|
| (that will re-write it as a new commit, so it's not good if it's been pushed or merged) | 20:42 |
|
Anchakor
| ah thanks, this will do | 20:43 |
| → HG`` joined | 20:43 |
| ← tdebat left | 20:44 |
|
infogulch
| yay! i'm starting to use the command line with git more. but i was lazy, i copied/pasted from one branch into another instead of cherry-picking xD | 20:45 |
| → Ben1980 joined | 20:45 |
| → bburhans joined | 20:45 |
|
infogulch
| luckily it's only 50 or so lines >_>' | 20:45 |
| ← Ben1980 left | 20:46 |
| ← HG` left | 20:46 |
| → madprops joined | 20:47 |
| → corburn joined | 20:48 |
| ← unreal left | 20:49 |
|
cbreak
| ManDay: every file inside .git that contains a valid hash or symbolic ref can be used as ref | 20:50 |
|
| well | 20:50 |
|
| man git rev-parse | 20:50 |
| ← Anchakor left | 20:50 |
| ← johnkpaul left | 20:51 |
| → unreal joined | 20:51 |
| → psoo joined | 20:51 |
| ← corburn left | 20:51 |
| → johnkpaul joined | 20:51 |
| ← Drakonite left | 20:51 |
|
ManDay
| thanks | 20:52 |
| → f0i joined | 20:53 |
| ← m4dc0d3r left | 20:53 |
|
ManDay
| i need to know: Will the filter-branch -d directory be of the size of the repository? | 20:53 |
|
| can you guess what size it will have to be if the repo is 6 gigs? | 20:53 |
|
cbreak
| hmm? | 20:53 |
|
| filter-branch does not shirnk the repo in any way | 20:53 |
|
ManDay
| cbreak: The suposedly tmpfs dir | 20:53 |
|
wereHamster
| ManDay: about as big as each tree | 20:54 |
|
ManDay
| cbreak: I don't know how filter-branch works internally so i dont know what will have to fit into that directory | 20:54 |
|
| wereHamster: thanks | 20:54 |
|
wereHamster
| because each tree will be checked out into that temp dir | 20:54 |
|
| that is, assuming you use the tree filter | 20:54 |
|
cbreak
| oh, you mean the temp dir | 20:54 |
| ← davzie left | 20:54 |
|
cbreak
| size of the biggest checkout | 20:54 |
|
ManDay
| yep | 20:55 |
| ← helgikrs left | 20:55 |
| ← Deesl left | 20:55 |
| ← jbrokc left | 20:58 |
| ← akosikeno left | 20:58 |
| ← Daniel0108 left | 21:00 |
| ← Sajaki left | 21:02 |
| ← f0i left | 21:02 |
| → mike007 joined | 21:02 |
|
mike007
| I have some development and testing branches that I am going to merge into master soon. How do I merge where there is only one commit on master when I do this? | 21:03 |
| ← subbyyy left | 21:03 |
|
thiago
| mike007: you mean, "how do I discard all the development history of these branches" ? | 21:03 |
|
mike007
| ya | 21:04 |
|
| i just want one clean commit on master, ie: v1.0 is all you see on master | 21:04 |
|
thiago
| git merge --squash | 21:05 |
| ← srji left | 21:05 |
| ← gbacon left | 21:05 |
| ← johnkpaul left | 21:07 |
| → workmad3 joined | 21:07 |
|
mike007
| is this normal to do thiago? or am I looking at it/doing it wrong? | 21:07 |
| ← ManDay left | 21:07 |
|
thiago
| no, it's not normal | 21:07 |
| ← vmil86 left | 21:07 |
|
thiago
| discarding development history is not good | 21:08 |
|
mike007
| well there will still be the dev branches with all that data | 21:08 |
| → f0i joined | 21:08 |
| → kermit joined | 21:08 |
| ← bitkiller left | 21:09 |
|
thiago
| why don't you want to keep the history where people look for it? | 21:10 |
| → runa joined | 21:10 |
|
runa
| heyas. in git flow hotfix, what should I use as "version" the last rev in master? | 21:11 |
|
mike007
| because there are a lot of commits, branching, etc | 21:11 |
|
runa
| ah. forget it | 21:11 |
| ← socketwiz left | 21:12 |
| → johnkpaul joined | 21:12 |
| ← w0bni left | 21:12 |
| ← RobertLaptop left | 21:14 |
| ← whitman left | 21:15 |
| ← HG`` left | 21:15 |
| ← apocalyptiq left | 21:16 |
| ← metcalfc left | 21:16 |
| ← workmad3 left | 21:16 |
| → workmad3 joined | 21:17 |
|
thiago
| mike007: clean it up with git rebase -i, if you can | 21:17 |
| ← loic_m left | 21:17 |
| → RobertLaptop joined | 21:18 |
|
mike007
| i just leave it as is. full dev and testing history | 21:20 |
| → jimubao joined | 21:21 |
| → bitkiller joined | 21:21 |
| → Cromulent joined | 21:22 |
| ← sythe left | 21:24 |
| ← runa left | 21:26 |
| ← hsingh left | 21:27 |
| → hsingh joined | 21:29 |
| → muneeb joined | 21:29 |
| ← muneeb left | 21:30 |
| → muneeb joined | 21:30 |
| → mandric joined | 21:30 |
| ← nicoulaj left | 21:31 |
| ← MUILTFN left | 21:31 |
| ← kumbayo left | 21:32 |
| → scarabx joined | 21:32 |
| ← Heimidal left | 21:33 |
| → madsy joined | 21:33 |
| ← LongBeach left | 21:34 |
| ← bitkiller left | 21:34 |
| ← f0i left | 21:35 |
| ← ajt left | 21:36 |
| → airborn joined | 21:36 |
| → ajt joined | 21:36 |
| → f0i joined | 21:38 |
| → Wooga joined | 21:40 |
| ← dangerousdave left | 21:41 |
| ← johnkpaul left | 21:43 |
| → johnkpaul joined | 21:46 |
| ← f0i left | 21:46 |
| → f0i joined | 21:50 |
| ← haydenmuhl left | 21:51 |
| ← flexd left | 21:52 |
| ← markit left | 21:54 |
| → Heimidal joined | 21:54 |
| → bitkiller joined | 21:56 |
| → flexd joined | 21:58 |
| → mocramis joined | 21:58 |
| → sythe joined | 21:58 |
| ← sythe left | 21:58 |
| → sythe joined | 21:58 |
|
mocramis
| hello. does git rm actually delete the file ? | 21:58 |
| ← airborn left | 21:59 |
| ← tewecske left | 21:59 |
|
sie
| How do I fix this? error: error in sideband demultiplexer | 21:59 |
|
kevlarman
| mocramis: yes | 22:00 |
|
sie
| mocramis - Yes, unless you make it a dry run with -n | 22:00 |
|
| man git-rm | 22:00 |
|
kevlarman
| mocramis: git rm --cached if you only want to delete it from the index and not the filesystem | 22:00 |
| → oriba joined | 22:00 |
|
mocramis
| kevlarman thanks | 22:01 |
| ← mardum left | 22:02 |
| ← Heimidal left | 22:02 |
|
mocramis
| and how coul i remove added but not commited files ? | 22:03 |
| → mardum joined | 22:04 |
| sythe → sythe2 | 22:04 |
| ← bitkiller left | 22:06 |
| ← LouisJB left | 22:07 |
| ← awallin left | 22:08 |
| → sbell joined | 22:08 |
| → Chaser joined | 22:09 |
|
cbreak
| mocramis: git status should tell you | 22:11 |
| ← robotmay left | 22:11 |
|
cbreak
| ... about the power of git reset in file mode | 22:11 |
| ← normanrichards left | 22:12 |
| → bitkiller joined | 22:12 |
| ← sirdancealot left | 22:12 |
| → jbrokc joined | 22:13 |
| ← johnkpaul left | 22:14 |
| → cyphase joined | 22:14 |
| ← ajt left | 22:15 |
| ← f0i left | 22:15 |
| ← macmartine left | 22:15 |
| → bigkm joined | 22:16 |
| ← p3rror left | 22:20 |
| ← sorin left | 22:21 |
| → Heimidal joined | 22:24 |
| → f0i joined | 22:24 |
| ← oriba left | 22:25 |
| → adamm joined | 22:25 |
| ← Heimidal left | 22:28 |
| ← churp left | 22:29 |
| → normanrichards joined | 22:29 |
| ← belkiss left | 22:32 |
| → javaanse_jongens joined | 22:32 |
| ← thansen left | 22:33 |
| ← Amorphous left | 22:33 |
| ← workmad3 left | 22:34 |
| ← pantsman left | 22:35 |
| → corburn joined | 22:35 |
| ← jbrokc left | 22:37 |
| ← Textmode left | 22:39 |
| ← TeckniX left | 22:39 |
| ← bitkiller left | 22:40 |
| → storrgie joined | 22:40 |
| → tdebat joined | 22:40 |
| → utu joined | 22:42 |
| → ehsan joined | 22:46 |
| ← bigkm left | 22:47 |
| → Amorphous joined | 22:48 |
| ← sylr left | 22:48 |
| ← utu left | 22:50 |
| → Targen joined | 22:51 |
| → bitkiller joined | 22:52 |
| → CoinOpeBoy joined | 22:52 |
| ← gusnan left | 22:52 |
| → angelsl joined | 22:52 |
| → G00053 joined | 22:53 |
| → scarabx_ joined | 22:53 |
|
G00053
| I did a repo init in my home directory , how do I undo this, haven't sync'd yet | 22:54 |
| ← scarabx left | 22:54 |
| ← psoo left | 22:55 |
|
Araxia__
| G00053: just remove the .git directory that was created. | 22:56 |
| ← bitkiller left | 22:56 |
| → subbyyy joined | 22:57 |
| → MUILTFN joined | 22:58 |
| → ymasory joined | 22:58 |
|
cbreak
| what's repo? | 22:58 |
|
DrNick
| Google's git tool for Android | 22:59 |
|
FauxFaux
| The android set of wrapper scripts for git that nobody understands or cares about. | 22:59 |
| ← the_metalgamer left | 23:00 |
| → surikator joined | 23:00 |
| → fatline joined | 23:02 |
| → sirdancealot joined | 23:03 |
| ← CannedCorn left | 23:04 |
| → kennethreitz joined | 23:05 |
| → helgikrs joined | 23:07 |
| ← ludde left | 23:07 |
| ← toxico left | 23:07 |
| ← kennethreitz left | 23:08 |
| ← nadavoid left | 23:09 |
| → nadavoid joined | 23:10 |
| → w09x joined | 23:10 |
| → bigkm joined | 23:12 |
| ← f0i left | 23:13 |
|
ouah
| imagine two commits in my history X and Y, where X is the ancestor of Y. Where in .git/ dir can I have the info that the ancestor of Y is X? | 23:13 |
|
FauxFaux
| ouah: git cat-file commit Y | 23:14 |
| → FylGood joined | 23:14 |
| → bitkiller joined | 23:14 |
|
fatline
| I'm trying to revert to the HEAD revision. As I found in the git book, I type "git revert HEAD" | 23:15 |
|
| but, excluded the vim session that opens to change the commit message, nothing really happens | 23:15 |
|
FauxFaux
| fatline: What git book tells you to type "git revert HEAD"? | 23:15 |
| → ludde joined | 23:15 |
|
fatline
| it says something like: 3 files changed, 23 insertions(+), 24 deletions(-) but the files are not reverted | 23:16 |
| sythe2 → sythe | 23:16 |
|
ouah
| FauxFaux: I mean, where in .git/ is this info stored? | 23:16 |
|
FauxFaux
| The command you have written makes no sense. | 23:16 |
|
fatline
| FauxFaux, http://book.git-scm.com/4_undoing_in_git_-_reset,_checkout_and_revert.html | 23:16 |
|
| ah fantastic :D | 23:16 |
|
FauxFaux
| ouah: In the file called "X", in .git/objects/X's first two characters/the rest of it's characters | 23:16 |
|
fatline
| ah no wait, I've looked at the wrong section | 23:16 |
|
FauxFaux
| fatline: Mmm.. I guess it does make sense. I'm just insane, ignore me. :s | 23:17 |
|
fatline
| so, how would you revert to the HEAD? | 23:17 |
| → f0i joined | 23:17 |
|
FauxFaux
| That statement is the one that makes no sense. But, instead of making a fool of myself trying to answer it, I'm going to suggest you re-read that page, which is correct. ¬_¬ | 23:17 |
|
fatline
| yep, sorry | 23:18 |
|
| found it | 23:18 |
|
| git reset --hard HEAD | 23:18 |
|
| :P | 23:18 |
|
| I was looking at "fixing _committed_ mistakes" | 23:18 |
|
| thank you | 23:18 |
| → gusnan joined | 23:19 |
|
CareBear\
| with or without changing history? | 23:19 |
|
| git revert does not change history | 23:19 |
|
| sometimes this is much prefered | 23:19 |
|
fatline
| I don't care about history. I just want to test one thing on the HEAD revision | 23:19 |
|
ouah
| FauxFaux: ok thank, and is this file compressed or something, I'm doing an hexdump and I can find the commit number in it?:p | 23:20 |
| ← bitkiller left | 23:20 |
|
corburn
| fatline: I think revert is for fixing mistakes on repo's that have already been pushed. | 23:20 |
|
FauxFaux
| ouah: Yes, it's compressed. The command I originally suggested will uncompress it for you. http://git.goeswhere.com/?p=git-sh.git;a=blob;f=git-sh.sh;h=dd1e0c8c33eafdcf58930bdefb9a8d452f62883d;hb=HEAD is the only other way I know how to do it. ¬_¬ | 23:20 |
|
CareBear\
| fatline : then you can make a new branch, or even use git stash if you just want a very temporary thing | 23:20 |
|
ouah
| FauxFaux: ok, it was just to understand the internal of how git works | 23:21 |
| → tshauck joined | 23:22 |
|
FauxFaux
| Read one of the fine manuals. | 23:22 |
|
fatline
| FauxFaux, link? | 23:22 |
| ← multi_io left | 23:22 |
| → multi_io joined | 23:22 |
|
ouah
| :) | 23:22 |
|
FauxFaux
| http://progit.org/book/ch9-2.html | 23:22 |
| ← sitaktif left | 23:22 |
|
FauxFaux
| Just ignore what it says about pack files, as it's all bullshit. </angry> :P | 23:23 |
| ← Phylock left | 23:23 |
|
ouah
| thank you, I think I miss this chapter;) | 23:24 |
| ← mlncn left | 23:25 |
| ← surikator left | 23:25 |
|
fatline
| :) | 23:26 |
| ← notbrent left | 23:30 |
| → bitkiller joined | 23:30 |
| ← f0i left | 23:32 |
| ← ludde left | 23:34 |
| → f0i joined | 23:34 |
| → Maxdaman1us joined | 23:36 |
| ← tshauck left | 23:38 |
| ← cyphase left | 23:39 |
| ← xpot-mobile left | 23:39 |
| ← malumalu left | 23:39 |
| → CannedCorn joined | 23:40 |
| ← RobertLaptop left | 23:40 |
| ← LekeFly left | 23:41 |
| → dangerousdave joined | 23:41 |
| → cyphase joined | 23:42 |
| ← MUILTFN left | 23:42 |
| → Yuuhi` joined | 23:44 |
| ← Yuuhi left | 23:44 |
| ← helgikrs left | 23:44 |
| ← dangerousdave left | 23:45 |
| ← syphar|away left | 23:45 |
| ← Lemon|mbp_ left | 23:46 |
| ← lacrymology left | 23:46 |
| → helgikrs joined | 23:46 |
| → syphar joined | 23:46 |
| ← rendar left | 23:47 |
| ← Cromulent left | 23:49 |
| → safinaskar joined | 23:50 |
| → jbalint joined | 23:54 |
| → mlncn joined | 23:54 |
| ← madewokherd left | 23:55 |
| ← multi_io left | 23:55 |
| ← rudi_s left | 23:55 |
| → rudi_s joined | 23:55 |
| ← soulcake left | 23:56 |
| ← kukks left | 23:56 |
| ← Yuuhi` left | 23:57 |
| → Yuuhi` joined | 23:57 |
| → kukks joined | 23:57 |
|
jbalint
| is there a mirror of the docs | 23:57 |
|
FauxFaux
| http://faux.uwcs.co.uk/gitdoc/ | 23:57 |
|
jbalint
| thanks a lot | 23:58 |
| ← nadavoid left | 23:58 |
| → MatCat joined | 23:58 |
| → ajt joined | 23:59 |