| 2010-07-06 |
| → katol joined | 00:00 |
| → anjen joined | 00:01 |
| → ryanakca joined | 00:01 |
|
katol
| Hello, when I try to rebase a branch A with another branch B I get a "Patch Failed at 0001 blah blah blah" where blah blah blah is my commit message but I don't get any conflicted filename. what should the problem be? | 00:03 |
| ← p3rg2z left | 00:03 |
| ← picard left | 00:03 |
| → Mage_Dude_ joined | 00:05 |
| → Basstard` joined | 00:06 |
| ← adymitruk left | 00:07 |
| ← d0k left | 00:08 |
| ← Wraithan left | 00:16 |
| → whaley joined | 00:16 |
| → stringo0 joined | 00:19 |
| ← panpainter left | 00:19 |
| ← marienz left | 00:20 |
| → marienz joined | 00:20 |
| ← whaley left | 00:20 |
| → bcardarella joined | 00:21 |
| → jcromartie joined | 00:22 |
| → tstellar joined | 00:22 |
| → panpainter joined | 00:22 |
|
tstellar
| Is there a way to have git diff color only trailing whitespace? | 00:22 |
|
jhelwig
| tstellar: Take a look at the core.whitespace setting. man git-config | 00:26 |
|
Gitbot
| tstellar: the git-config manpage can be found at http://git.or.cz/man/git-config | 00:26 |
| → eletuchy_ joined | 00:27 |
| → MattDiPasquale joined | 00:28 |
|
tstellar
| ok, thanks | 00:28 |
| ← Tommy[D] left | 00:28 |
| ← eletuchy left | 00:29 |
| ← mithro left | 00:29 |
| ← MattDiPasquale left | 00:30 |
| → plediii joined | 00:31 |
| ← iravid left | 00:33 |
| → rorist_ joined | 00:35 |
| ← rorist left | 00:37 |
| → rorist`love joined | 00:39 |
| ← rorist_ left | 00:41 |
| → alin joined | 00:41 |
| → Tommy[D] joined | 00:41 |
| → MattDiPasquale joined | 00:42 |
| ← marienz left | 00:42 |
| ← tstellar left | 00:42 |
| → rorist joined | 00:42 |
| ← khelll left | 00:44 |
| ← rorist left | 00:44 |
| ← rorist`love left | 00:46 |
| → marienz joined | 00:46 |
| ← kukks left | 00:50 |
| ← MattDiPasquale left | 00:50 |
| → iravid joined | 00:50 |
| → navetz joined | 00:50 |
| ← mikeric left | 00:53 |
| → scarabx joined | 00:56 |
| ← alezandro left | 00:58 |
| → patmaddox joined | 01:00 |
| ← ddunbar left | 01:03 |
| ← katol left | 01:03 |
| ← ExtraSpice left | 01:03 |
| ← Tuller left | 01:04 |
| → chrislerum joined | 01:04 |
| → ddunbar joined | 01:07 |
| ← marienz left | 01:09 |
| ← parasti left | 01:09 |
| → _numbers joined | 01:09 |
| ← hakunin left | 01:10 |
| → warlock_mza joined | 01:14 |
| ← panpainter left | 01:14 |
| → alezandro joined | 01:17 |
| ← Vampire0 left | 01:19 |
| ← warlock_mza left | 01:19 |
| → bc0906524 joined | 01:20 |
| bc0906524 → sleepy_tiger | 01:20 |
| → jrmuizel joined | 01:21 |
| ← Bombe left | 01:29 |
| → Bombe joined | 01:29 |
|
_numbers
| how can i delete all history in a git repo past a specific ref? | 01:31 |
|
| i accidentally commited a submodule the wrong way and it included all this BS history in the main branch | 01:31 |
| ← chrislerum left | 01:31 |
|
_numbers
| and i want to get rid of it | 01:31 |
|
| but git rebase -i is not doing very well | 01:31 |
| → Vampire0 joined | 01:31 |
|
_numbers
| keeps stopping at like every commit asking to resolve merge conflicts for files that are 'both modified' and 'deleted by us' | 01:31 |
|
davr
| everything past a certain ref? just use git reset --hard <ref> | 01:33 |
|
_numbers
| everything that happened before the ref, i mean | 01:33 |
|
| not after | 01:33 |
|
davr
| so you want to remove history before point X? that will only work if the files in X-1 no longer exist at X | 01:34 |
|
_numbers
| well im okay with squashing them then | 01:34 |
|
| but i tried rebase -i and selected squash for all 374 commits | 01:34 |
|
| but it has similar problems with merge conflicts | 01:35 |
|
offby1
| _numbers: you might get some relief with "git rerere" | 01:37 |
|
| if the rebase keeps asking you to resolve the same conflicts over and over. | 01:37 |
|
parndt
| you can also do a -s recursive -X ours or -s recursive -X theirs depending on which side you want to override the other | 01:38 |
|
_numbers
| i want ours | 01:39 |
|
engla|ger
| fixing merging is not the solution. all you want is to make a new root commit, use git reset or so | 01:39 |
|
_numbers
| ill try that | 01:39 |
| → octavio-rdz joined | 01:39 |
|
engla|ger
| just do git reset --soft <root commit> then you go git commit --amend | 01:40 |
|
| If I understand this correctly | 01:40 |
|
| no use in doing endless squashing and merging if you know exactly what the end result is going to look like. just use reset | 01:42 |
|
_numbers
| parndt: error: unknown switch `X' | 01:42 |
| ← ddunbar left | 01:43 |
| → codeshepherd joined | 01:44 |
|
parndt
| _numbers: git --version ? | 01:44 |
|
| _numbers: but I'd try engla|ger's suggestion first | 01:44 |
|
_numbers
| engla|ger: i did it but now Your branch and 'origin/development' have diverged, and have 1 and 750 different commit(s) each, respectively. | 01:44 |
|
| parndt: git version 1.7.0.4 | 01:44 |
|
| git log shows no history behind this point tho, which is promising | 01:45 |
|
parndt
| hm ok i'm on 1.7.1 and have it | 01:45 |
|
_numbers
| i think its supposed to be -Xown | 01:45 |
|
| no space | 01:45 |
|
| thats what it says in docs | 01:45 |
|
| but i see no example | 01:45 |
|
| how do i move back to the first commit when i am at the back? | 01:45 |
|
parndt
| _numbers: yeah seems like there's more than one way of doing it depending on pull/merge or what you're doing | 01:46 |
| → jtdowney joined | 01:46 |
| ← jcromartie left | 01:46 |
|
engla|ger
| _numbers: yes, your rewritten branch will be very different from its original upstream branch, since you change the history | 01:47 |
| ← patmaddox left | 01:47 |
|
_numbers
| but im stuck on the first commit and dont see anything afterward | 01:47 |
|
| i mean i dont know the git command to move to the end of the 750 diff commits | 01:47 |
|
| it basically chopped me down to 1 commit | 01:48 |
|
engla|ger
| _numbers: the commands I gave you would flatten all the history from the point you were checked out until the <root commit> into only 1 commit, yes | 01:48 |
|
_numbers
| oh i dont want that unfortunately | 01:48 |
| → ddunbar joined | 01:48 |
|
_numbers
| there are 750 commits | 01:49 |
|
| the commit i want is in the middle like #375 | 01:49 |
|
| every commit between 1 - 374 i want deleted | 01:49 |
| ← aziz left | 01:49 |
|
_numbers
| everything from 375 - 750 i want to keep | 01:49 |
|
parndt
| do you have a copy of the repo before you did this | 01:49 |
|
_numbers
| yep | 01:49 |
|
engla|ger
| by deleted you mean squashed; the changes kept | 01:49 |
|
| well no worries, the reflog will have it all | 01:49 |
|
parndt
| then why don't you use that copy and do a forced push to origin | 01:49 |
|
_numbers
| parndt: oh you mean before i got the 375 commits i didnt want? no that copy is very old now. i just noticed it much later. | 01:50 |
|
parndt
| ah. | 01:50 |
|
engla|ger
| _numbers: if you check out commmit #347 and repeat these steps you'll have your squashed base | 01:50 |
| → simplechat joined | 01:50 |
|
engla|ger
| _numbers: then you rebase the old history #348->end on top of that | 01:50 |
|
parndt
| using git you can checkout commits like they're tags can't you? | 01:50 |
|
_numbers
| engla|ger: what cmds would allow me to reboase old history 348->end onto current? | 01:51 |
|
engla|ger
| git rebase --onto <newbase> #375 <oldbranch#750> If I recall correctly, check man git-rebase; replace #375 etc with the correct commit identifiers of course | 01:53 |
|
Gitbot
| engla|ger: the git-rebase manpage can be found at http://git.or.cz/man/git-rebase | 01:53 |
| → Transformer joined | 01:53 |
|
_numbers
| refs i want: 66fc7ed6...1a89ae02 | 01:53 |
| ← Transformer left | 01:53 |
|
engla|ger
| _numbers: you'll have to think for yourself to pull this off I guess. rebase has an option to preserve merges. I'm going to bed, gl hf! | 01:55 |
|
_numbers
| thx | 01:55 |
| ← engla|ger left | 02:00 |
| → hakunin joined | 02:05 |
| ← simplechat left | 02:07 |
|
_numbers
| git rebase --onto development_clean 2f366e3 1a89ae # keeps getting the crap i dont want from 1 - 375 | 02:08 |
| → lazylisper joined | 02:10 |
| ← hauserserser_ left | 02:11 |
| ← sagsousuke left | 02:12 |
| ← kpreid left | 02:13 |
| → chrislerum joined | 02:15 |
| ← coppro left | 02:16 |
| → coppro joined | 02:17 |
|
jmspeex
| With a project containing submodules, how can I tell git to pull everything -- including the submodules? | 02:18 |
| ← orafu left | 02:18 |
|
jmspeex
| doing "git submodule update" does nothing | 02:19 |
| → consolers joined | 02:19 |
|
coppro
| submodules are fixed at a specific version | 02:19 |
|
jmspeex
| Well, that specific version got advanced | 02:20 |
| → cytrinox_ joined | 02:20 |
| ← mw left | 02:21 |
|
jmspeex
| i.e. from one machine, I modified the submodules, I checked in and pushed the changes, then I checked in the toplevel project and pushed it | 02:23 |
| ← cytrinox left | 02:23 |
| cytrinox_ → cytrinox | 02:23 |
|
jmspeex
| Then on my other machine, I did a git pull followed by a "git submodule update", but I still don't have the latest version of the submodules | 02:24 |
| ← _numbers left | 02:26 |
|
jmspeex
| Also, gitk tells me "Submodule celt c7bcf38...b5077ef (commits not present)" | 02:26 |
|
| (same for the other submodule) | 02:26 |
| → alester joined | 02:29 |
| ← Elfe left | 02:31 |
| → Elfe_ joined | 02:31 |
| → whaley joined | 02:34 |
| → panpainter joined | 02:34 |
| ← scarabx left | 02:40 |
| ← shuaib left | 02:43 |
|
jmspeex
| Just tried "git submodule foreach git pull" and it worked. Is that the correct way to do this? | 02:45 |
| ← aresnick left | 02:45 |
| → dtangren joined | 02:45 |
| ← codeshepherd left | 02:48 |
| ← timj_ left | 02:52 |
| → timj joined | 02:52 |
| → phantomcircuit joined | 02:54 |
| ← n3kl left | 02:58 |
| ← jtdowney left | 03:00 |
| → n3kl joined | 03:00 |
| ← n3kl left | 03:00 |
| → n3kl joined | 03:00 |
| ← pabloh left | 03:00 |
| → pabloh joined | 03:04 |
| → \mjd joined | 03:05 |
| ← hearit left | 03:08 |
| → aluink joined | 03:10 |
| → codeshepherd joined | 03:11 |
| ← dtangren left | 03:12 |
| → Wraithan joined | 03:21 |
|
Wraithan
| is there a command to no matter what branch you are on, only push the current branch? | 03:22 |
|
| I am sick of getting stuff like ! [rejected] live -> live (non-fast-forward) in cases when I just need to go to live branch and pull | 03:23 |
|
| I've solved it for now by having a push alias that is 'git push origin' then doing push master or push live | 03:23 |
|
| but was hoping there was a more generic way, so I didn't need to specify | 03:24 |
| → a9b joined | 03:26 |
| → multigrain joined | 03:26 |
| → hyperair joined | 03:29 |
| ← hakunin left | 03:29 |
| ← warthog9 left | 03:31 |
| ← bcardarella left | 03:34 |
|
\mjd
| Wraithan: git push remote something | 03:34 |
|
| Oh, I see. | 03:35 |
|
Wraithan
| yes, I know that one | 03:35 |
|
\mjd
| Yes, there is a configuration option. | 03:35 |
|
| Just a second. | 03:35 |
|
Wraithan
| That'd be awesome | 03:36 |
| → jony joined | 03:37 |
| ← bamboo434 left | 03:38 |
|
\mjd
| "... to default to pushing only the current branch to origin use git config remote.origin.push HEAD. " | 03:39 |
|
| (That's from the git-push manual.) | 03:39 |
|
| remote.<name>.push | 03:40 |
|
| The default set of "refspec" for git-push(1). See git-push(1). | 03:40 |
|
| | 03:40 |
| → urkud__ joined | 03:43 |
| → benbinary joined | 03:45 |
| ← vol7ron left | 03:45 |
| ← benbinary left | 03:46 |
| ← hyperair left | 03:47 |
| → t0rc joined | 03:50 |
| ← jrmuizel left | 03:52 |
| → patmaddox joined | 03:53 |
| ← urkud__ left | 03:54 |
| ← batok left | 03:57 |
| → hyperair joined | 03:58 |
| ← patmaddox left | 03:59 |
| → doener joined | 03:59 |
| → coderdad joined | 03:59 |
| ← whaley left | 04:03 |
| → yashi joined | 04:04 |
| ← hyperair left | 04:04 |
| → zehrique joined | 04:08 |
| → whaley joined | 04:12 |
| → hyperair joined | 04:14 |
| → rado1 joined | 04:15 |
| ← pabloh left | 04:15 |
| ← apsysoev left | 04:18 |
| ← alezandro left | 04:20 |
| ← yashi left | 04:20 |
| ← octavio-rdz left | 04:21 |
| → yashi joined | 04:22 |
| ← \mjd left | 04:22 |
| → patmaddox joined | 04:27 |
| ← ignatp left | 04:31 |
| ← molokai left | 04:35 |
| → molokai joined | 04:36 |
| → OFICINA7 joined | 04:40 |
| ben_h → ben_h_ | 04:40 |
| ben_h_ → ben_h | 04:41 |
| ← slonopotamus_ left | 04:43 |
| ← patmaddox left | 04:47 |
| → brothers joined | 04:47 |
| ← Joeconyers left | 04:47 |
| ← zehrique left | 04:48 |
| ← codeshepherd left | 04:51 |
| → slonopotamus_ joined | 04:51 |
| slonopotamus_ → slonopotamus | 04:52 |
| → codeshepherd joined | 04:53 |
| ← Kage left | 04:53 |
| → g3d joined | 04:55 |
| ← marc_kdab left | 04:56 |
| ← Bass10 left | 04:56 |
| → Heimidal joined | 04:56 |
| → mbroeker joined | 04:57 |
| → sftp_ joined | 04:58 |
| ← sftp left | 04:59 |
| → freimatz joined | 05:00 |
| ← Yuuhi left | 05:01 |
| → Yuuhi joined | 05:02 |
| → LongBeach joined | 05:03 |
| ← t0rc left | 05:05 |
| ← plediii left | 05:08 |
| ← coderdad left | 05:09 |
| → joachimbean joined | 05:10 |
| ← karptonite left | 05:11 |
| ← joachimbean left | 05:11 |
| ← molokai left | 05:12 |
| → molokai joined | 05:14 |
| → jonmasters joined | 05:14 |
| ← pallaert left | 05:15 |
| → karptonite joined | 05:16 |
| ← karptonite left | 05:16 |
| → vu3rdd joined | 05:19 |
| → psankar joined | 05:24 |
| ← cjs left | 05:24 |
| → girishr joined | 05:24 |
| → fmardini joined | 05:25 |
| → ezyang joined | 05:25 |
| ← hyperair left | 05:26 |
|
ezyang
| Hey all, did the semantics of `git diff-files --name-only` change between 1.6 and 1.7? | 05:26 |
|
| I was under the impression that it was only supposed to show file differences between the index and the working copy, but my 1.6 copy of Git is showing all files. | 05:26 |
| ← stringo0 left | 05:28 |
| ← jsquared left | 05:29 |
|
ezyang
| huh, and now it's working. Must have been a filesystem hiccup. | 05:30 |
| → maleknet joined | 05:30 |
| → dnquark joined | 05:32 |
|
blueshift
| maybe PEBKAC | 05:32 |
|
dnquark
| so I think I lost a day's worth of work thanks to git | 05:32 |
|
| (I helped) | 05:32 |
|
doener
| ezyang: IIRC diff-files doesn't update the index, so maybe it was just out of date | 05:33 |
| ← OFICINA7 left | 05:33 |
|
dnquark
| can someone explain to me why git might randomly delete a file? | 05:33 |
| ← coppro left | 05:33 |
|
slonopotamus
| dnquark: it doesn't | 05:33 |
|
NfNitLoop
| dnquark: Yeah, best it can do is pseudorandomly delete a file. | 05:34 |
|
| :p | 05:34 |
|
dnquark
| slonopotamus: a fan of vinni-puh, i assume? | 05:34 |
|
doener
| dnquark: if you committed your stuff, it's pretty hard to actually lose it with git | 05:34 |
|
slonopotamus
| dnquark: just was in good mood when was choosing nickname | 05:34 |
|
dnquark
| so here's how it went down | 05:34 |
| ← programble left | 05:34 |
|
dnquark
| one of my machines runs windows | 05:35 |
| ← lazylisper left | 05:35 |
| → coppro joined | 05:35 |
|
dnquark
| I did a git pull, but that file was open | 05:35 |
|
| I got an error: git check-out index unable to create file foo (file exists) | 05:35 |
| ← Wraithan left | 05:35 |
|
dnquark
| I closed the file, did a git commit and pull | 05:35 |
|
| at which point it deleted the file from HEAD | 05:36 |
|
NfNitLoop
| dnquark: aaah, this is likely a problem with upper/lower case names on Windows. | 05:36 |
|
dnquark
| this I didn't notice until much later | 05:36 |
|
NfNitLoop
| You probably have 2 files in a directory that have the same name (but differ in case). | 05:36 |
|
dnquark
| so the question is -- why did git delete this file... I'm sure it was checked in | 05:36 |
| → lazylisper joined | 05:36 |
|
NfNitLoop
| git doesn't detect this. It'll happily write one, then write the other (over the first) | 05:36 |
|
doener
| NfNitLoop: that doesn't delete the file though, does it? | 05:37 |
|
dnquark
| no, no case problems here... | 05:37 |
| ← mbroeker left | 05:37 |
|
NfNitLoop
| Oh, hrmm, ok. | 05:37 |
|
ezyang
| doener: But git status was giving the right... oh? | 05:37 |
| → mtkd joined | 05:37 |
|
doener
| ezyang: status updates the index | 05:37 |
|
NfNitLoop
| doener: actually, you're right, it doesn't delete it. Just shows some *weird* behavior. | 05:37 |
|
ezyang
| interesting. | 05:37 |
|
dnquark
| after that, when I did a git pull, it had a conflict w/ file deleted in HEAD and modified in .... | 05:37 |
|
ezyang
| So what do I have to do to manually update the index? | 05:37 |
|
doener
| ezyang: git update-index --refresh IIRC | 05:37 |
|
ezyang
| cool, thanks! | 05:37 |
| → mbroeker joined | 05:38 |
|
blueshift
| dnquark: does a git reset --hard help? | 05:38 |
|
dnquark
| not realizing what was going on I stupidly did a git checkout --theirs and a commit, effectively blowing away my stuff | 05:38 |
|
doener
| ezyang: don't trust me on that one though | 05:38 |
|
slonopotamus
| dnquark: 'deleted file from HEAD', 'why did git delete this file' ??? | 05:38 |
|
dnquark
| so i'm still trying to understand why the file got deleted from HEAD when it did | 05:38 |
|
slonopotamus
| blueshift: git reset --hard causes dataloss :) | 05:39 |
|
dnquark
| and what the correct course of action should have been | 05:39 |
|
| (probably git reset --hard) | 05:39 |
|
blueshift
| dnquark: if it was in git somewhere some time you should be able to get it back | 05:39 |
|
dnquark
| hm | 05:40 |
| → pedrobelo joined | 05:40 |
| ← jfkw left | 05:41 |
|
dnquark
| ok, so this whole process started with a commit | 05:41 |
|
| thank god for screen scrollback buffers | 05:41 |
|
blueshift
| and the reflog! | 05:42 |
|
dnquark
| yeah, well, that too i guess | 05:42 |
| → apsysoev joined | 05:42 |
| → urkud__ joined | 05:43 |
| → jsquared joined | 05:44 |
| → cilly joined | 05:44 |
| ← consolers left | 05:44 |
| ← panpainter left | 05:44 |
| ← codeshepherd left | 05:45 |
| → codeshepherd joined | 05:47 |
|
ezyang
| doener: Ok, I guess I'll check the git status source code. | 05:48 |
| → marc_kdab joined | 05:49 |
|
dnquark
| should I use git reset <hash> <filename> or git checkout <hash> <filename>? | 05:49 |
| ← jsquared left | 05:50 |
| → gebi joined | 05:51 |
| ← girishr left | 05:51 |
|
dnquark
| ok, crisis averted | 05:51 |
|
| even though I *still* have no clue why git decided that that file needed to be deleted in HEAD | 05:52 |
| → shugart joined | 05:53 |
|
shugart
| okay, so I'm stumped, what am I doing wrong. I commit a ruby on rails framework, but it's only adding the top level directory and no subdirectories | 05:54 |
|
ezyang
| It looks like the precise semantics of git status is `git update-index --refresh --unmerged -q | 05:54 |
|
| Does this sound plausible? | 05:54 |
|
| possibly needing the refresh after unmerged and q | 05:55 |
| ← seanius left | 05:55 |
| → seanius joined | 05:57 |
| ← lazylisper left | 06:00 |
| → theprojectabot joined | 06:02 |
| → HG` joined | 06:03 |
| → jsquared joined | 06:03 |
| → girishr joined | 06:04 |
| ← theprojectabot left | 06:06 |
| → theprojectabot joined | 06:07 |
| ← theprojectabot left | 06:08 |
| ← girishr left | 06:11 |
|
shugart
| nevermind got it working, silly me forgot that I was pulling from a git repo in a subdirectory, and thus messed me up | 06:11 |
| ← codeshepherd left | 06:12 |
| ← didlix left | 06:12 |
| → roop joined | 06:13 |
| ← Mage left | 06:13 |
| ← a9b left | 06:13 |
| → a9b joined | 06:15 |
| ← shugart left | 06:15 |
| → drizzd joined | 06:16 |
| → adripop joined | 06:17 |
| → warthog9 joined | 06:17 |
| ← adripop left | 06:18 |
| → cbreak_work joined | 06:19 |
| → eighty4 joined | 06:20 |
| NfNitLoop → estas | 06:20 |
| estas → NfNitLoop | 06:20 |
| → codeshepherd joined | 06:21 |
| KB1JWQ → Corey | 06:22 |
| ← slonopotamus left | 06:23 |
| Corey → KB1JWQ | 06:26 |
| ← madewokherd left | 06:27 |
| ← warthog9 left | 06:28 |
| ← rado1 left | 06:30 |
| → girishr joined | 06:31 |
| → [Po]lentino joined | 06:32 |
| → psoo joined | 06:32 |
| ← _Vi left | 06:37 |
| ← girishr left | 06:38 |
| → bababfds joined | 06:39 |
| ← Yuffster left | 06:40 |
| ← enherit left | 06:41 |
| → warthog9 joined | 06:41 |
| ← gebi left | 06:42 |
| ← hagabaka left | 06:42 |
| ← molokai left | 06:48 |
| → thierryp joined | 06:49 |
| → codeshepherd_ joined | 06:49 |
| → girishr joined | 06:49 |
| → slonopotamus joined | 06:50 |
| → luist__ joined | 06:50 |
| → dreiss joined | 06:51 |
| → lhz joined | 06:51 |
| ← codeshepherd left | 06:53 |
| codeshepherd_ → codeshepherd | 06:53 |
| → ExtraSpice joined | 06:53 |
| ← luist_ left | 06:54 |
| ← ereslibre_laptop left | 06:56 |
| → poseid joined | 06:59 |
| ← locklace left | 07:01 |
| ← thierryp left | 07:02 |
| → thierryp joined | 07:02 |
|
AAA_awright
| Is there any method or plan of signing commits instead of using the commit name/email or author name/email? | 07:03 |
|
| Why would you want to only be able to sign tags and not commits? | 07:03 |
| ← multigrain left | 07:04 |
| ← timyhac left | 07:04 |
| → NET||abuse joined | 07:05 |
| → dr_win joined | 07:06 |
| ← thierryp left | 07:07 |
| → thierryp joined | 07:07 |
| → trivol joined | 07:07 |
| → locklace joined | 07:07 |
| → pantsman joined | 07:09 |
| ← thierryp left | 07:12 |
| → thierryp joined | 07:13 |
| ← spearce left | 07:13 |
|
johnw
| then what happens if you try to rebase, and one of the affected commits is signed? | 07:13 |
| ← benjo2 left | 07:14 |
| → benjo2 joined | 07:14 |
| → girishr_ joined | 07:15 |
| → shruggar joined | 07:15 |
| → rchavik joined | 07:15 |
|
shruggar
| can anyone explain the --cached option of diff-index? It says "do not consider the on-disk file at all", but I don't understand in what situations it otherwise /would/ consider the on-disk files | 07:16 |
| ← benjo2 left | 07:17 |
| ← girishr left | 07:17 |
| ← roop left | 07:17 |
| → roop joined | 07:18 |
| → giskard joined | 07:19 |
|
blueshift
| johnw: signed? you mean signed-off? | 07:19 |
|
johnw
| i think he meant gpg-signed | 07:20 |
| → Pupeno joined | 07:20 |
|
blueshift
| oh, I didn't see that you were answering someone else | 07:20 |
|
Pupeno
| Is git's "database" ACID? | 07:20 |
| ← centr0 left | 07:20 |
| ← girishr_ left | 07:21 |
| ← thierryp left | 07:21 |
| → thierryp joined | 07:21 |
| → girishr joined | 07:21 |
| parndt → parndt_away | 07:23 |
|
shruggar
| Pupeno, should be, so long as you use standard git tools to access it | 07:23 |
|
Pupeno
| Is there any docs about it? To show to someone else. | 07:24 |
| → rox` joined | 07:25 |
| → timyhac joined | 07:25 |
| → steffkes joined | 07:26 |
| → ProperN[out] joined | 07:27 |
| ← ProperN[out] left | 07:28 |
| → ProperN[out] joined | 07:28 |
| ← thierryp left | 07:28 |
| → dpino joined | 07:28 |
| → Nickeeh joined | 07:30 |
| → mastro joined | 07:30 |
| → lacostej joined | 07:30 |
| ← ProperNoun left | 07:31 |
| ProperN[out] → ProperNoun | 07:31 |
|
shruggar
| I don't seem to be able to find anything from quick googling and grepping | 07:32 |
| → priidu_ joined | 07:32 |
| → thierryp joined | 07:32 |
| ← tildeequals left | 07:33 |
| → masterkorp joined | 07:33 |
| → tg joined | 07:34 |
|
shruggar
| there are some things which imply it, such as docks about lockfiles | 07:34 |
| ← carutsu left | 07:34 |
| ← dahankzter left | 07:35 |
|
shruggar
| and for the most part the git object model ensures safety | 07:35 |
|
lacostej
| Cloning the ubuntu lucid kernel repository hangs on my machine. I've tried 3 times and it hanged each time between 3 and 15% of the receive process. Nothing seems to happen. The screen isn't refreshed. No network activity. Maybe I should let it hang more (I waited up to 30 min I guess). Using 1.7.0.4. I am trying again. If it happens again should I do something special ? | 07:37 |
| ← thierryp left | 07:37 |
| → hyperair joined | 07:39 |
| → galderz joined | 07:42 |
| → xiong joined | 07:45 |
| ← urkud__ left | 07:48 |
|
doener
| shruggar: see the "RAW OUTPUT FORMAT" section in the man page. diff-index normally does a diff between a tree and the working tree | 07:50 |
| → gemmes_ joined | 07:50 |
| → ereslibre joined | 07:51 |
|
doener
| shruggar: ... and at least IIRC that section is actually right. The diff-* manpages tend to confuse me | 07:51 |
| ← gemmes_ left | 07:51 |
| ← johnw left | 07:51 |
|
shruggar
| ah, I thought that's what diff-files was for,,, so diff-index, by default, does not use the index? o.O | 07:51 |
|
lacostej
| hang again at 34% this time. | 07:53 |
| ← shruggar left | 07:54 |
|
wereHamster
| lacostej: what's the url? | 07:54 |
|
lacostej
| git://kernel.ubuntu.com/ubuntu/ubuntu-lucid.git | 07:55 |
| → project2501b joined | 07:56 |
| ← timyhac left | 07:57 |
| ← codeshepherd left | 07:57 |
| ← dreiss left | 07:57 |
| → dahankzter joined | 07:58 |
| → urkud__ joined | 08:00 |
| ← pedrobelo left | 08:01 |
| → pedrobelo joined | 08:01 |
| → tildeequals joined | 08:01 |
| ← pedrobelo left | 08:02 |
|
lacostej
| wereHamster: I'll let it hang for a while. Going for a tour. Back in about 1h. I'll read the messages here if there are any. | 08:04 |
| → shruggar joined | 08:05 |
| ← Mage_Dude_ left | 08:05 |
| → tar- joined | 08:06 |
| → barismetin joined | 08:09 |
| → freshtonic_ joined | 08:09 |
| → Mage_Dude_ joined | 08:10 |
| ← freshtonic left | 08:12 |
| freshtonic_ → freshtonic | 08:12 |
| → ph^ joined | 08:13 |
| → gergap joined | 08:14 |
| ← Bombe left | 08:16 |
| → Bombe joined | 08:17 |
| → lazylisper joined | 08:17 |
| ← Nickeeh left | 08:20 |
| ← freshtonic left | 08:20 |
| → sftp joined | 08:21 |
| ← sftp_ left | 08:21 |
| → thierryp joined | 08:22 |
| ← lanthan left | 08:22 |
| → mrtazz joined | 08:23 |
| ← chrislerum left | 08:24 |
| ← pantsman left | 08:24 |
| → ph^_ joined | 08:25 |
| → lanthan joined | 08:26 |
| ← priidu_ left | 08:26 |
| → Ilari_antrcomp joined | 08:26 |
| ← poseid left | 08:27 |
| → tatsuya joined | 08:28 |
| → priidu joined | 08:28 |
| ← seanius left | 08:31 |
| → ntoll joined | 08:34 |
|
doener
| shruggar: diff-files is worktree against index, not against some tree | 08:34 |
|
| shruggar 's head explodes | 08:35 |
|
shruggar
| so: "diff-index -q HEAD && diff-index -q --cached HEAD" would be "is the work-tree or the index different from HEAD", right? | 08:36 |
| → seanius joined | 08:37 |
| ← jds left | 08:38 |
| → cmyk joined | 08:39 |
|
cmyk
| hi | 08:39 |
|
| I am following this guide: http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way | 08:39 |
| → ProperN[out] joined | 08:40 |
|
Ilari_antrcomp
| cmyk: Gitosis is obsolete. | 08:40 |
|
cmyk
| oh | 08:40 |
| ← ProperN[out] left | 08:40 |
| → ProperN[out] joined | 08:40 |
| ← Zouppen left | 08:42 |
| → khelll joined | 08:43 |
| ← ProperNoun left | 08:44 |
| ProperN[out] → ProperNoun | 08:44 |
|
Ilari_antrcomp
| cmyk: Use gitolite instead. | 08:45 |
|
shruggar
| should we go around all the google results and tell people "Note: gitosis is obsolete. Users are following your guide without this knowledge, it may be helpful if you were to note it at the top of <url>" | 08:46 |
|
adrien
| I used git-reset something but went one step too far: I pushed a commit to a remote server and reset to the commit before that one, is there a way I can get the commit back? (otherwise I'm not going to be able to push anymore I guess) | 08:46 |
|
| I have the commit id but I'm not sure what to do | 08:46 |
|
shruggar
| adrien, use "git reflog" to find where you previously were | 08:46 |
|
cmyk
| Ilari_antrcomp: All I want to do is run a git server on my os x box, it's only going to be intranet | 08:47 |
|
adrien
| can I simply "checkout" the commit? | 08:47 |
| → tommie joined | 08:48 |
|
tommie
| hm, why did my etckeeper start acting strangely? | 08:48 |
|
| | warning: LF will be replaced by CRLF in .gitignore | 08:48 |
|
| | warning: LF will be replaced by CRLF in etckeeper/commit.d/50vcs-commit | 08:48 |
|
| why would git do such a thing to my /etc files? | 08:48 |
| → curtana joined | 08:49 |
|
Ilari_antrcomp
| cmyk: Gitolite is quite good for just that. | 08:49 |
|
shruggar
| adrien, try: git reset --keep <the-commit> | 08:49 |
|
cmyk
| Ilari_antrcomp: okay, thanks | 08:49 |
|
Ilari_antrcomp
| (another computer because the other one is running 8 POV-Rays in parallel)... | 08:50 |
|
sitaram
| up_the_irons: ping | 08:50 |
| ← tommie left | 08:50 |
| → codeshepherd joined | 08:51 |
|
adrien
| shruggar: great, thanks a lot =) | 08:52 |
| ← seanius left | 08:53 |
| → seanius joined | 08:53 |
| ← Heimidal left | 08:55 |
| → dajero joined | 08:57 |
|
Ilari_antrcomp
| cmyk: AFAIK, the feature set of gitolite is strict superset of that of gitosis. Well, Gitolite doesn't support multi-keys, but has another way to get the same effect. | 08:58 |
|
cmyk
| I am a complete newb to git | 08:58 |
|
wereHamster
| cmyk: http://progit.org | 08:59 |
|
cmyk
| awesome, thanks wereHamster | 09:00 |
| → Nickeeh joined | 09:02 |
| → ustunozgur joined | 09:03 |
| → jtdowney joined | 09:04 |
| ← thierryp left | 09:06 |
|
The_Ball
| Is there any UI tool where I can look at a git tracked file and see where every line has "come from"? | 09:08 |
| → thierryp joined | 09:09 |
| → bluenovember joined | 09:10 |
| → thierryp_ joined | 09:10 |
|
_rane
| git blame | 09:11 |
| ← thierryp left | 09:13 |
| → hohum joined | 09:13 |
| → LucasWilcox joined | 09:14 |
| ← urkud__ left | 09:15 |
| ← Stummi left | 09:15 |
| → urkud__ joined | 09:15 |
| → Stummi joined | 09:15 |
| ← ramok left | 09:16 |
| → ramok joined | 09:16 |
| ← seanius left | 09:19 |
| → ThiefMaster joined | 09:19 |
| ← ThiefMaster left | 09:19 |
| → ThiefMaster joined | 09:19 |
| → seanius joined | 09:19 |
| → aiju joined | 09:19 |
|
aiju
| something really weird happened.. somehow git seems to have mixed several commits together, now some files disappeared, some are full of conflicts.. just plain WTF | 09:20 |
|
shruggar
| did you try to merge several commits together? :) | 09:20 |
|
aiju
| somehow i was in "no branch" | 09:21 |
|
shruggar
| what were you doing when it happened? | 09:21 |
|
aiju
| i don't really know.. just noticed it | 09:21 |
|
| i did some commit reverting yesterday, which seems to be the cause of it | 09:22 |
|
| git log is perfectly fine though | 09:22 |
|
shruggar
| yes, a revert is a type of merge | 09:22 |
|
wereHamster
| more like cherry-pick | 09:23 |
|
aiju
| changes i did decades ago seem to be reverted and it's all plain wtf | 09:23 |
|
wereHamster
| aiju: gitk --all | 09:23 |
|
curtana
| or at worst, reflog | 09:24 |
|
aiju
| looks kinda funny | 09:24 |
|
| sadly, it lacks recent changes | 09:25 |
|
| which do appear in git log | 09:25 |
|
shruggar
| gitk --all shows the notes ref... perhaps it shouldn't? | 09:25 |
| ← Textmode left | 09:26 |
|
aiju
| i just cloned the local repo, now it looks fine | 09:26 |
| → thierryp joined | 09:26 |
|
aiju
| still i'd like to repair the original one | 09:26 |
| ← thierryp_ left | 09:27 |
|
lacostej
| still stuck... | 09:27 |
|
aiju
| git stash did the job | 09:28 |
|
| it's back to the way it was this morning | 09:28 |
|
| (i.e. i have my files back) | 09:29 |
|
| how to merge those two branches now? | 09:30 |
|
| the "no branch" and master | 09:30 |
| → ijuma_ joined | 09:30 |
|
lacostej
| what's the proper way to debug a git clone ? Can I gdb into it to get a stack trace ? Can I use this: https://git.wiki.kernel.org/index.php/Aliases#A_.27debug.27_alias_to_help_debugging_builtins ? | 09:30 |
| ← dnquark left | 09:31 |
|
Ilari_antrcomp
| lacostej: git clone segfaults? | 09:31 |
|
lacostej
| no it hangs | 09:31 |
|
Ilari_antrcomp
| lacostej: What protocol? | 09:31 |
| ← MacGyverNL_ left | 09:31 |
|
lacostej
| Ilari_antrcomp: git clone git://kernel.ubuntu.com/ubuntu/ubuntu-lucid.git | 09:32 |
| → rweng joined | 09:32 |
|
Ilari_antrcomp
| lacostej: So git://... Try 'telnet kernel.ubuntu.com 9418' and see if it connects... | 09:32 |
|
Nugget_
| telnet is eeeeeeevil! | 09:32 |
|
aiju
| Nugget_: so is ftp.. still people use it | 09:32 |
|
lacostej
| works | 09:32 |
|
aiju
| (my CS teacher called it "state of art") | 09:33 |
|
rweng
| hi, can anyone give me a hint what i am doing wrong? i got a file latex/.gitignore with content "*.out" - however, if i do "git status" the file latex/test.out appears | 09:33 |
|
Ilari_antrcomp
| lacostej: Git clone might have verbosity options... | 09:33 |
|
lacostej
| thing is that I need to download 900M, so it takes quite a bit of time at 250kbits | 09:33 |
| ← thierryp left | 09:33 |
|
shruggar
| rweng, appears under what section? | 09:33 |
|
rweng
| Changes to be committed: new file: latex/test.out | 09:34 |
|
| uh, could it be because i added it before? | 09:34 |
|
shruggar
| rweng, sounds like it was added before, yes | 09:34 |
|
Ilari_antrcomp
| lacostej: It hangs mid-transfer? | 09:34 |
|
rweng
| arg, how dumb of me | 09:34 |
|
aiju
| how to switch branch? | 09:34 |
|
shruggar
| rweng, git rm --cached to remove it from the index | 09:34 |
|
rweng
| shruggar: thanks! | 09:34 |
|
lacostej
| yes. Now at "Receiving objects: 34% (594474/1737004), 293.72 MiB | 72 KiB/s " Last time was 13%. Tried 4-5 times | 09:34 |
|
wereHamster
| lacostej: I could give you a bundle which you can download through http.. | 09:34 |
|
lacostej
| hehe. I am sure I can get it work. I just want to find out why :) | 09:35 |
| → tvw joined | 09:35 |
|
Ilari_antrcomp
| And git:// does not have debug mode that prints all sorts of connection parameters... :-/ | 09:35 |
|
lacostej
| gdb bt doesn't give me much... | 09:37 |
| → romgit joined | 09:37 |
| ← Sjors left | 09:37 |
|
Ilari_antrcomp
| lacostej: Strace would probably show it blocking on read of network connection... | 09:37 |
|
aiju
| could i just delete the master branch and rename the second one "master"? :D | 09:38 |
|
lacostej
| probably but then the git executable should be able to recover from transient connection errors, right ? | 09:38 |
|
| I wonder about the context of the blocking read | 09:38 |
|
Ilari_antrcomp
| lacostej: Git clone can't recover from connection going down. | 09:38 |
|
lacostej
| ah... | 09:39 |
|
| then I get it | 09:39 |
|
| that's bad. When you're downloading 1G... | 09:39 |
|
Ilari_antrcomp
| lacostej: TCP can recover from brief interruptions, but not systematic packet lossage. | 09:39 |
|
| lacostej: Resuming download is HARD. | 09:39 |
|
| Otherwise there would already be resumable fetch/clone. | 09:40 |
|
| lacostej: And network sniffing would probably reveal your computer trying to repeatedly ACK the partial transmission with nothing coming back. | 09:40 |
|
aiju
| how to delete commits? | 09:41 |
|
Ilari_antrcomp
| aiju: reset. | 09:41 |
|
aiju
| my local repository is completely fine now.. i can't push it though | 09:41 |
|
Ilari_antrcomp
| aiju: Not fast-forward? | 09:41 |
|
aiju
| pardon? | 09:41 |
|
Ilari_antrcomp
| aiju: What's the rejection message for branch update? Non-fast forward? | 09:42 |
|
aiju
| yeah | 09:42 |
|
Ilari_antrcomp
| aiju: Either merge the changes from upstream or force the push (loses data). | 09:42 |
| → a_cezam joined | 09:42 |
| → oriba joined | 09:43 |
|
aiju
| -f did the job, ty | 09:43 |
| ← oriba left | 09:43 |
|
Ilari_antrcomp
| aiju: Wonder what the heck did you nuke from remote... | 09:43 |
|
aiju
| broken stuff | 09:43 |
|
| "git revert" accidents | 09:43 |
|
Ilari_antrcomp
| aiju: If others have fetched that, they are now annoyed. | 09:43 |
|
aiju
| assuming, that others exist.. | 09:44 |
| → RORUBUN joined | 09:44 |
|
a_cezam
| hi | 09:46 |
| → MacGyverNL joined | 09:47 |
| → felipec joined | 09:47 |
| ← slonopotamus left | 09:47 |
| → Dave^| joined | 09:47 |
|
a_cezam
| is there anyone? | 09:48 |
|
shruggar
| a_cezam, just ask your question | 09:48 |
|
a_cezam
| ok | 09:49 |
|
| codejunky hides | 09:49 |
|
aiju
| a_cezam: no, we're all just a bunch of bots | 09:49 |
|
codejunky
| ;-) | 09:49 |
|
| aiju beeps | 09:49 |
| → intripoon joined | 09:51 |
| → Paraselene_ joined | 09:53 |
| ← a_cezam left | 09:53 |
|
lacostej
| Ilari_antrcomp: to close this thread, reading past threads regarding resumable clones. Found this: https://git.wiki.kernel.org/index.php/SoC2009Ideas#Restartable_Clone . I will try again fetching my repo. Thanks for your time | 09:54 |
|
shruggar
| yeah, I thought it was a GSoC idea | 09:56 |
|
| but there are other things (like GitTorrent) which I'd rather see, and which would implicitly solve the restartable clone problem | 09:56 |
|
rajeshsr_
| when git doc uses working tree does it mean the whole git tree or the current working directory? | 09:57 |
| → Titosemi joined | 09:57 |
|
shruggar
| it generally means the entire tree | 09:58 |
|
rajeshsr_
| shruggar, ok, thanks | 09:58 |
| → sagsousuke joined | 09:58 |
| ← henkboom left | 09:59 |
|
rajeshsr_
| Is it ok to switch branches without commiting changes? i sometimes get error, sometimes don't. Can anyone clarify about this behavior? | 09:59 |
|
cmyk
| would this work?: git config --global core.editor mate | 09:59 |
|
shruggar
| rajeshsr_, you'll get errors if files you have modified differ between the current HEAD and the branch you're switching to | 10:00 |
|
cmyk
| got this after adding the message and saving: Aborting commit due to empty commit message. | 10:00 |
| → gebi joined | 10:00 |
| → henkboom joined | 10:02 |
|
shruggar
| rajeshsr_, it's usually a case of "it's okay to do that, but why are you doing it?" because it may be that you're going about things the wrong way. For example, relevant questions might be: why are you leaving them un-committed? Why did you start editing them when in the wrong branch? Why are you checking out another branch if that's not the one you're working on? | 10:02 |
|
Ilari_antrcomp
| cmyk: The editor must wait until it is closed (you presumably need some command-line option for the editor command). | 10:02 |
|
cmyk
| i'll look at the tm bundle | 10:02 |
|
rajeshsr_
| shruggar, yeah, those are good questions! I need to think about them, to understand my usage patterns! :) | 10:04 |
| ← felipec left | 10:04 |
| → icwiener joined | 10:04 |
| → thiago_akademy joined | 10:05 |
| → felipec joined | 10:05 |
|
rajeshsr_
| So, simple said it causes error when their HEAD of one differs from the modification you made? So untracked files don't have a problem? | 10:05 |
|
shruggar
| rajeshsr_, untracked files have a problem if they exist in the branch you're switching to | 10:05 |
| ← felipec left | 10:06 |
| ← lacostej left | 10:06 |
| → felipec joined | 10:07 |
|
rajeshsr_
| shruggar, well, with untracked files i never see a problem. It is untracked in all branches.. | 10:07 |
| ← a9b left | 10:07 |
|
shruggar
| rajeshsr_, if it's untracked in both the branch you're on, and the branch you're switching to, then it's not a problem | 10:07 |
| ← aiju left | 10:08 |
| ← hobodave left | 10:08 |
|
rajeshsr_
| ha, you mean if it is commited in one while it is untracked in another. Is that even possible?! | 10:09 |
|
shruggar
| rajeshsr_, of course it's possible, why wouldn't it be? | 10:09 |
|
| rajeshsr_, if you add a file in the branch you're currently on, and commit, what would you expect to happen to all the other branches? | 10:10 |
| ← dpino left | 10:10 |
| _Unode → Unode | 10:10 |
|
rajeshsr_
| they won't be visible to other branches as their HEAD points to something else.. | 10:10 |
|
shruggar
| the other branches won't be effected in any way | 10:11 |
| → tizbac joined | 10:11 |
|
shruggar
| (affected?) | 10:11 |
|
rajeshsr_
| i think so. they won't get affected.. | 10:11 |
| ← anjen left | 10:12 |
| → thierryp joined | 10:12 |
| → mital joined | 10:13 |
|
shruggar
| right, so if you were on one of those other branches, that file wouldn't be tracked as far as you're concerned, so if you created it, it would be "untracked files:". But switching to the branch where you did add+commit would complain "untracked files would be overwritten" | 10:13 |
| → trash joined | 10:14 |
| ← codeshepherd left | 10:14 |
|
wereHamster
| cmyk: mate -w | 10:14 |
| → codeshepherd joined | 10:14 |
| ← thierryp left | 10:14 |
| → thierryp_ joined | 10:14 |
| ← thierryp_ left | 10:15 |
| ← romgit left | 10:15 |
| → rolfb joined | 10:16 |
| ← urkud__ left | 10:16 |
| ← rchavik left | 10:17 |
| → rchavik joined | 10:17 |
| → elyob joined | 10:19 |
|
mital
| hey I am trying to setup git daemon.. I found this blog post : http://rockfloat.com/blog/?id=40 ... when I run "sudo runsvdir /etc/service &" it gives me error "runsv git-daemon: fatal: unable to lock supervise/lock: temporary failure" | 10:19 |
| → lucsky joined | 10:19 |
|
mital
| can anybody help me what should I do ? | 10:19 |
|
| I am also not able to find script /etc/init.d/git-daemon-run | 10:20 |
| → didlix joined | 10:21 |
| → urkud__ joined | 10:22 |
| ← codeshepherd left | 10:25 |
| → d0k joined | 10:25 |
| → dpino joined | 10:25 |
| → codeshepherd joined | 10:25 |
| → Belna joined | 10:28 |
| → kamilo00111 joined | 10:28 |
| ← kamilo00111 left | 10:29 |
| ← rweng left | 10:31 |
| ← Nickeeh left | 10:32 |
| → level09 joined | 10:32 |
|
level09
| i want to ignore all hidden dirs/files except .htaccess , will this work : | 10:32 |
|
| *. | 10:32 |
| ← dajero left | 10:32 |
|
level09
| !*.htaccess | 10:32 |
|
Ilari_antrcomp
| level09: '.*' and '!.htaccess'? | 10:33 |
|
level09
| Ilari_antrcomp: my concern is .. will it look for it recursively ? | 10:33 |
| → dajero joined | 10:33 |
|
Ilari_antrcomp
| level09: If you don't want .htaccess to be recursive rule: '!/.htaccess'. | 10:34 |
|
level09
| okay thanks ! actually I want it to be recursive | 10:35 |
|
mital
| am I missing any package ?? : aptitude shows me : git-common and git-daemon-run installed | 10:35 |
|
| I am not able to find script /etc/init.d/git-daemon-run | 10:36 |
|
Ilari_antrcomp
| mital: It uses some weird init system. | 10:36 |
|
| mital: (blame git-daemon-run for that). | 10:36 |
|
wereHamster
| runit | 10:36 |
|
mital
| hm | 10:36 |
|
| what should I do now ? | 10:36 |
|
Ilari_antrcomp
| mital: Edit the startup script... Its there somewhere... | 10:37 |
| → oriba joined | 10:38 |
| ← sleepy_tiger left | 10:38 |
|
mital
| when I run "sudo runsvdir /etc/service &" it gives me error "runsv git-daemon: fatal: unable to lock supervise/lock: temporary failure" | 10:38 |
|
level09
| when using git rm .* why I'm getting error | 10:38 |
|
| '..' is outside repository | 10:38 |
| ← dajero left | 10:38 |
|
mital
| Ilari_antrcomp: do u know what reason this could be ? | 10:38 |
|
level09
| i want to remove hidden dirs files from repo | 10:39 |
|
| *from tracking rather | 10:39 |
|
Ilari_antrcomp
| level09: Shell expands .* to .. | 10:39 |
|
wereHamster
| level09: --ignore-unmatch | 10:40 |
|
Ilari_antrcomp
| mital: Something's locking that lock. | 10:40 |
|
level09
| wereHamster: thanks ! trying .. | 10:40 |
| → thierryp joined | 10:40 |
| ← giskard left | 10:41 |
| → lacostej joined | 10:43 |
| ← codeshepherd left | 10:44 |
| ← oriba left | 10:44 |
| → Nickeeh joined | 10:45 |
| → vegeste joined | 10:46 |
| ← peper left | 10:46 |
| ← lazylisper left | 10:49 |
| → consolers joined | 10:53 |
| → Joeconyers joined | 10:53 |
| ← thierryp left | 10:59 |
| ← Titosemi left | 10:59 |
| ← seanius left | 10:59 |
| ← jtdowney left | 10:59 |
| ← lhz left | 10:59 |
| ← psoo left | 10:59 |
| ← eighty4 left | 10:59 |
| ← cilly left | 10:59 |
| ← slakmagik left | 10:59 |
| ← disappearedng left | 10:59 |
| ← adrien left | 10:59 |
| ← cwillu_at_work left | 10:59 |
| ← xiong left | 10:59 |
| → hukl joined | 11:00 |
| → aziz joined | 11:00 |
| → codeshepherd joined | 11:01 |
| ← keyvan left | 11:02 |
| → thierryp joined | 11:02 |
| → Titosemi joined | 11:02 |
| → seanius joined | 11:02 |
| → jtdowney joined | 11:02 |
| → lhz joined | 11:02 |
| → psoo joined | 11:02 |
| → eighty4 joined | 11:02 |
| → cilly joined | 11:02 |
| → slakmagik joined | 11:02 |
| → disappearedng joined | 11:02 |
| → adrien joined | 11:02 |
| → cwillu_at_work joined | 11:02 |
| ← mbroeker left | 11:03 |
| → darkskiez joined | 11:03 |
|
darkskiez
| is there something equivalent to "git branch --contains " in gitweb ? | 11:04 |
| ← g3d left | 11:04 |
| ← thierryp left | 11:05 |
| ← Titosemi left | 11:05 |
| ← seanius left | 11:05 |
| ← jtdowney left | 11:05 |
| ← lhz left | 11:05 |
| ← psoo left | 11:05 |
| ← eighty4 left | 11:05 |
| ← cilly left | 11:05 |
| ← slakmagik left | 11:05 |
| ← disappearedng left | 11:05 |
| ← adrien left | 11:05 |
| ← cwillu_at_work left | 11:05 |
| → hearit joined | 11:06 |
| ← shadowmaster left | 11:06 |
| → keyvan joined | 11:08 |
| → dajero joined | 11:09 |
| ← lacostej left | 11:09 |
| → cilly joined | 11:09 |
| → slakmagik joined | 11:09 |
| → adrien joined | 11:09 |
| → seanius joined | 11:10 |
|
mital
| where would be git configuration file... I want to enable receive-pack service | 11:10 |
|
| can anybody help me | 11:10 |
| → jcromartie joined | 11:11 |
|
shruggar
| mital: http://progit.org/book/ch4-9.html | 11:11 |
|
Ilari_antrcomp
| mital: Do you REALLY want to do that? | 11:12 |
|
shruggar
| though I'm not sure if "service" is what you really want | 11:12 |
| → psil joined | 11:12 |
|
Ilari_antrcomp
| mital: git-daemon has absolutely NO AUTHENTICATION. | 11:12 |
| ← urkud__ left | 11:13 |
| → psoo joined | 11:13 |
| → Titosemi joined | 11:13 |
|
mital
| hmm I have no idea how to setup the authentication bit... so just wanted to check with no authentication it works... then I can start the authentication bit | 11:13 |
| → thierryp joined | 11:14 |
|
shruggar
| mital, what do you actually want to do? | 11:14 |
| → eighty4 joined | 11:14 |
|
mital
| I am setting up a local git server... | 11:14 |
|
shruggar
| mital, for what purpose? | 11:14 |
| → lhz joined | 11:14 |
|
mital
| I want to host some of my projects locally ... and want to access them from different machines/ os etc.. | 11:15 |
|
| may be more people will be accessing it | 11:15 |
|
Ilari_antrcomp
| mital: Install Gitolite. | 11:15 |
| → disappearedng joined | 11:15 |
| → cwillu_at_work joined | 11:16 |
| → icwiener_ joined | 11:20 |
| ← icwiener left | 11:22 |
| ← Nickeeh left | 11:26 |
| ← keyvan left | 11:26 |
| ← Joeconyers left | 11:28 |
|
Aaaarg
| what do I do if want master to point to a previous commit? | 11:29 |
|
Ilari
| Aaaarg: reset? | 11:29 |
|
avar
| create a new commit with that as the parent, watch git implode ! >:) | 11:29 |
| → kukks joined | 11:30 |
| → Kage joined | 11:30 |
|
| shruggar smacks avar | 11:31 |
|
shruggar
| otherwise known as a "branch" | 11:32 |
| → lacostej joined | 11:34 |
| ← codeshepherd left | 11:34 |
| → hauserserser_ joined | 11:34 |
| → codeshepherd joined | 11:35 |
|
Aaaarg
| yep git reset, thanks Ilari | 11:35 |
| → elijahbal joined | 11:37 |
|
elijahbal
| Hello. | 11:38 |
| → another_newbie joined | 11:38 |
|
shruggar
| that's my name, don't wear it out | 11:38 |
| ← consolers left | 11:38 |
|
elijahbal
| I would like to maintain a C project, but I want to do by splitting the files in separate files. | 11:38 |
|
| How to 1) create a branch 2) merge in this case ? | 11:39 |
|
| I don't see how to merge with the master branch if I split the initial project in many files. | 11:39 |
|
shruggar
| elijahbal, can you rephrase the first line? You seem to be using the word "files" in a way I don't understand | 11:40 |
|
elijahbal
| I have a project with big files (typically one thousand lines), and I think it's not maintanable. | 11:40 |
|
| I would like to create one file for each function in the project. | 11:40 |
|
| That means split the project in many small files. | 11:41 |
|
| What do you think of it ? | 11:41 |
|
shruggar
| Okay, have you tried a small test to see what happens? | 11:41 |
|
elijahbal
| I didn't try a test. | 11:41 |
|
| No | 11:41 |
|
wereHamster
| git doesn't care whether a file has 100 or 1000 lines | 11:41 |
|
| not at that small scale anyway | 11:42 |
|
elijahbal
| So the merge can be done anyway ? | 11:42 |
|
shruggar
| elijahbal, in what direction? | 11:42 |
|
elijahbal
| Listen this is a test case | 11:42 |
|
| I have a program foo, with functions main(), a(), b(), [...], z() into it. | 11:43 |
|
shruggar
| Git should support this kind of merging, in theory, but I don't know how theoretical that support is | 11:43 |
|
elijahbal
| All this functions are stored in file called "foo.c" | 11:43 |
|
| Now what I want to do is to let main() in "foo.c", and create as many files as functions : a() in "a.c", b() in "b.c", [...] , z() in "z.c". | 11:44 |
| → Nickeeh joined | 11:44 |
|
elijahbal
| But mainstream make a change in foo.c | 11:44 |
|
| But mainstream make a change in foo.c in the functions x(). | 11:45 |
|
| How can I propagate this modification to the file "x.c" ? Do you think it's possible ? | 11:45 |
|
wereHamster
| I don't tink git is that smart yet, but create a test case and try it | 11:45 |
| ← bmalee left | 11:47 |
|
avar
| Why would you have a C project with 1 function per file anyway? That's just crazy. | 11:47 |
|
elijahbal
| avar: that is a *good* practice IMO. | 11:48 |
|
| that is called "modular programming. | 11:48 |
|
| " | 11:48 |
| → t0rc joined | 11:48 |
|
codejunky
| that sound like dan bernstein | 11:48 |
|
shruggar
| I think going from foo.c to split-a.c should work (or at least sometimes work). It's not exactly a "git question" so much as a "merge algorithms question". That is: if git can't do it for you, maybe some other merge tool may be able to. Git can certainly track the history of the change, though, however you propagate that change | 11:49 |
| ← t0rc left | 11:49 |
|
avar
| elijahbal: Sounds like a crazy workaround by someone who hasn't coded much in C or has a bad text editor, just my 2 eurocents. | 11:50 |
| ← psankar left | 11:50 |
| → t0rc joined | 11:50 |
|
avar
| It's much easier to grok codebases that have lots of C functions per file grouped by functionality. | 11:50 |
|
shruggar
| unless the functionality bleeds over | 11:51 |
|
| then it's just "shouldn't this be in x.c?" | 11:51 |
| ← roop left | 11:51 |
|
elijahbal
| You avoid this problem if you code a function in a file called with the name of the function | 11:52 |
| → ehabkost joined | 11:52 |
|
avar
| Are you going to have a corresponding header file for each function too? | 11:52 |
|
elijahbal
| also, when you open a file and you see 8-9 functions into it, your brain has to adapt to the situation. Which pieces of code are you going to modify ? | 11:53 |
|
shruggar
| I'm talking out my ass anyway. I use ctags, I don't care what file a function is in :) | 11:53 |
| ← rolfb left | 11:53 |
|
avar
| so instead of #include <str.h> you have #include <strcat.h>, #include <strlen.h> .... | 11:53 |
|
elijahbal
| Setting the header by functionality is good enough. | 11:53 |
|
| I use a global header for my project currently. | 11:53 |
|
| But I could split it up by functionnality, although I don't think it is of a real interest. | 11:54 |
|
| I just make one include per file, it's enough. | 11:54 |
|
| #include "my_project.h" , and "my_project.h" contains all the stuff I need (include foo,bar,etc) | 11:54 |
|
blueshift
| why would you make a rule to split all functions into separate files? | 11:55 |
| → parasti joined | 11:55 |
|
blueshift
| sounds like someone just discovered header files and linking and got overexcited | 11:55 |
|
elijahbal
| ha... It's just because it easier to make modifications. | 11:56 |
| ← SvenDowideit left | 11:56 |
| → JdGordon joined | 11:56 |
|
elijahbal
| You don't work on one project, you work on one function at time. | 11:56 |
|
shruggar
| I don't work on one function at a time.. | 11:57 |
|
elijahbal
| You can trust me, it's good for the sake of mind. | 11:57 |
|
| shruggar: that's a problem for me typically, I can not overload my brain. | 11:57 |
|
JdGordon
| I'm trying to psuh to a remote branch and having no luck.. anyideas why http://pastebin.com/CamrTYSZ isnt working? | 11:57 |
|
blueshift
| elijahbal: you can work on one function at a time when they're all in the same file. why does multiple files help? | 11:57 |
|
| maybe you need a better editor with code folding / multiple views | 11:58 |
|
shruggar
| I work on one task at a time. This usually involves modifications to several functions. I tend to commit a modification to one function at a time, but I use "git add --patch" and never give a thought to what file those modifications are in | 11:58 |
| ← dajero left | 11:58 |
|
blueshift
| JdGordon: you rebased, or someone else pushed | 11:59 |
|
| pull and merge | 11:59 |
| → thiago_a1ademy joined | 11:59 |
| thiago_a1ademy → thiago | 12:00 |
|
JdGordon
| ah ok, thanks | 12:00 |
| ← thiago_akademy left | 12:00 |
| thiago → Guest66078 | 12:00 |
| Guest66078 → thiago_akademyh | 12:00 |
| thiago_akademyh → thiago_akademy | 12:00 |
| → dajero joined | 12:00 |
|
elijahbal
| shruggar: and basically, when you do this, it happens that a function depends on many things in the same file. | 12:01 |
|
| You can avoid this if you set up a function per file. | 12:01 |
|
| Thus, the day you need only *one* thing, you cut/paste your functions elsewhere. | 12:01 |
|
JdGordon
| umm.. ok how to I undo that pull? | 12:02 |
|
blueshift
| git help reset | 12:02 |
|
JdGordon
| hang on, if you cant rebase how are you supposed to work with big patches and leep it in sync with upstream? | 12:03 |
|
| JdGordon is obviously doing it wrong | 12:03 |
|
blueshift
| you can rebase stuff you haven't published | 12:03 |
|
| but if you rebase it to the tip of origin, then try to push.. someone else may have done so in the meantime | 12:04 |
|
| in which case fetch, merge/rebase, push again | 12:04 |
| ← dajero left | 12:05 |
| → dajero joined | 12:05 |
|
JdGordon
| my public repo has master which is a clone of upstream and some branches which I want to keep seperate but in sync with master... is that wrong? | 12:05 |
| → oriba joined | 12:06 |
| → keyvan joined | 12:07 |
|
blueshift
| possible workflows is a big topic - and time for me to go. sorry | 12:07 |
|
JdGordon
| "in which case fetch, merge/rebase, push again" ? | 12:08 |
| → sandsmark joined | 12:08 |
|
sandsmark
| is it possible to fetch a single file from a remote git repository? | 12:09 |
|
_rane
| no | 12:09 |
| ← beeradb left | 12:09 |
|
Pieter
| you can if it's tagged first | 12:10 |
| → peper joined | 12:10 |
|
sandsmark
| hmm, ok | 12:10 |
| elliottcable → Paws | 12:11 |
| Paws → elliottcable | 12:11 |
| ← thierryp left | 12:11 |
| ← jony left | 12:12 |
| → thierryp joined | 12:12 |
| ← thierryp left | 12:13 |
| ← thiago_akademy left | 12:14 |
| → SvenDowideit joined | 12:15 |
| → beeradb joined | 12:20 |
| → eli joined | 12:21 |
| → sylr joined | 12:23 |
| ← eighty4 left | 12:24 |
| → froschi joined | 12:24 |
| luist__ → luist | 12:25 |
| ← darkskiez left | 12:31 |
| → mw joined | 12:31 |
| ← froschi left | 12:31 |
| ← oriba left | 12:32 |
| → rolfb joined | 12:33 |
| ← rolfb left | 12:33 |
|
rajeshsr_
| how is cherrypicking different from merge? | 12:33 |
|
| isn't merge more useful? cherrypicking makes you lose current state into past commit, right? | 12:34 |
| ← gergap left | 12:36 |
| ← lucsky left | 12:36 |
|
wereHamster
| cherry-pick is this: apply the diff from the given commit and reues its commit message when commiting it | 12:36 |
| → xperience joined | 12:36 |
| → gergap joined | 12:37 |
| ← gergap left | 12:37 |
| ← JdGordon left | 12:38 |
| → giallu joined | 12:38 |
|
rajeshsr_
| wereHamster, isn't merge also doing something like that? | 12:39 |
| → gergap joined | 12:39 |
|
_rane
| cherry-pick is for a single commit | 12:41 |
| → malumalu joined | 12:41 |
|
_rane
| merge is for many | 12:41 |
|
| roughly speaking | 12:42 |
| → bentob0x joined | 12:43 |
|
sitaram
| rajeshsr_: merge is doing something like that but it is preserving history; the new commit is built on top of the current HEAD | 12:44 |
|
| rajeshsr_: and the new commit has 2 parents, so any future merges know about the ancestry. With cherry-pick that's not going to happen | 12:44 |
| → lucsky joined | 12:44 |
| → ProperN[out] joined | 12:45 |
| ← ProperN[out] left | 12:46 |
| → ProperN[out] joined | 12:46 |
| → awx joined | 12:46 |
| ← girishr left | 12:46 |
|
sitaram
| rajeshsr_: some detail (all of it was already said above but maybe in a different format) in "cherry-pick versus merge" section of http://sitaramc.github.com/the-list-and-irc/special-branches.html | 12:48 |
| ← ProperNoun left | 12:48 |
| ProperN[out] → ProperNoun | 12:48 |
|
The_Ball
| _rane, thanks for that (git blame) | 12:48 |
| → radioman-lt joined | 12:50 |
| → molokai joined | 12:51 |
| ← codeshepherd left | 12:51 |
|
rajeshsr_
| sitaram, so cherrypicking is used when the 2 commits are siblings-like? | 12:51 |
| ← dajero left | 12:52 |
| → codeshepherd joined | 12:52 |
| → poseid joined | 12:52 |
|
sitaram
| rajeshsr_: which 2 commits? | 12:52 |
|
wereHamster
| it's used when you don't want to preserve ancestry | 12:53 |
| → ricardo joined | 12:53 |
|
rajeshsr_
| the present HEAD and the commit you cherrypicked... | 12:53 |
|
_rane
| aaaaaaa | 12:53 |
|
sitaram
| rajeshsr_: sort of... | 12:53 |
| ← ricardo left | 12:53 |
|
sitaram
| rajeshsr_: I have to leave now; will rejoin when I get home from work :) | 12:53 |
|
rajeshsr_
| sitaram, ok, thank you very much! | 12:54 |
| → girishr joined | 12:57 |
| ← girishr left | 12:59 |
| → Joeconyers joined | 12:59 |
| → ndim joined | 12:59 |
| → ricardo joined | 13:00 |
| ← ricardo left | 13:00 |
| → rccrv joined | 13:01 |
| ← mtkd left | 13:03 |
| ← codeshepherd left | 13:03 |
| → mtkd joined | 13:03 |
| ← RobertLaptop left | 13:04 |
| → codeshepherd joined | 13:04 |
| → IslandUsurper joined | 13:06 |
| ← tizbac left | 13:06 |
| ← ajpiano left | 13:07 |
| → coderdad joined | 13:09 |
| → gbacon joined | 13:10 |
| → simplechat joined | 13:10 |
| ← coderdad left | 13:10 |
| → thiago_akademy joined | 13:10 |
| → coderdad joined | 13:10 |
| ← flaguy48 left | 13:10 |
| ← coderdad left | 13:11 |
| → coderdad joined | 13:11 |
| ← gebi left | 13:12 |
| → tstclair joined | 13:12 |
| → coderdad_ joined | 13:13 |
| ← coderdad left | 13:13 |
| bdiego_away → bdiego | 13:14 |
| ← gbacon left | 13:15 |
| → scarabx joined | 13:15 |
| → gbacon joined | 13:15 |
| → dajero joined | 13:17 |
| → Enselic joined | 13:20 |
| ← lacostej left | 13:21 |
| → girishr joined | 13:22 |
| ← girishr left | 13:22 |
| ← rccrv left | 13:25 |
| → MattDiPasquale joined | 13:28 |
| → jony joined | 13:29 |
| → LiamH joined | 13:30 |
| ← EricInBNE left | 13:30 |
| ← gbacon left | 13:31 |
| → gebi joined | 13:34 |
| ← thiago_akademy left | 13:34 |
| ← frakturfreak left | 13:35 |
| → frakturfreak joined | 13:35 |
| → j0shua joined | 13:35 |
| ← dbatbold left | 13:37 |
| → dbatbold joined | 13:37 |
| ← scarabx left | 13:39 |
| ← _Zenith_ left | 13:40 |
| → RobertLaptop joined | 13:41 |
| → beatak joined | 13:43 |
| → tcurdt joined | 13:43 |
| → binjured joined | 13:46 |
|
sitaram
| rajeshsr_: (I'm back) if by "siblings" you mean the commit being cherry-picked should be a valid successor of the current HEAD, yes, otherwise you may get horrible conflicts | 13:49 |
|
level09
| I'm behind the origin/master by 20 commit, i want to overwrite the remote with my branch , how do i do that? | 13:49 |
|
sitaram
| but this is subjective | 13:49 |
| ← ph^_ left | 13:50 |
|
sitaram
| level09: you want kill those 20 commits forever on the server? | 13:50 |
|
level09
| yes | 13:50 |
|
| git reset --hard Head~5 gave me an error :S | 13:50 |
|
| on the server | 13:50 |
|
| sorry it is git reset --hard Head~20 | 13:50 |
|
| any other way to do it | 13:51 |
|
sitaram
| directly on the server? apart from the HEAD being uppercase, I'm not sure that will work anyway | 13:51 |
| → multigrain joined | 13:51 |
|
sitaram
| level09: the correct way is, on your client, "git push remotename +branchname" | 13:51 |
|
| level09: that "+" makes it a force push | 13:51 |
|
level09
| great thanks ! | 13:51 |
|
| in my case it is git push origin+master | 13:52 |
|
sitaram
| level09: you need a space between origin and +master | 13:52 |
| ← Enselic left | 13:52 |
|
level09
| that explains the error i got :DD | 13:54 |
|
| ! [remote rejected] master -> master (non-fast-forward) | 13:54 |
|
| what do I do about that :D | 13:54 |
| → TeckniX joined | 13:55 |
| → Ryback_ joined | 13:57 |
|
curtana
| level09, you do a force push: -f ... but only if you understand the consequences | 13:57 |
|
| basically if anyone else has pulled since you pushed, they'll have to fix up their history just as you just did | 13:57 |
|
| if no one has then use -f | 13:57 |
|
level09
| ok thanks | 13:58 |
|
| i'll try that | 13:58 |
|
| error: failed to push some refs to .. | 13:58 |
|
mapreduce
| I am on branch origin/somebranch. git push origin somebranch says that everything is up to date. git log somebranch on the remote repo shows an old commit as HEAD. | 14:00 |
|
| What am I missing? | 14:00 |
| ← RORUBUN left | 14:00 |
|
mapreduce
| It seems strange to me to be on branch origin/somebranch instead of on somebranch that tracks origin/somebranch. | 14:00 |
|
level09
| hmm whay do i get this on the remote : fatal: unable to read tree | 14:00 |
|
mapreduce
| I think I got there by doing git checkout origin/somebranch | 14:01 |
| → asedeno_work joined | 14:02 |
|
cbreak_work
| mapreduce: could it be that you have a local branch "origin/somebranch"? | 14:03 |
|
| do git branch -a to show all branches | 14:03 |
|
level09
| i think git rm --cached -r . has messed up everything | 14:04 |
|
mapreduce
| cbreak_work: That appears to be the case. | 14:04 |
| → tizbac joined | 14:04 |
|
mapreduce
| * origin/somebranch (no -> thing) | 14:04 |
|
cbreak_work
| what I'd do is rename that one to something less stupid :) | 14:05 |
| ← [Po]lentino left | 14:05 |
| ← maleknet left | 14:05 |
| ← luist left | 14:05 |
|
hendry
| i pushed to a my/.git but the contents of my/ aren't being updated. what have i missed? | 14:05 |
| → montylounge_ joined | 14:06 |
|
mapreduce
| cbreak_work: Sounds good, thanks. | 14:06 |
| ← marc_kdab left | 14:06 |
|
shruggar
| hendry: sounds like faq nonbare | 14:06 |
|
| hendry, in short: push does not have anything to do with work-trees | 14:06 |
|
cbreak_work
| yeah. because merging requires user interaction | 14:07 |
|
| pushing by definition does not | 14:07 |
|
| shruggar doesn't know how to operate the bot for faq entries | 14:07 |
|
cbreak_work
| I think you have to write faq non-bare | 14:08 |
|
Gitbot
| cbreak_work: Pushing to non-bare repositories is discouraged. See https://git.wiki.kernel.org/index.php/GitFaq#non-bare | 14:08 |
|
shruggar
| ah, hyphen, of course | 14:08 |
| → flazz joined | 14:08 |
|
level09
| can I delete my master branch and rename another to master ? | 14:08 |
|
cbreak_work
| yes | 14:08 |
|
| or you can reset --hard your master to the other branches' head | 14:08 |
|
level09
| let me try that :) | 14:09 |
|
cbreak_work
| be warned | 14:09 |
|
| reset can kill | 14:09 |
| ← rox` left | 14:09 |
|
cbreak_work
| if you lose a finger or an eye it's not my fault. | 14:10 |
|
shruggar
| I recommend that we start saying "reset --keep" when we mean "reset --hard", even though it's not what we mean, since it's safer | 14:11 |
|
cbreak_work
| nice option | 14:12 |
|
another_newbie
| when merging dev branch into master, how to ignore the dbsetting file | 14:12 |
|
shruggar
| still kicking around reset --crunchy at home | 14:12 |
|
cbreak_work
| but no, part of the fun of #git is handing out weapons of mass destruction to unsuspecting users | 14:12 |
| → jds joined | 14:12 |
|
cbreak_work
| another_newbie: in general, merging merges whole branches | 14:13 |
|
| you can hack something together I guess if you really really want to | 14:13 |
| → maleknet joined | 14:13 |
| → jfkw joined | 14:14 |
|
another_newbie
| can we ignore one file | 14:14 |
| → xiong joined | 14:14 |
| ← rchavik left | 14:15 |
| ← masterkorp left | 14:15 |
| ← mtkd left | 14:15 |
|
another_newbie
| when we develop locally we use local db settings in db connection file | 14:15 |
|
| but that shouldn't be added to master | 14:15 |
| → rox` joined | 14:15 |
|
another_newbie
| how can we handle that | 14:15 |
| → thunk joined | 14:15 |
|
level09
| i checkout on a remote to an earlier branch | 14:16 |
|
| but on local , it still says the remote is ahead by xx commits | 14:16 |
|
| sorry earlier commit , not branch | 14:16 |
|
cbreak_work
| another_newbie: don't track the file if you don't want it tracke | 14:16 |
|
| settings are not part of the source code, they should not be tracked anyway, since they get regenerated the next time you start your app anyway | 14:16 |
|
another_newbie
| what if its already added when initiaing the reposiotry | 14:17 |
|
cbreak_work
| you can remove it again | 14:17 |
|
another_newbie
| how | 14:17 |
|
cbreak_work
| git rm --cached | 14:17 |
|
| it'll be deleted everywhere, so no more trouble with it :) | 14:17 |
| → thierryp joined | 14:17 |
| → aresnick joined | 14:17 |
| → luist joined | 14:17 |
|
cbreak_work
| (everywhere besides on your local machine, you get to keep your own copy with --cached) | 14:17 |
| ← khelll left | 14:17 |
|
another_newbie
| if its already in the initial commit | 14:18 |
| ← jcromartie left | 14:19 |
|
level09
| cbreak_work: everytime I add something to .gitignore I can excute git rm --cached ? | 14:19 |
| → hagabaka joined | 14:19 |
| → dec joined | 14:19 |
| → alezandro joined | 14:20 |
| → lanthan_ joined | 14:20 |
| ← maleknet left | 14:21 |
|
another_newbie
| should add the config-setting files in .gitignore | 14:21 |
| ← ereslibre left | 14:22 |
|
cbreak_work
| level09: unrelated. | 14:23 |
|
| another_newbie: yes | 14:23 |
|
| you don't want to track configuration after all | 14:23 |
| ← lanthan left | 14:23 |
|
level09
| cbreak_work: why? if I dont remove the cached files they will still be tracked | 14:23 |
|
| no ? | 14:23 |
|
cbreak_work
| level09: you can also ignore files that aren't tracked in the first place | 14:24 |
|
| that's what I do... :) | 14:24 |
| → disappearedng_ joined | 14:24 |
|
level09
| cbreak_work: agreed, but sometimes you discover new files while working | 14:24 |
| ← bentob0x left | 14:24 |
| ← d0k left | 14:24 |
|
cbreak_work
| I am very careful with what I add | 14:25 |
| ← asedeno_work left | 14:26 |
| ← disappearedng left | 14:26 |
| ← mital left | 14:29 |
| → mann3qu1n joined | 14:29 |
| ← mann3qu1n left | 14:29 |
| → mann3qu1n joined | 14:29 |
| ← mann3qu1n left | 14:31 |
| → ereslibre joined | 14:32 |
| ← ereslibre left | 14:32 |
| → ereslibre joined | 14:32 |
| → smorg joined | 14:32 |
| → d0k joined | 14:33 |
| ← comawhite left | 14:34 |
| montylounge_ → montylounge | 14:34 |
| → comawhite joined | 14:35 |
| → mann3qu1n joined | 14:35 |
| → tedoc2000 joined | 14:36 |
| ← mann3qu1n left | 14:36 |
| ← HG` left | 14:37 |
| → killasmurf86 joined | 14:37 |
|
killasmurf86
| hi, i'm wondering how to split one project into two project, without keeping history of irrelevant files, for each project | 14:39 |
| ← another_newbie left | 14:40 |
|
shruggar
| killasmurf86, use git-filter-branch to remove all irrelevant history from one branch, then do it again to remove the opposite from another | 14:40 |
|
| killasmurf86, it's likely that there is some overlap | 14:40 |
|
level09
| git checkout -f is taking me out of the master branch, once i checkout to it , the checkout is undone | 14:40 |
|
killasmurf86
| shruggar: thanks, so I was looking at right manual :D | 14:40 |
| → OneTrueDave joined | 14:44 |
| ← Joeconyers left | 14:45 |
| → AAABeef joined | 14:45 |
|
OneTrueDave
| Given an old revision, how do you get a diff between that and the previous revision, i.e. see exactly what that commit changed? | 14:45 |
| → Joeconyers joined | 14:45 |
|
shruggar
| OneTrueDave, "git show <the-commit>" is probably what you want | 14:46 |
| ← dajero left | 14:46 |
|
OneTrueDave
| yep, thanks! | 14:46 |
|
shruggar
| OneTrueDave, more-literally, however: git diff <the-commit>^..<the-commit> | 14:46 |
| → altrux joined | 14:47 |
|
OneTrueDave
| what does the caret signify | 14:47 |
| → Yuffster joined | 14:47 |
|
shruggar
| OneTrueDave, first-parent-of. see man git-rev-parse | 14:47 |
|
Gitbot
| OneTrueDave: the git-rev-parse manpage can be found at http://git.or.cz/man/git-rev-parse | 14:47 |
|
Arjen
| A shortcut for that is $commit^! | 14:47 |
|
OneTrueDave
| okay, so show the diff between the first parent and the actual commit. makes sense. | 14:48 |
|
| thanks | 14:49 |
| ← OneTrueDave left | 14:49 |
| ← warthog9 left | 14:49 |
| ← apsysoev left | 14:50 |
| → nanotube_ joined | 14:50 |
| ← killasmurf86 left | 14:50 |
| → ereslibre_laptop joined | 14:50 |
| ← ereslibre_laptop left | 14:50 |
| → ereslibre_laptop joined | 14:50 |
| ← coderdad_ left | 14:50 |
| ← nanotube_ left | 14:51 |
| → coderdad joined | 14:51 |
| ← ereslibre left | 14:51 |
|
level09
| why am I getting this error when trying hard reset fatal: unable to read tree | 14:52 |
| → marc_kdab joined | 14:52 |
| → hipe__ joined | 14:53 |
| → ereslibre joined | 14:55 |
| → chrislerum joined | 14:55 |
| ← ereslibre_laptop left | 14:56 |
| ← coderdad left | 14:56 |
| → RobertLaptop_ joined | 14:57 |
| → ajpiano joined | 14:57 |
| → nsussman` joined | 14:58 |
| ← christophsturm left | 14:59 |
| ← RobertLaptop left | 14:59 |
| → alus joined | 14:59 |
|
fr0sty
| level09: what does 'git status' tell you? | 15:00 |
|
alus
| I have an svn repo which is receiving upstream changes, and I'd like to commit revisions from it to my git repo fork | 15:00 |
| → h32Lg joined | 15:00 |
| ← h32Lg left | 15:00 |
| → h32Lg joined | 15:00 |
|
alus
| is there a function for that, or do I have to monkey patch by hand? | 15:00 |
| ← radioman-lt left | 15:01 |
| → radioman-lt joined | 15:01 |
| → mbroeker joined | 15:02 |
| → rayners joined | 15:03 |
|
level09
| fr0sty: nothing to commit - clean directory | 15:03 |
|
fr0sty
| where are you trying to reset ? | 15:04 |
|
| 'to what', really | 15:04 |
|
curtana
| alus, are you using git-svn? | 15:04 |
| → Nemurenai joined | 15:04 |
|
| curtana wishes there was a git-svn --mirror that made a bare git repo | 15:05 |
| ← smorg left | 15:05 |
| → nevyn^ joined | 15:05 |
|
shruggar
| curtana, there's not because it's can't be made very sanely, due to mostly-necessary commit-rewriting | 15:06 |
| → warthog9 joined | 15:06 |
|
curtana
| double negative whoa head asplode | 15:07 |
| ← iravid left | 15:07 |
|
shruggar
| no double-negative there, though a misplaced "'s" | 15:07 |
| → iravid joined | 15:08 |
| ← hipe__ left | 15:08 |
|
level09
| fr0sty: i did a push from local, I want to reset everything to a point before that merge | 15:08 |
|
alus
| curtana: I don't know what git-svn is, so probably not | 15:08 |
|
shruggar
| alus: if you are tracking an svn repository with git, and don't know what git-svn is, then you should probably look into man git-svn | 15:09 |
|
Gitbot
| alus: the git-svn manpage can be found at http://git.or.cz/man/git-svn | 15:09 |
|
alus
| "tracking" is maybe to specific a definition | 15:09 |
|
| s/to/too | 15:10 |
|
fr0sty
| level09: you pushed from local, and are doing 'git reset <sha1>' on the local machine? | 15:10 |
|
| if, so, what does 'git show <sha1>' tell you? | 15:10 |
| ← navetz left | 15:10 |
|
alus
| sometimes there are changes in the svn repo which I want. sometimes they want changes I make, and obviously I skip importing those | 15:10 |
|
level09
| fr0sty: no , I sshed to the remote to try to reset it | 15:10 |
|
| I was able to reset local with no issues | 15:11 |
| → Sr_X joined | 15:11 |
|
level09
| tried a forceful push , but it was rejected | 15:11 |
|
fr0sty
| try adding a plus to the push command. | 15:11 |
|
alus
| git-svn looks too complicated | 15:12 |
|
fr0sty
| 'git push <remote> +<localbranch:remotebranch> ? | 15:12 |
|
ToxicFrog
| alus: what's complicated about it? | 15:12 |
|
fr0sty
| also, is the remote a bare repository? | 15:12 |
| → RORgasm joined | 15:12 |
|
alus
| ToxicFrog: uh, it does tons of things and I only want a tiny thing | 15:13 |
|
ToxicFrog
| git svn clone foo; git svn rebase to get changes from svn, git svn dcommit to push changes to svn. | 15:13 |
| ← cbreak_work left | 15:13 |
|
GarethAdams|Work
| alus: my watch is water resistant to 50m, but I got it even though I didn't need to | 15:14 |
|
alus
| GarethAdams|Work: but you don't have to dive to 50m to read the time | 15:14 |
| ← starcoder|Svr left | 15:15 |
|
GarethAdams|Work
| alus: right, but you don't need to *use* all of the other features just because they're there | 15:15 |
|
| s/but // | 15:15 |
|
alus
| GarethAdams|Work: well, the feature I want is burried in tons of other functionality | 15:15 |
| ← Nickeeh left | 15:15 |
|
GarethAdams|Work
| alus: ToxicFrog just described what you need to know | 15:15 |
|
level09
| fr0sty: yes it is bare remote | 15:16 |
|
alus
| not really, no. how do I pull specific changesets, not all of them? | 15:16 |
|
| er, svn calls them "revisions" | 15:16 |
| → smorg joined | 15:16 |
| → slonopotamus joined | 15:16 |
|
ToxicFrog
| alus: from what you said, the only ones you don't want to pull are the ones that are upstream incorporations of your own changes | 15:16 |
|
| and git svn rebase skips those automatically | 15:17 |
|
alus
| hm | 15:17 |
|
level09
| still rejected with +sign | 15:17 |
|
| git push origin +master | 15:17 |
|
ToxicFrog
| If you want something more like cherry-pick, I have no idea, sorry | 15:17 |
|
alus
| well I'll try that some day. | 15:17 |
|
ToxicFrog
| The idea with git svn is that you should be able to commit from git to svn as well as pull from svn to git, so stuff like that may not be supported at all. | 15:17 |
| ← leavittx_ left | 15:18 |
|
alus
| doees it actually affect the giv repo other than the changes it pulls in from svn? | 15:18 |
| ← leavittx left | 15:18 |
|
alus
| I mean, it has to store the svn repo url somewhere. does that get committed to the git repo? | 15:19 |
|
fr0sty
| level09: you can't reset a bare repository | 15:19 |
| → Textmode joined | 15:19 |
|
sitaram
| fr0sty: well you can, with plumbing commands, but it isn't pretty :) | 15:20 |
|
level09
| what do I do then ? | 15:20 |
| ← frakturfreak left | 15:22 |
|
fr0sty
| level09: git push -f origin +master | 15:22 |
| → frakturfreak joined | 15:22 |
| → hipe__ joined | 15:23 |
|
level09
| ! [remote rejected] master -> master (non-fast-forward) | 15:23 |
|
| error: failed to push some refs to .. | 15:23 |
| → dreiss joined | 15:23 |
|
level09
| :( | 15:23 |
| → spaceonline joined | 15:25 |
| ← vu3rdd left | 15:25 |
| → girishr joined | 15:27 |
| → starcoder|Svr joined | 15:27 |
| → raichoo joined | 15:27 |
| ← drubies left | 15:29 |
| ← freimatz left | 15:30 |
| ← priidu left | 15:30 |
| → drubies joined | 15:30 |
| ← codeshepherd left | 15:31 |
|
fr0sty
| if you have access to the remote machine, try unsetting receive.denyNonFastForwards temporarily | 15:32 |
| ← slonopotamus left | 15:32 |
|
level09
| then push again ?: | 15:33 |
| ← aresnick left | 15:34 |
|
level09
| where is that setting ? in .git/config ? | 15:34 |
| ← keyvan left | 15:34 |
| ← Joeconyers left | 15:35 |
| → keyvan joined | 15:35 |
|
fr0sty
| yes, push again, in reponame.git/config in the remote repostitory. | 15:35 |
|
level09
| thanks i'm gonna try that | 15:35 |
| ← intripoon left | 15:35 |
| → WebDragon joined | 15:36 |
| → kenichi joined | 15:36 |
| Unode → _Unode | 15:36 |
|
dennda
| win2 | 15:36 |
|
level09
| that worked !! :DD | 15:36 |
| ← dreiss left | 15:36 |
|
level09
| fr0sty: thanks, is there any downsides for what I did ? | 15:37 |
| ← t0rc left | 15:38 |
| ← curtana left | 15:38 |
|
fr0sty
| anyone else who has previously pulled from the remote will have to jump through some hoops to recover this. | 15:39 |
|
| and leaving denyNonFastForward = false will allow anyone else to do the same thing in the future. | 15:39 |
|
| level09: man git-rebase and looke at 'RECOVERING FROM UPSTREAM REBASE' for an explaination of recovery steps. | 15:39 |
|
Gitbot
| level09: the git-rebase manpage can be found at http://git.or.cz/man/git-rebase | 15:39 |
| → curtana joined | 15:40 |
|
level09
| thanks ! really helpful | 15:40 |
| ← kenyon left | 15:40 |
| → ereslibre_laptop joined | 15:40 |
| → ponzao____ joined | 15:40 |
|
level09
| fr0sty: when adding new files to .gitignore , is it right to run git rm --cached . to remove all tracked files from cache ? | 15:40 |
| ← ereslibre left | 15:40 |
|
curtana
| level09, check out git-clean | 15:42 |
| ← warthog9 left | 15:42 |
|
level09
| curtana: git clean will physically delete the files | 15:42 |
|
| I want to keep these files , while untracked | 15:42 |
| ← psoo left | 15:42 |
| ← ToxicFrog left | 15:42 |
| ← sh1mmer left | 15:43 |
|
curtana
| oh | 15:43 |
| → hohoho joined | 15:43 |
| → ToxicFrog joined | 15:45 |
| _Unode → Unode | 15:45 |
| → kenyon joined | 15:46 |
| ← keyvan left | 15:46 |
| ← spaceonline left | 15:47 |
| → steveire_ joined | 15:49 |
| ← steveire_ left | 15:49 |
| → steveire_ joined | 15:49 |
| ← jony left | 15:50 |
| ← marc_kdab left | 15:51 |
| → marc_kdab joined | 15:51 |
| → Joeconyers joined | 15:52 |
| → keyvan joined | 15:55 |
| ← andrewl left | 15:55 |
| → Nickeeh joined | 15:56 |
| ← Nemurenai left | 15:56 |
| → sh1mmer joined | 15:57 |
| ← steffkes left | 15:57 |
| → kpreid joined | 15:59 |
| → rubydiamond joined | 15:59 |
|
level09
| anyway , is it safe to run git rm --cached . | 15:59 |
| → dsdeiz joined | 16:00 |
| ← dsdeiz left | 16:00 |
| → coderdad joined | 16:00 |
| → hobodave joined | 16:01 |
|
shruggar
| "safe" is a loaded term. There are situations where it can lose data, but you are most likely not in that situation | 16:01 |
| ← barismetin left | 16:01 |
|
shruggar
| for example, if you git-add'ed a file, didn't commit, then removed the physical copy of it, git rm --cached would remove the only remaining trace of the file. Other than that, you're safe | 16:02 |
| → stringo0 joined | 16:02 |
|
shruggar
| though even then, git-fsck could find it, just not in a friendly manner | 16:02 |
| → bewst1 joined | 16:02 |
|
shruggar
| most git commands are safe | 16:03 |
| ← coderdad left | 16:03 |
| ← xiong left | 16:03 |
| → coderdad joined | 16:03 |
|
bewst1
| Is there a tool out there that will represent file moves in a git repo as moves? I'm interested in reconstructing the actual logical changes made in a commit. | 16:03 |
| ← hukl left | 16:04 |
|
Ilari_antrcomp
| bewst1: diff with request to track moves&copies? | 16:04 |
|
bewst1
| yep | 16:04 |
|
| do you mean "git diff" already does this? | 16:04 |
| ← level09 left | 16:05 |
|
Ilari_antrcomp
| bewst1: -C -C -M ... | 16:05 |
|
bewst1
| two -C's? | 16:05 |
|
Ilari_antrcomp
| bewst1: Yes... | 16:06 |
| ← fmardini left | 16:06 |
|
bewst1
| thank you! | 16:07 |
| → patmaddox joined | 16:08 |
| ← coderdad left | 16:08 |
| → kenneth_reitz joined | 16:09 |
| → azol joined | 16:09 |
| ← chrislerum left | 16:09 |
| ← nevyn^ left | 16:09 |
|
hobodave
| hey guys | 16:14 |
|
| how can I "inspect" a blob given it's hash? | 16:15 |
| → Khisanth joined | 16:15 |
| → valberg joined | 16:15 |
|
valberg
| hi | 16:15 |
|
hobodave
| hi valberg | 16:15 |
| → warthog9 joined | 16:15 |
| ← keyvan left | 16:16 |
| ← GarethAdams|Work left | 16:16 |
| ← Pupeno left | 16:16 |
|
valberg
| is it possible to point git.domain.com to a folder containing git repos, so it's possible to do like this: git clone ssh://user@git.domain.com/project ? | 16:16 |
| → keyvan joined | 16:16 |
| ← trivol left | 16:16 |
|
hobodave
| yes | 16:17 |
|
| that's how most git repos are setup | 16:17 |
|
| I suggest gitosis | 16:17 |
|
cehteh
| mhm | 16:17 |
|
valberg
| k | 16:18 |
|
Nugget_
| I don't think that's accurate. | 16:18 |
|
| if you're using ssh as the transport (with unique logins for users) then you can't remap paths | 16:19 |
| → ProperN[out] joined | 16:19 |
| ← ProperN[out] left | 16:19 |
| → ProperN[out] joined | 16:19 |
|
Nugget_
| gitosis allows that because you can remap the paths on account of it using a single user account on the repo for all user access | 16:19 |
|
| but with just native git, it's just using the user's individual environment and paths are relative/absolute on that basis | 16:20 |
|
valberg
| Nugget_: okay - thnx | 16:20 |
| ← binjured left | 16:20 |
|
hobodave
| Nugget_: it's still just a directory | 16:20 |
|
Nugget_
| git-daemon supports remapping, but I don't think ssh:// git paths invoke it in that manner | 16:20 |
|
| hobodave: define "it's" | 16:21 |
|
valberg
| my thing is, that i have my git/ folder in /var/git/ | 16:21 |
|
hobodave
| ssh://user@git.domain.com/project doesn't need remapping, it references HOME/project for that user | 16:21 |
|
Nugget_
| hobodave: right, that's precisely the problem | 16:21 |
|
hobodave
| how so? | 16:21 |
|
Nugget_
| are you suggesting creating symlinks for all users in their home directories for each git repo that's on the host? | 16:21 |
|
hobodave
| no, why would I do that? | 16:21 |
|
Nugget_
| so multiple users can share a common repo | 16:22 |
| ← ProperNoun left | 16:22 |
| ProperN[out] → ProperNoun | 16:22 |
|
Nugget_
| which is, I presume, what's being discussed | 16:22 |
|
hobodave
| that was never mentioned | 16:22 |
|
valberg
| and i want git.domain.com to point to /var/git/ so i can have all my projects in /var/git/ and clone them with git clone git.domain.com/projectname | 16:22 |
|
hobodave
| I didn't make any assumptions based on his question | 16:22 |
|
Nugget_
| then why did you suggest gitosis? | 16:22 |
|
hobodave
| for ease of maintenance | 16:22 |
| → coderdad joined | 16:22 |
|
Nugget_
| what maintenance do you envision for a single user? | 16:23 |
| → chrislerum joined | 16:23 |
|
hobodave
| I'm not arguing with you about this. I answered his question as asked. | 16:23 |
|
valberg
| just to make it clear, i want many users to be able to access many repos easily | 16:24 |
|
hobodave
| then I suggest using gitosis valberg | 16:24 |
| IslandUsurper → IslandUsurperAFK | 16:24 |
|
valberg
| thnx | 16:24 |
| → rado1 joined | 16:24 |
| → flazz_ joined | 16:25 |
| ← flazz left | 16:27 |
|
Nugget_
| I don't use either, but my understanding is that gitosis is quasi-abandonware and that gitolite is the preferrred solution these days | 16:27 |
|
hobodave
| I wasn't aware of that | 16:27 |
|
| gitosis "just works" for me | 16:27 |
| ← multigrain left | 16:27 |
| ← mbroeker left | 16:27 |
|
Nugget_
| it's been discussed in here, but that's the extent of my understanding | 16:27 |
|
sitaram
| hobodave: gitosis works fine, and if you're already using it and the feature set is enough there's no need to change | 16:28 |
|
hobodave
| cool sitaram, that's what I assumed | 16:28 |
| ← Khisanth left | 16:29 |
|
hobodave
| considering gitosis is 99% SSH, it'd be hard for it to break :) | 16:29 |
|
sitaram
| valberg: if you haven't alread installed gitosis, I suggest you look at gitolite. Gitosis hasn't been updated in about 2 years... (which as I said, doesn't matter if you're already using it and are happy) | 16:29 |
| → multigrain joined | 16:29 |
|
sitaram
| hobodave: true. However, I wrote gitolite mainly because I wanted per-branch controls | 16:29 |
|
valberg
| sitaram: okay cool - then i'll check on gitolite | 16:30 |
|
| :) | 16:30 |
|
hobodave
| yea I just saw your name in the repo | 16:30 |
|
| interesting | 16:30 |
|
sitaram
| oh yeah; my usual disclaimer: I'm the author so I'm biased ;-) | 16:30 |
|
hobodave
| well at least you didn't blindly bash gitosis :) | 16:30 |
|
sitaram
| hobodave: nothing to bash; it works as advertised. Just that it was not enough for me | 16:31 |
|
| hobodave: I used to support gitosis on this channel for months before I wrote gitolite. I still have a gitosis-troubleshooting page somewhere | 16:31 |
|
| http://sitaramc.github.com/the-list-and-irc/gitosis-troubleshooting.html | 16:32 |
|
hobodave
| bookmarked, thanks :) | 16:32 |
|
| If I ever need to setup a new git server I'll probably end up looking at gitolite | 16:32 |
|
| is the setup/configuration significantly different from gitosis? | 16:32 |
|
| did you base it off gitosis? | 16:33 |
| ← shruggar left | 16:33 |
| → rorist joined | 16:34 |
|
Tass_
| how to commit something to a new branch? | 16:35 |
| → slonopotamus joined | 16:35 |
| ← kenneth_reitz left | 16:35 |
|
hobodave
| Tass_: git co -b new_branch_name , then git commit like usual | 16:35 |
|
| sorry git checkout | 16:36 |
|
| co is an alias I use | 16:36 |
|
Ilari_antrcomp
| hobodave: Syntax is different. But the basic principles are mostly the same. | 16:36 |
| → masak joined | 16:36 |
| ← simplechat left | 16:37 |
| ← whaley left | 16:37 |
|
masak
| when I do `git tag -a -m"some commit message" $TAGNAME`, where does the commit message end up, and how can I query for it later? | 16:37 |
| ← rorist left | 16:37 |
| ← gergap left | 16:38 |
|
Ilari_antrcomp
| masak: It winds up as tag message. | 16:38 |
|
slonopotamus
| masak: it isn't a commit message because no commit is created. tag object is, however | 16:38 |
| ← rtl left | 16:38 |
| ← olivier__ left | 16:38 |
|
hobodave
| masak: git show $TAGNAME | 16:39 |
|
masak
| ah, so somewhere there's a tag object with that message. | 16:39 |
|
sitaram
| hobodave: the config language is *quite* different -- it has to be, I have a lot more features | 16:39 |
|
masak
| hobodave: thanks. | 16:39 |
|
valberg
| sitaram: just to clarify, will i be able to poing git.domain.com to /var/git/ directory? | 16:39 |
| ← tvw left | 16:39 |
|
sitaram
| valberg: (assuming "point") do you mean you want a URL like [email@hidden.address] to go to /var/git/reponame.git? | 16:40 |
|
valberg
| sitaram: yeah | 16:40 |
| → rorist joined | 16:41 |
|
sitaram
| valberg: sure. By default it points to ~/repositories (for whatever user you installed it to), but you can -- at a certain point in the install -- edit a file called ~/.gitolite.rc and point a variable called "$REPO_BASE" wherever you want | 16:41 |
|
valberg
| sitaram: awesome! | 16:41 |
|
| sitaram: then i'll definately check it out :D thnx for the heads up! | 16:42 |
| → dreiss joined | 16:42 |
| → binjured joined | 16:42 |
|
sitaram
| valberg: you can even change it later, as long as you change it *and* move the repositories from ~/repositories to /var/git in one shot, with no one accessing it in between | 16:42 |
| ← thedeeno left | 16:42 |
|
sitaram
| valberg: meaning as long as they are consistent it'll all work fine | 16:43 |
|
valberg
| cool cool | 16:43 |
| ← eno left | 16:43 |
|
sitaram
| they ==> the value of $REPO_BASE in ~/.gitolite.rc and the actual location of the repos | 16:43 |
| → WebDragon|laptop joined | 16:43 |
| ← sh1mmer left | 16:44 |
| → eno joined | 16:44 |
| ← slonopotamus left | 16:45 |
| ← ezyang left | 16:46 |
| ← WebDragon left | 16:47 |
| → jony joined | 16:48 |
| ← masak left | 16:49 |
| ← bewst1 left | 16:51 |
| → plediii joined | 16:51 |
| ← aziz left | 16:52 |
| → aziz joined | 16:52 |
| → pantsman- joined | 16:52 |
| → carutsu joined | 16:53 |
| ← KB1JWQ left | 16:53 |
| → shruggar joined | 16:53 |
| → EvanR-work joined | 16:54 |
|
EvanR-work
| were having a weird problem, the three of us have synchronized repos, but one of us has an anomaly in his repo | 16:54 |
| ← pantsman- left | 16:54 |
|
EvanR-work
| git fsck reveals, for him, a missing blob with hash equal to a submodule | 16:54 |
| → pantsman- joined | 16:55 |
| ← tstclair left | 16:55 |
| ← luist left | 16:55 |
|
EvanR-work
| we do not have this reference in our working repo | 16:55 |
|
| when he commits, we usually cant fetch from him | 16:55 |
| ← pantsman- left | 16:55 |
| → pantsman joined | 16:56 |
|
EvanR-work
| git gc fails for him in any case | 16:56 |
|
| i dont see how this could have occured in his repo and not ours | 16:57 |
| → luist joined | 16:58 |
| ← steveire_ left | 16:59 |
| ← stringo0 left | 17:00 |
| ← dpino left | 17:01 |
| → sh1mmer joined | 17:01 |
| → RBF joined | 17:01 |
| → aresnick joined | 17:01 |
| ← galderz left | 17:02 |
| → stringoO joined | 17:02 |
| ← girishr left | 17:03 |
| ← RBF left | 17:03 |
| ← multigrain left | 17:04 |
| → RBF joined | 17:04 |
|
fr0sty
| EvanR-work: define "syncrhonized | 17:04 |
| ← RBF left | 17:04 |
|
fr0sty
| also, is this submodule an abberation in your set of repos ? | 17:05 |
| → RBF joined | 17:05 |
| → gmcinnes joined | 17:05 |
|
fr0sty
| i.e. do you all have the offencint submodule? | 17:05 |
| ← RBF left | 17:06 |
| → RBF joined | 17:06 |
| ← RBF left | 17:06 |
|
gmcinnes
| oh noes! I deleted a remote branch using "push origin :foo" How can I resurrect it? | 17:06 |
| → ph^_ joined | 17:07 |
| ← chrislerum left | 17:07 |
| → thedeeno joined | 17:07 |
|
fr0sty
| just re-push it from your repository (if you have it). | 17:08 |
| → eighty4 joined | 17:09 |
| ← malumalu left | 17:09 |
|
fr0sty
| gmcinnes: what were you trying to do? | 17:09 |
|
gmcinnes
| fr0sty: I'm cleaning up some legacy stuff from the repo, and I deleted a branch I want to keep. | 17:10 |
| → malumalu joined | 17:10 |
| ← vegeste left | 17:10 |
|
valberg
| sitaram: is there a .deb package of gitolite for ubuntu 9.10 ? | 17:11 |
|
EvanR-work
| fr0sty: yes we do | 17:11 |
|
fr0sty
| gmcinnes: do you still have the branch/commit locally? | 17:11 |
|
gmcinnes
| fr0sty: Unfotunately, its legacy enough I may not have the branch locally, and no-one else might have either. | 17:11 |
|
sitaram
| valberg: ask Rhonda, but there is one for debian something and since the requirements are pretty simple it ought to work on any similar distro | 17:11 |
|
| Rhonda: ping and ^^ | 17:12 |
|
gmcinnes
| fr0sty: I mean I must have the objects, I guess, but I don't know the commit it pointed to. | 17:12 |
|
fr0sty
| gmcinnes: does anyone else have a clone of the remote repository? They will still have branch 'foo' | 17:12 |
| → enherit joined | 17:12 |
|
gmcinnes
| fr0sty: My repo is freshly cloned. I should have the objects locally, I guess. | 17:12 |
|
| fr0sty: but how do I find out what it used to point to? | 17:13 |
|
fr0sty
| EvanR-work: is it possible he committed locally to the submodule and forgot to push it? | 17:13 |
|
| refs/remotes/<name>/foo should still exist locally. | 17:14 |
|
| if so, 'git push origin foo' will put it back. | 17:14 |
|
| Rhonda peeks at valberg and sitaram | 17:14 |
|
valberg
| :) | 17:15 |
|
Rhonda
| valberg: http://packages.debian.org/unstable/gitolite | 17:15 |
|
valberg
| cool | 17:15 |
|
Rhonda
| And 9.10 is old, why don't you use 10.04 which is LTS again anyway? ;) | 17:15 |
|
| … and neither has gitolite directly, sorry to had been too late for that. | 17:15 |
| → rtl joined | 17:15 |
|
doener
| fr0sty: the remote tracking branch should have been delete when he did the push, and "foo" is only a shortname for refs/heads/foo not for refs/remotes/<name>/foo | 17:16 |
|
Rhonda
| I am thinking about doing lucid-backports for gitolite at least, but karmic … | 17:16 |
| ← shruggar left | 17:16 |
|
gmcinnes
| doener: yes. It's true. The tracking branch is gone. | 17:16 |
|
valberg
| Rhonda: it's a longer story - but the short version is: it wasn't possible to install 10.04 as a virtual server in xen when i set it up back in the days | 17:17 |
|
doener
| gmcinnes: did you have that branch checked out locally? | 17:17 |
| → hagebake joined | 17:17 |
|
gmcinnes
| doener: unfortunately not. And its old enough I doubt anyone else did. | 17:17 |
| → ProperN[out] joined | 17:18 |
| → doki_pen joined | 17:18 |
| ← hagabaka left | 17:18 |
| ← doki_pen left | 17:18 |
| ← ProperNoun left | 17:18 |
| → doki_pen joined | 17:19 |
| ← ProperN[out] left | 17:19 |
| → ProperN[out] joined | 17:19 |
| ← jony left | 17:19 |
|
doener
| gmcinnes: gitk $(git fsck --unreachable --full --no-reflogs | grep 'unreachable commit' | cut -d' ' -f3) | 17:19 |
|
fr0sty
| doener: anyone with a clone of the old repo can still 'git checkout -b saveme origin/foo' | 17:19 |
| ProperN[out] → ProperNoun | 17:19 |
| → frakturfreak_ joined | 17:20 |
|
fr0sty
| assuming they haven't run 'git fetch' since the recent unpleasantness. | 17:20 |
| → Khisanth joined | 17:20 |
|
doener
| fetch is fine, fetch --prune is not | 17:20 |
|
fr0sty
| even better... | 17:21 |
| → gbacon joined | 17:21 |
|
Rhonda
| valberg: But that shouldn't hinder you to upgrade, shoudl it? :) | 17:21 |
|
| valberg: Anyway, have fun and bug me if something bugs you in the package. | 17:21 |
| → trochala joined | 17:22 |
| ← trochala left | 17:23 |
| → trochala joined | 17:23 |
|
doener
| fr0sty: and of course, if someone has an up-to-date remote tracking branch for "foo", that someone can do "git push origin refs/remotes/origin/foo:refs/heads/foo" to restore the branch head | 17:23 |
| ← frakturfreak left | 17:24 |
|
The_Ball
| when viewing individual commits in gitk the patches are very small, however when I do "git diff sha1 sha2" then the diff is huge. I suppose it's comparing to the current tree, how can I see the changed introduced by a single commit? | 17:24 |
|
doener
| I just said that "git push origin foo" won't do if there's only a remote tracking branch refs/remotes/origin/foo, but no refs/heads/foo | 17:24 |
| → pavlix joined | 17:25 |
|
fr0sty
| The_Ball: 'git show <sha1>' | 17:26 |
|
The_Ball
| fr0sty, doh! thanks | 17:26 |
| ← tatsuya left | 17:26 |
|
fr0sty
| you can also: 'git log -p <sha1>..<sha2>' for extra fun (show every commit in between 1 and 2) | 17:27 |
| → khmarbaise joined | 17:28 |
| → apsysoev joined | 17:30 |
| ← bluenovember left | 17:31 |
| → peritus- joined | 17:33 |
|
peritus-
| hey. can someone tell me what's undeterministic about the following script: http://dpaste.de/GCrV/ ? | 17:35 |
|
gmcinnes
| doener: I found someone else who could check out the branch locally. I got them to give me the sha for the last commit on that branch, but when I tried to create a branch based on that locally, there's nothing in it. What am I doing wrong? | 17:35 |
| → ProperN[out] joined | 17:36 |
|
peritus-
| .. that is, i want to create the same repository twice from scratch (w/ all the same sha1's, etc.) | 17:36 |
| ← ProperN[out] left | 17:36 |
| → ProperN[out] joined | 17:36 |
| ← ProperNoun left | 17:36 |
| ← curtana left | 17:37 |
| ProperN[out] → ProperNoun | 17:37 |
| IslandUsurperAFK → IslandUsurper | 17:38 |
| → brett_h joined | 17:38 |
| → dizzo joined | 17:38 |
| → gnufied joined | 17:39 |
| ← trochala left | 17:39 |
|
Ilari_antrcomp
| peritus-: Didn't read it, but I guess committer/author timestamps? | 17:40 |
| → jmcantrell joined | 17:40 |
| → trochala joined | 17:40 |
| ← trochala left | 17:40 |
| → trochala joined | 17:40 |
|
peritus-
| Ilari_antrcomp: I do git commit -date=2005-04-07T22:13:13 .. that should do ? | 17:41 |
| ← coppro left | 17:41 |
| → tvw joined | 17:41 |
| ← rubydiamond left | 17:41 |
| ← plediii left | 17:41 |
|
peritus-
| Ilari_antrcomp: make that two dashes | 17:41 |
|
rkreis
| did you compare files and maybe some kind of dump? | 17:42 |
| → coppro joined | 17:42 |
|
valberg
| sitaram: does the git user need to have a home directory? | 17:42 |
|
rkreis
| like git whatchanged -p or so? | 17:42 |
|
Ilari_antrcomp
| valberg: Yes. | 17:42 |
|
sitaram
| valberg: yes; I suppose so... try without and see; I haven't tested that though | 17:42 |
|
valberg
| i'll try :) | 17:42 |
| ← kpreid left | 17:43 |
| → kpreid_ joined | 17:43 |
| ← harv left | 17:44 |
|
valberg
| sitaram: i was able to run the gl-setup command - but there is no autocompletion , so it's quite annoying :) | 17:44 |
|
sitaram
| no auto-completion in your $SHELL? | 17:45 |
| ← kokx left | 17:47 |
| → kokx joined | 17:47 |
|
fr0sty
| gmcinnes: have them do the 'git push...' for you if they have the commit. | 17:48 |
|
valberg
| sitaram: well, i didn't log into the git user with the -s parameter | 17:48 |
|
| but i just realized that i don't have to have my repo i /var/git/ , so it's just fine to have the default | 17:49 |
| → k3yvn joined | 17:49 |
|
sitaram
| valberg: and as I said you can always move it later, as long as you fix that variable at the same time | 17:50 |
| ← keyvan left | 17:50 |
|
valberg
| sitaram: true true | 17:51 |
| → rubydiamond joined | 17:53 |
|
valberg
| sitaram: btw, i've changed the port of my sshd, how do i clone from my repo then ? | 17:54 |
| ← jds left | 17:54 |
| → mabrand joined | 17:54 |
| → kar8nga joined | 17:55 |
|
sitaram
| valberg: did you install using a .DEB? | 17:55 |
|
valberg
| sitaram: yep | 17:55 |
| ← d0k left | 17:55 |
|
sitaram
| valberg: ok, man git-clone has a bunch of syntaxes in the "GIT URLS" section; you'd probably use ssh://git@host:port/reponame | 17:56 |
|
Gitbot
| valberg: the git-clone manpage can be found at http://git.or.cz/man/git-clone | 17:56 |
| → HG` joined | 17:57 |
|
valberg
| sitaram: yeah that's totally right | 17:57 |
| → ChUrP joined | 17:57 |
| ← hohoho left | 17:58 |
| → Jaxan joined | 17:59 |
|
valberg
| sitaram: why is it that i have to clone the gitolite-admin to my machine ? | 17:59 |
| → zehrique joined | 17:59 |
| ← h32Lg left | 18:00 |
| → sixteneighty joined | 18:00 |
| → plediii joined | 18:00 |
| ← alus left | 18:01 |
| ← plediii left | 18:01 |
|
sitaram
| valberg: because all administration is done by making changes to the clone and pushing those changes :) | 18:01 |
|
valberg
| awesome | 18:01 |
| → tstclair joined | 18:01 |
|
sitaram
| valberg: might sound weird but it's very cool because (1) you get auditability for all config changes (2) you can do it from your client without having to log on to the server | 18:01 |
|
| valberg: this is also what gitosis did, so credit goes to Tv for that idea | 18:02 |
|
valberg
| sitaram: so if i want to allow another user on the server to configure it, i'd just edit gitolite-admin/conf/gitolite.conf and the push ? | 18:02 |
|
| s/push/commit and push | 18:02 |
|
Ilari_antrcomp
| valberg: Yes. | 18:03 |
|
sitaram
| s/commit/add, commit/ :) | 18:03 |
|
valberg
| heh heh fair enough :) got me there | 18:03 |
|
sitaram
| you can even allow someone else to share the admin workload by adding them into the RW+ list for the special "gitolite-admin" repo; no need to give him shell access to the server this way | 18:04 |
| ← jmcantrell left | 18:04 |
| → jmcantrell joined | 18:04 |
| → thiago_akademy joined | 18:05 |
| ← RORgasm left | 18:05 |
| → RORgasm joined | 18:06 |
| → girasquid joined | 18:06 |
|
Ilari_antrcomp
| valberg: And gitolite even tries to prevent users with full push access to gitolite-admin from gaining shell access (assuming they don't have it already). | 18:06 |
|
girasquid
| I have a git repo that's about 90MB, with most of that being in the .git/objects/pack directory. How can I trim that down? | 18:07 |
| ← RORgasm left | 18:08 |
|
Ilari_antrcomp
| girasquid: 'git gc' (but that might not do much)? | 18:08 |
| ← beeradb left | 18:09 |
| → RORgasm joined | 18:09 |
|
girasquid
| Ilari_antrcomp: holy crap, that bumped the size down to like 25MB. Thanks! | 18:09 |
| → WebDragon|away joined | 18:10 |
| WebDragon|away → WebDragon | 18:11 |
| → bremner joined | 18:12 |
| ← poseid left | 18:13 |
| → programble joined | 18:14 |
| ← WebDragon|laptop left | 18:14 |
| flazz_ → flazz | 18:15 |
| elliottcable → coolSTER | 18:15 |
| ← tcurdt left | 18:17 |
|
Circuitsoft
| Hello. git-svn fetch is giving me a checksum mismatch message. | 18:18 |
| ← jailbox left | 18:19 |
|
Circuitsoft
| Do I have a broken object I need to remove? | 18:19 |
|
| $ nice git svn fetch | 18:19 |
|
| Checksum mismatch: some/file/from/svn f83cfec96f06b3f3a8c10617fd449d009efbe1e8 | 18:19 |
|
| expected: cee883ec7e1ac0a5982fe7e5bba46b01 | 18:19 |
|
| got: 3577ded5f7e20da58c97f41d1ac5cc81 | 18:19 |
| ← girasquid left | 18:19 |
| → zenazn joined | 18:19 |
| ← zehrique left | 18:20 |
|
rkreis
| Circuitsoft, what about git fsck? | 18:21 |
| coolSTER → elliottcable | 18:22 |
|
Circuitsoft
| Lists a bunch of dangling blobs. Nothing else. | 18:22 |
| → poseid joined | 18:23 |
| → kipras joined | 18:23 |
|
Circuitsoft
| 101 to be exact. | 18:23 |
|
rkreis
| "It tests SHA1 and general object sanity" weird | 18:23 |
| ← mw left | 18:23 |
|
Circuitsoft
| Trying git fsck --full | 18:25 |
| → Titosemi_ joined | 18:27 |
| ← tvw left | 18:28 |
| ← jmcantrell left | 18:28 |
|
Circuitsoft
| Now /that/ is taking a while. | 18:28 |
| → andrewl joined | 18:29 |
|
Circuitsoft
| Hmm... A line from top: | 18:29 |
|
| 1737 aaustin 35 10 3054m 2.9g 2.9g R 100.4 38.4 2:58.57 git | 18:29 |
| ← Titosemi left | 18:29 |
| Titosemi_ → Titosemi | 18:29 |
|
Circuitsoft
| 2.9g resident ram | 18:29 |
| ← azol left | 18:30 |
|
peritus-
| can someone tell me what's undeterministic about the following script: http://dpaste.de/GCrV/ ? | 18:31 |
|
| I want to create the same repository twice from scratch (w/ all the same sha1's, etc.) | 18:32 |
| ← ereslibre_laptop left | 18:34 |
|
FauxFaux
| The commit or author time. | 18:35 |
| → ods15 joined | 18:35 |
| → ereslibre joined | 18:37 |
|
ods15
| Hi. I am still in a phase of setting up my git repository correctly, and i want to move some work i've done on one git repo to a completely different git repo. how can i do this most sanely? pretty much what i had in mind was format-patch for the ~15 commits and then git-apply. nothing compilcated in these commits, only new files | 18:37 |
|
| the "completely different" repo has different history and log, but the HEAD looks the same code-wise | 18:37 |
| → jailbox joined | 18:38 |
|
ods15
| (the first git repo was a result of a failed experiment) | 18:38 |
|
drizzd
| ods15: git-format-patch applies with git-am, not git-apply | 18:38 |
| → masterkorp joined | 18:38 |
|
Circuitsoft
| My fsck --full has finished, and now I only got 55 dangling blobs. | 18:38 |
| → shruggar joined | 18:38 |
|
ods15
| drizzd, ok, what is the local operation i should? git format-patch, take all the files, put in a dir, then git am on that dir? | 18:39 |
| ← trochala left | 18:39 |
| → ive joined | 18:39 |
|
FauxFaux
| Circuitsoft: My wild guess would be that your repo is fine but git svn is unhappy as you rebased or merged or ... it's tag. | 18:39 |
|
drizzd
| ods15: it would be even easier to add your repo as a remote and use rebase --onto | 18:39 |
|
| ods15: let's say you have two repos A and B with completely different histories | 18:40 |
| → ProperN[out] joined | 18:40 |
| ← ProperN[out] left | 18:40 |
| → ProperN[out] joined | 18:40 |
|
drizzd
| but they are the same at commits A-master and B-master, respectively | 18:40 |
| ← ProperNoun left | 18:40 |
|
Circuitsoft
| FauxFaux: The odd thing is, that It's been svn-fetching for 35000 or so revs, and it just stopped at this one. | 18:40 |
| ← mastro left | 18:41 |
|
drizzd
| then in repo B you have some changes B-topic, which you want to apply onto A-master | 18:41 |
|
| does that correctly represent your situation? | 18:41 |
| ← alezandro left | 18:41 |
| ProperN[out] → ProperNoun | 18:41 |
| ← sandsmark left | 18:41 |
|
ods15
| drizzd, yes, exact | 18:41 |
|
| actually i have some branches in B, and i want to do this in several steps, but each step looks like this | 18:42 |
| → Fullmoon joined | 18:42 |
|
drizzd
| ods15: so all you have to do is cd to repo A, then git remote add -f B path/to/b; git checkout -t B/topic; git rebase --onto master B/master | 18:42 |
|
| that will take the range of commits B/master..B/topic and apply them on top of master | 18:43 |
|
ods15
| ok, i'll try that.. be back in a bit | 18:43 |
|
drizzd
| make sure master and B/master are in fact the same or at least similar, otherwise you will get lots of conflicts | 18:43 |
|
ods15
| i was about to same, they are similar, not identical | 18:44 |
|
| i know there are no conflicts | 18:44 |
|
| (umm, i hope :) | 18:44 |
| ← ive left | 18:44 |
|
drizzd
| well, if you do get conflicts, rebase will let you resolve them, but rebasing generally involves more work than merging, if there are conflicts | 18:45 |
|
ods15
| ok | 18:45 |
| ← poseid left | 18:46 |
| → Chillance joined | 18:46 |
|
ods15
| can you explain -t? i don't understand it... | 18:47 |
|
fr0sty
| peritus-: --date only changes the author date, not the commiter date. look into GIT_COMMITER_DATE and GIT_AUTHOR_DATE | 18:48 |
| ← marc_kdab left | 18:49 |
|
valberg
| sitaram: thnx a lot for the help :) it works as a charm! :D | 18:49 |
| → marc_kdab joined | 18:49 |
| → Jochen_Hayek joined | 18:49 |
| → mtkd joined | 18:49 |
| → heptadecagram joined | 18:50 |
| ← j0shua left | 18:54 |
| → bcardarella joined | 18:54 |
| → justin-george joined | 18:56 |
| → oriba joined | 18:57 |
| ← oriba left | 18:57 |
| → Nemurenai joined | 18:58 |
| → rindolf joined | 18:59 |
|
rindolf
| Hi all. I have a "remotes/origin/convert-user-auth-to-catalyst" and I'd like to map it to a local "convert-user-auth-to-catalyst" branch. How can I do it? | 18:59 |
| ← ereslibre left | 19:00 |
| → bx2 joined | 19:00 |
|
rindolf
| I still don't have the local branch. | 19:00 |
| ← HG` left | 19:00 |
| ← bx2 left | 19:02 |
| ← project2501b left | 19:02 |
| → chrislerum joined | 19:02 |
| → p3rg2z joined | 19:02 |
|
drizzd
| ods15: oh, that's short for git checkout -b topic B/topic | 19:04 |
| → urkud__ joined | 19:05 |
| hagebake → hagabaka | 19:05 |
| ← rox` left | 19:06 |
| ← ntoll left | 19:06 |
|
ods15
| drizzd, actually, it didn't work forme for some reason, i had to write what you just said explicity | 19:07 |
|
| git version maybe? 1.6.0.6 | 19:07 |
| → rox` joined | 19:07 |
|
ods15
| anyway, the rebase worked, and i learned a little bit more about rebase! (i thought i already had it figured out yesterday :) so, great, thanks! | 19:07 |
|
drizzd
| ods15: possibly, but the feature is not new | 19:08 |
| → macek joined | 19:08 |
| ← iatrou left | 19:09 |
| → centr0 joined | 19:09 |
|
ods15
| ok, now that you showed me this "remote", i think i realize i did something wrong here... i had a "pristine" git repo, and i decided to leave that to the side, and my intention later on is that it will become a central repo.. for what i did just now, i used "cp -r" to get my "own" repo to work on, where i did this merge | 19:10 |
|
| i should have created a new repo, and used git remote? or git pull? (never used "git pull" before) | 19:10 |
| ← hipe__ left | 19:12 |
| → hipe joined | 19:12 |
| ← comawhite left | 19:13 |
| → poseid joined | 19:15 |
| ← hipe left | 19:15 |
|
LiamH
| Is there an accepted way of using git as a client for darcs repositories, analogous to git svn? Everything I can find in Google looks at least a couple years old. | 19:15 |
| → _numbers joined | 19:16 |
|
_numbers
| i am so frustrated with git | 19:16 |
| ← ChUrP left | 19:17 |
| → project2501b joined | 19:17 |
|
_numbers
| two major problems: 1. large git repos become slow and cumbersome to share, 2. history cannot be manipulated to split repo into volumes or cleanup old commits which really shouldn't be in there. | 19:18 |
|
| very difficult to work with in those two respects | 19:18 |
| → jf_ joined | 19:18 |
| → comawhite joined | 19:18 |
|
jf_
| hi, i've been trying for sometime now to mergeback changes to a svn repository and i would like to keep the right author within svn when i'll do the "git svn dcommit" .. is there a way to tell git that? | 19:19 |
|
peritus-
| ok, i updated http://dpaste.de/uz0m/ .. still doesn't produce the same repo deterministically | 19:19 |
|
| _numbers: can be adressed with git-split and/or http://progit.org/2010/03/17/replace.html | 19:20 |
| → spearce joined | 19:20 |
|
fr0sty
| try spelling AUTHOR_DATE correctly? | 19:23 |
|
| (GIT_AUTHOR_DATE, that is) | 19:23 |
| → ChUrP joined | 19:23 |
| ← urkud__ left | 19:24 |
| → gmarselis__ joined | 19:26 |
| ← doener left | 19:27 |
| ← cmyk left | 19:28 |
| ← project2501b left | 19:29 |
|
jf_
| would it be possible to fake the username provided to svn with the author of the patch on git's branch? | 19:29 |
|
peritus-
| fr0sty: works. thanks for you patience | 19:29 |
| ← RORgasm left | 19:29 |
| → RORgasm joined | 19:30 |
| → urkud__ joined | 19:31 |
| ← f00li5h left | 19:31 |
| → tobiassjosten joined | 19:31 |
| → hipe joined | 19:31 |
| ← poseid left | 19:31 |
| ← eletuchy_ left | 19:32 |
| ← eighty4 left | 19:32 |
| ← MattDiPasquale left | 19:34 |
| ← hauserserser_ left | 19:34 |
| → Bass10 joined | 19:36 |
| → rubyruy joined | 19:37 |
| → poseid joined | 19:38 |
| → picardo joined | 19:38 |
| ← Bass10 left | 19:38 |
|
picardo
| hi | 19:38 |
|
| how would i overwrite a version in the remote server? | 19:38 |
| → hauserserser_ joined | 19:38 |
|
cbreak
| by force pushing | 19:38 |
|
picardo
| i made quite a few changes and now i am getting the non-fast forward error | 19:38 |
|
cbreak
| prepare to annoy everyone else who pulled though | 19:39 |
|
wereHamster
| picardo: faq non-ff | 19:39 |
|
Gitbot
| picardo: Your push would lose changes on the remote. See https://git.wiki.kernel.org/index.php/GitFaq#non-ff | 19:39 |
|
picardo
| it's just me who uses it | 19:39 |
| → Bass10 joined | 19:39 |
|
picardo
| thanks | 19:39 |
| ← ods15 left | 19:39 |
| ← felipec left | 19:40 |
| ← rtl left | 19:41 |
| ← redondos left | 19:42 |
| → johnw joined | 19:42 |
| → redondos joined | 19:42 |
| ← rubydiamond left | 19:43 |
| ← tstclair left | 19:43 |
| ← jzacsh left | 19:44 |
| → tstclair joined | 19:44 |
| → webus joined | 19:44 |
| ← peritus- left | 19:44 |
| ← poseid left | 19:45 |
| → jzacsh joined | 19:46 |
| → jrmuizel joined | 19:47 |
| ← jrmuizel left | 19:47 |
| → poseid joined | 19:49 |
| → alezandro joined | 19:49 |
| ← disappearedng_ left | 19:50 |
| → peritus- joined | 19:50 |
| → krawek joined | 19:50 |
| → d0k joined | 19:50 |
| ← ruskie left | 19:51 |
| → priidu joined | 19:51 |
| → Tureba joined | 19:51 |
| ← k3yvn left | 19:53 |
| → ruskie joined | 19:53 |
| ← poseid left | 19:53 |
| → disappearedng_ joined | 19:54 |
| ← marc_kdab left | 19:55 |
| → marc_kdab joined | 19:57 |
| → khelll joined | 19:57 |
| → j0shua joined | 19:58 |
| ← _numbers left | 19:58 |
| ← redondos left | 19:59 |
| → redondos joined | 19:59 |
| → djustice joined | 20:02 |
| → anjen joined | 20:02 |
|
djustice
| kk. accidentally commitd a wrong .png file, eternal blob. -.- how do i erase it from the git history? | 20:02 |
|
cbreak
| for total history rewrite, consider git filter-branch or git rebase -i | 20:04 |
|
| but there's a price you have to pay | 20:04 |
|
| and the consequences for missuse can be severe | 20:05 |
| ← chrislerum left | 20:05 |
|
shruggar
| aka "but if other work is based on a commit which references the mistake, you'll need to inform whoever made that work" | 20:06 |
|
| people seem to be in a "git is dangerous" mood today | 20:06 |
|
cbreak
| I always am | 20:06 |
| → sgh joined | 20:06 |
|
cbreak
| git's dangerous because it's powerful | 20:06 |
| → ive joined | 20:07 |
| → froschi joined | 20:07 |
|
djustice
| hmm. i see. thx. | 20:07 |
| ← froschi left | 20:07 |
| ← cilly left | 20:07 |
|
rudi_s
| djustice: If you haven't pushed the commits your're editing with git rebase -i then it's fine, otherwise you have the problem mentioned above. | 20:08 |
|
shruggar
| git has a reflog and a fsck command, the only danger comes from not noticing a mistake within a months. For almost anything else, you're only in danger of annoyance | 20:08 |
| → shadowmaster joined | 20:08 |
|
shruggar
| however, giving the people the impression that git is dangerous, or easy to break, leads them to say "oh no I screwed up!" kill there repos, and re-clone. That cannot be recovered from. | 20:09 |
|
| *their repos | 20:09 |
|
| shruggar whips himself | 20:09 |
| → WebDragon|laptop joined | 20:09 |
| ← lhz left | 20:09 |
|
cbreak
| all hail the power of the reflog! | 20:11 |
|
johnw
| you can flog yourself with it, and then re-flog as necessary | 20:11 |
| ← gmcinnes left | 20:11 |
| ← posciak left | 20:11 |
| ← peritus- left | 20:11 |
|
shruggar
| thanks, johnw, now my stomach is inside-out from a groan. Well played. | 20:12 |
| → posciak joined | 20:12 |
|
vinse
| how do i reference the next commit? | 20:12 |
|
sgh
| shruggar: true tue ..... I accidential lost a branch a couple of weeks ago. I found out 5 days after the fact "git fsck --lost-found > somefile" at least gave me the data back. | 20:12 |
|
vinse
| im like 6 commits below head, and i want to checkout each one incrementally to find where a bug was introduced | 20:12 |
|
johnw
| vinse: use git bisect? | 20:13 |
|
shruggar
| vinse, sounds like you want bisect | 20:13 |
| ← WebDragon left | 20:13 |
| ← webus left | 20:13 |
|
vinse
| ok then, will check it out | 20:13 |
| ← rindolf left | 20:13 |
|
vinse
| " Find by binary search the change that introduced a bug" golly, that kinda does sound like what i was trying to do! | 20:14 |
| ← Yuffster left | 20:14 |
|
sgh
| Is it possible to setup git to always represent time in my local timezone ? | 20:14 |
| ← masterkorp left | 20:14 |
| → chrislerum joined | 20:15 |
| ← sixteneighty left | 20:15 |
|
shruggar
| sgh: git config --global log.date local | 20:16 |
|
| sgh, see man git-config for more | 20:16 |
|
Gitbot
| sgh: the git-config manpage can be found at http://git.or.cz/man/git-config | 20:16 |
| → MattDiPasquale joined | 20:17 |
| → Aaaarg_ joined | 20:19 |
|
str1ngs
| I'm having a problem with sparse checkouts if I echo foo/ > .git/info/sparse-checkout . I still end up seeing foo* in the tree. is there away to explicty add a path? | 20:19 |
|
sgh
| shruggar: thanks ... I did look, nut I missed log.date .. | 20:19 |
| → steveire_ joined | 20:20 |
| ← Aaaarg left | 20:20 |
| Aaaarg_ → Aaaarg | 20:20 |
| → whaley joined | 20:21 |
| → endpoint_david joined | 20:22 |
| → rtl joined | 20:23 |
|
endpoint_david
| is there currently a way to see the commit-id from a git-grep line; basically showing the output of `git blame` for lines matched by `git grep`? | 20:23 |
| ← centr0 left | 20:23 |
| → eighty4 joined | 20:24 |
|
endpoint_david
| not seeing it on the man page for `git grep`, but I've thought many times that would be a useful feature | 20:24 |
| → mw joined | 20:26 |
| ← mw left | 20:26 |
| → mw joined | 20:26 |
| ← rorist left | 20:27 |
| → tvw joined | 20:27 |
| → eletuchy joined | 20:28 |
| ← alester left | 20:29 |
| → alester joined | 20:30 |
|
Circuitsoft
| git grep -n ab | sed 's/^\([^:]*\):\([0-9]*\):.*/git blame \1 -L \2,\2/' | sh | 20:31 |
|
| Replace "ab" with what you're searching for | 20:31 |
| ← ph^ left | 20:32 |
|
endpoint_david
| Circuitsoft: nice, thanks | 20:32 |
| → project2501b joined | 20:33 |
| ← pragma_ left | 20:35 |
| ← gmarselis__ left | 20:37 |
|
vinse
| yes bisect was exactly what i needed, thanks | 20:38 |
|
| but out of curiosity, how can i check out the next (or previous for that matter) commit when i'm not at head? | 20:39 |
|
| or refer to them at all, not necessarily checkout | 20:39 |
|
| like HEAD^ , but instead of HEAD, somethign that means "where i am now" | 20:40 |
|
fr0sty
| vinse: git checkout <SHA1>^ | 20:40 |
|
cbreak
| you're always at HEAD | 20:40 |
|
endpoint_david
| vinse: HEAD does mean where you are now | 20:40 |
|
cbreak
| because HEAD is where you are | 20:40 |
|
fr0sty
| (but beware of merges, you might need <SHA1>^2 (or three...) | 20:41 |
|
vinse
| i thought HEAD meant "the most recent commit in the current branch" ? | 20:41 |
| → harv joined | 20:41 |
|
cbreak
| no | 20:41 |
|
vinse
| no? where the hell did i get. that's pretty specific to have made up :/ | 20:41 |
|
cbreak
| branch head != HEAD | 20:42 |
|
endpoint_david
| vinse: that's often the case (i.e., when you check out a branch explicitly) | 20:42 |
| → Nebukadneza joined | 20:42 |
|
endpoint_david
| but not always | 20:42 |
|
Nebukadneza
| heho | 20:42 |
|
jf_
| i'm still searching for a way to dcommit from git to svn to another username than mine, is this possible? | 20:42 |
|
endpoint_david
| you can have a detached HEAD, which just means that it points to a ref that's not named | 20:42 |
|
vinse
| so HEAD just means "currently checked out"? ok, good info | 20:42 |
| ← khelll left | 20:43 |
|
vinse
| ok so HEAD^x is x commits back, is there an analogous way to go x commits forward? | 20:43 |
| ← khmarbaise left | 20:43 |
|
endpoint_david
| vinse: no, as there could be any number of commits based on that commit | 20:43 |
|
| (i.e., forward to what) | 20:43 |
| → pragma_ joined | 20:44 |
|
Nebukadneza
| i was reading the git blame and log manpages, but i somehow can't come up with anything that does this - i was wondering what the easiest way to count lines of code per author via git... | 20:44 |
|
cbreak
| jf_: can you svn commit with other names? | 20:44 |
| pragma_ → Guest7606 | 20:44 |
|
jf_
| cbreak: yes, i own the repository | 20:44 |
|
cbreak
| if so, maybe give those credentials to git | 20:44 |
|
vinse
| Nebukadneza: git blame | grep "author name" | wc -l ? | 20:45 |
|
cbreak
| vinse: git's history is a DAG, the D stands for Directed. And the direction is into the past | 20:45 |
|
jf_
| cbreak: sure, i don't know how to do that | 20:45 |
|
Nebukadneza
| vinse: well, almost - if there were a way to get the "history" for every line | 20:45 |
|
| because - if someone ran e.g. a codeformatter over some code all of that would be credited to him | 20:45 |
|
cbreak
| jf_: don't know either. but somehow you will have to have done it or it couldn't authenticate to svn | 20:45 |
|
endpoint_david
| Nebukadneza: you can't distinguish intent from the tool-level | 20:46 |
| ← RORgasm left | 20:46 |
|
vinse
| Nebukadneza: i'm not sure how you're going to ... | 20:46 |
|
| nm, what endpoint_david said | 20:46 |
| → RORgasm joined | 20:46 |
|
Nebukadneza
| endpoint_david: sorry, didn'tget that one | 20:46 |
| ← djustice left | 20:46 |
|
cbreak
| you touch it, you own it. | 20:46 |
| → djustice joined | 20:47 |
| → masterkorp joined | 20:47 |
|
cbreak
| git doesn't care what you changed. if you changed a line, you changed it. | 20:47 |
|
vinse
| Nebukadneza: blame tells you the last person who changed it, how's it going to know whether it was a "significant change" or not? | 20:47 |
|
endpoint_david
| Nebukadneza: you can't tell from your script whether it was a change that should be counted or not | 20:47 |
| ← ph^_ left | 20:47 |
| → ph^ joined | 20:47 |
|
vinse
| Nebukadneza: did any of those 3 simultaneous explanations do it for you? ;p | 20:47 |
|
Nebukadneza
| sure, but if there would be a way to get the history of a line one could use the first commit e.g. | 20:48 |
|
cbreak
| Nebukadneza: lines do never get changed | 20:48 |
|
| they get added or removed | 20:48 |
|
endpoint_david
| Nebukadneza: blame already reports the earliest unchanged version of the line | 20:48 |
|
| in its current form | 20:49 |
|
cbreak
| if you "change" a line, a new one gets created to replace an older one | 20:49 |
|
Nebukadneza
| cbreak: in diffs yeah - i wasn't sure whether git had additional magic | 20:49 |
|
| git has so much magic for so many things you'd never believe so i thought maybe it had something for this ... | 20:49 |
|
cbreak
| git stores files in full each time you commit a change :) | 20:49 |
|
| it doesn't even care if you just changed a spelling mistake or exchanged the whole contents of the file | 20:49 |
|
Nebukadneza
| :) | 20:50 |
|
| kay | 20:50 |
| → khmarbaise joined | 20:51 |
|
Nebukadneza
| i'll go for blame, it'll be good enough | 20:51 |
|
cbreak
| also check out git annotate | 20:52 |
|
Nebukadneza
| okay, thanks for the pointer :) | 20:52 |
| → JPrince88 joined | 20:52 |
|
JPrince88
| I'm trying to do a git pull but I get error: Untracked working tree file 'test/fixtures/users.yml' would be overwritten by merge. Aborting | 20:53 |
|
| I don't care if users.yml is written over, I don't use fixtures. How can I make it do this and overwrite this anyway? | 20:53 |
| → ereslibre joined | 20:53 |
|
mmattice
| rm it | 20:53 |
|
| or follow what git status says | 20:54 |
|
Circuitsoft
| Easiest way I can think of is to just delete it before pulling. | 20:54 |
| ← Nemurenai left | 20:54 |
|
JPrince88
| ah okay | 20:54 |
|
| thanks guys it worked | 20:54 |
|
| now I just have to deal with some merge issues | 20:54 |
| ← giallu left | 20:54 |
|
JPrince88
| When I do git commit after finishing the pull | 20:56 |
|
| does it merge with current files or the last git commit statement i made? | 20:56 |
| → engla joined | 20:57 |
|
Circuitsoft
| I think the pull operation will merge with and into the working copy. | 20:58 |
| ← steveire_ left | 20:59 |
| → AkumaStreak joined | 20:59 |
| → khelll joined | 20:59 |
|
cbreak
| merge can only merge branches | 21:04 |
|
| nothing else | 21:04 |
|
| it will merge the current branch with what ever you pulled | 21:05 |
| → flaguy48 joined | 21:05 |
|
kokx
| cbreak: and tags ? | 21:05 |
|
cbreak
| tags are immutable labels | 21:05 |
| ← endpoint_david left | 21:06 |
|
cbreak
| if they are a label for a commit, then the commit and it's ancestors can be considered a branch | 21:06 |
| ← macek left | 21:06 |
| → hearit_ joined | 21:06 |
|
kokx
| cbreak: so, they can be merged ;) | 21:06 |
| ← tobiassjosten left | 21:06 |
| ← ereslibre left | 21:06 |
|
cbreak
| depends | 21:06 |
|
kokx
| you cannot merge to them, but you can merge them into a branch | 21:06 |
| ← hearit_ left | 21:07 |
| ← murr4y left | 21:08 |
| ← jf_ left | 21:08 |
| ← rubyruy left | 21:08 |
| ← ive left | 21:08 |
| ← mtkd left | 21:08 |
| ← kar8nga left | 21:09 |
|
jmspeex
| Can someone help me understand why "git submodule update" doesn't behave like I expect? | 21:10 |
|
Circuitsoft
| jmspeex: What do you expect? | 21:10 |
|
jmspeex
| I expect it to actually do something when there are changes in the remote repository | 21:10 |
|
kokx
| jmspeex: well, thats actually unexpected behaviour from my side | 21:10 |
|
jmspeex
| as far as I can tell, it does not do anything at all | 21:11 |
|
Circuitsoft
| cd <submodule>; git fetch; cd <root_repo>; git submodule update | 21:11 |
|
kokx
| Circuitsoft: no, doesn't work | 21:11 |
| → spearce` joined | 21:11 |
|
kokx
| because you need to checkout the branch ;) | 21:11 |
| ← lucsky left | 21:11 |
|
kokx
| if you add git checkout origin/master after git fetch, it works | 21:11 |
| → stringo0 joined | 21:12 |
|
jmspeex
| Circuitsoft: did exactly that | 21:12 |
|
kokx
| jmspeex: git submodule update makes sure that the submodule is up2date with the commit ID in the repository | 21:12 |
|
jmspeex
| kokx: well it doesn't for me | 21:13 |
| ← stringoO left | 21:13 |
| ← spearce left | 21:13 |
| spearce` → spearce | 21:13 |
|
kokx
| jmspeex: it does | 21:13 |
| ← ajpiano left | 21:13 |
|
kokx
| and i mean, the commit ID in the root repository | 21:13 |
|
jmspeex
| if I do a "git diff", this is what I see: | 21:13 |
|
| -Subproject commit 130e02e2c494769231337746745849dddbd48f7b | 21:13 |
|
| +Subproject commit 6f9a028cad836b8f41f479d244be849fc16e48b8 | 21:13 |
|
kokx
| yes | 21:13 |
|
| thats correct | 21:13 |
|
jmspeex
| the newer version is 130e02 and what I used to have was 6f9a0 | 21:13 |
|
kokx
| hmmz, thats weird | 21:14 |
|
jmspeex
| My expectation was that "git submodule update" would advance that submodule to point to 130e02, which is the newer commit | 21:14 |
| ← henkboom left | 21:14 |
|
kokx
| no, thats not true jmspeex | 21:14 |
|
jmspeex
| What is not true? | 21:15 |
|
kokx
| what you expect | 21:15 |
| bdiego → bdiego_work | 21:15 |
|
kokx
| ok, inside your root repository, there is a subproject commit ID stored | 21:15 |
|
| and git submodule update, makes sure your submodule is updated to that specific commit ID | 21:15 |
|
jmspeex
| Let me make sure we're in sync. On machine A, I committed 130e02 in the submodule. Then I git a commit in the "superproject". | 21:15 |
|
| Of course, I pushed all these changes | 21:15 |
|
| Now on machine B, I'd like to "sync everything" to have the same as I have on machine A | 21:16 |
|
| so I did a "git pull" in the superproject, along with a "git submodule foreach git fetch" | 21:16 |
|
| After that, I did a "git submodule update" | 21:16 |
|
| I would have expected this to be sufficient -- it's not | 21:17 |
|
kokx
| ah, you should have committed after the git submodule foreach git fetch i think | 21:17 |
| kpreid_ → kpreid | 21:17 |
|
kokx
| though i'm not 100% sure | 21:17 |
|
jmspeex
| committed what?? Machine A already committed the fact that the superproject is using a newer version | 21:17 |
| → plediii joined | 21:17 |
| → cybergirl joined | 21:17 |
|
kokx
| hmmz ok jmspeex, that is weird indeed | 21:17 |
|
jmspeex
| To be honest, I have never seen "git submodule update" do *anything* at all since the first time I used it to clone the submodules | 21:18 |
| → henkboom joined | 21:18 |
| → ebneter joined | 21:18 |
| ← cybergirl left | 21:18 |
|
Circuitsoft
| On Machine A, in the superproject, git add <submodule_dir>, git commit, git push. | 21:19 |
|
| On machine B, in the superproject, git pull, git submodule update. | 21:19 |
|
| These confusions are why I try to avoid submodule now, and use git subtree when I can. | 21:19 |
| ← Fullmoon left | 21:19 |
|
jmspeex
| That's pretty much what I did (except I used "git commit -a") | 21:19 |
| ← bauruine left | 21:20 |
|
Circuitsoft
| I'm not sure I would trust git commit -a for this type of thing. | 21:20 |
|
plediii
| jmspeex: I think it doesn't do anything until you clone the super project. | 21:20 |
|
jmspeex
| Circuitsoft: git commit -a clearly showed me it was updating the submodule "pointer" | 21:20 |
|
| plediii: what doesn't do anything? | 21:21 |
|
plediii
| git submodule update | 21:21 |
|
| there has to be something for it to do before it will do anything | 21:21 |
|
| if you have a machine a and a machine b you should be seeing it do stuff | 21:21 |
| → murr4y joined | 21:22 |
| ← hyperair left | 21:22 |
|
jmspeex
| OK, I think I got it. It seems like my .git/config file got corrupted and the submodule entries had disappeared | 21:22 |
|
| Of course, "git submodule update" thought the best way of failing was silently | 21:23 |
| ← pantsman left | 21:23 |
| ← shruggar left | 21:26 |
| → ChUrP1 joined | 21:26 |
| → vdboor_ joined | 21:28 |
| ← ChUrP left | 21:28 |
| ← WebDragon|laptop left | 21:30 |
| ← IslandUsurper left | 21:30 |
| ← Kage left | 21:32 |
| ← johnw left | 21:33 |
| ← chrislerum left | 21:33 |
| → nobody joined | 21:34 |
| ← Titosemi left | 21:34 |
| ← gebi left | 21:35 |
| ← icwiener_ left | 21:36 |
| parndt_away → parndt | 21:36 |
| → chrislerum joined | 21:37 |
| ← sgh left | 21:38 |
| ← RORgasm left | 21:40 |
| ← coppro left | 21:42 |
| → coppro joined | 21:44 |
| ← lanthan_ left | 21:44 |
| → Fullmoon joined | 21:45 |
| → sergio_ joined | 21:45 |
| → freshtonic joined | 21:46 |
| ← bcardarella left | 21:47 |
|
przemoc
| hi, shouldn't following command give full and correct message text? git log -1 --format=format:'%s%n%n%-b' revision | 21:48 |
|
| the problem is with imported repos (svn), where commit logs usually don't have blank line and everything goes as the subject | 21:49 |
| → mizerydearia joined | 21:49 |
|
przemoc
| %s produces here one-line string instead of multiple-line one | 21:49 |
|
| is there any better way to get commit's exact message? | 21:50 |
| ← bartman left | 21:51 |
| ← Dave^| left | 21:51 |
| ← coppro left | 21:52 |
| → hilem joined | 21:52 |
| → Kage joined | 21:53 |
|
hilem
| i have a local branch, which doesn't exist in the remote repository, how do i push the local branch to the remote repository? | 21:53 |
| → Blackguard joined | 21:53 |
| ← Jaxan left | 21:53 |
|
sergio_
| is there a simple way to do git2svn ? | 21:53 |
|
thiago_akademy
| try one of the existing config files | 21:54 |
| → bartman joined | 21:55 |
|
sergio_
| hilem: http://progit.org/book/ch3-5.html | 21:55 |
|
Circuitsoft
| When I do a git-svn fetch, I starts at rev 1, even though HEAD is an svn clone from rev 18955 | 21:55 |
|
| How do I get it to start where it left off? | 21:55 |
|
rkreis
| maybe you can merge HEAD into remotes/svn? | 21:55 |
|
sergio_
| hilem: the "Pushing" part of that chapter | 21:55 |
| ← tstclair left | 21:56 |
| nsussman` → nsuss | 21:56 |
| nsuss → nsussman` | 21:56 |
|
hilem
| sergio_: thanks! exactly what i needed | 21:58 |
|
Circuitsoft
| remotes/git-svn is already pointed to the same place. | 21:59 |
| ← j0shua left | 21:59 |
|
alester
| OK, here's what I have never understood. | 22:01 |
| ← rayners left | 22:01 |
|
alester
| I do a "git add" and add some files, but no commit. | 22:01 |
|
| and then I say "Oh crap, what did I just add" | 22:02 |
|
| and I do a "git diff" and there are no diffs. | 22:02 |
| ← kipras left | 22:02 |
|
alester
| How do I know what is in that commit-to-be? | 22:02 |
|
cbreak
| git diff shows the diff between working dir and index | 22:02 |
|
Circuitsoft
| git status | 22:02 |
|
cbreak
| if you want to show between index and HEAD, use git diff --cached | 22:02 |
|
alester
| right, I see they're green | 22:02 |
|
Circuitsoft
| or "git diff --cached" | 22:02 |
|
cbreak
| alester: also check out man git-diff | 22:02 |
|
Gitbot
| alester: the git-diff manpage can be found at http://git.or.cz/man/git-diff | 22:02 |
|
alester
| AHA | 22:02 |
|
| OK, so it's still diff, | 22:02 |
|
cbreak
| if you do git diff HEAD, it shows between working dir and HEAD | 22:03 |
|
przemoc
| and w.r.t. commit message I am asking about sth better (i.e. it should be one command) than: git log -1 rev | sed '1,4d;s,^ ,,' | 22:03 |
| ← khmarbaise left | 22:03 |
| → spearce` joined | 22:04 |
| ← RobertLaptop_ left | 22:06 |
| ← rtl left | 22:07 |
| ← spearce left | 22:07 |
| spearce` → spearce | 22:07 |
| → Buglouse joined | 22:07 |
| → julius__ joined | 22:09 |
|
julius__
| hi | 22:09 |
| ← andrewl left | 22:10 |
| ← thierryp left | 22:10 |
|
julius__
| ive accidently removed some lines from a file that needs manual merging, how can i get the changes back? | 22:10 |
| → ignatp joined | 22:12 |
| ← priidu left | 22:12 |
|
cbreak
| julius__: taken a look at git checkout? | 22:12 |
|
| julius__: man git-checkout | 22:12 |
|
Gitbot
| julius__: the git-checkout manpage can be found at http://git.or.cz/man/git-checkout | 22:12 |
|
cbreak
| look for -p | 22:12 |
| ← LiamH left | 22:13 |
| ← tizbac left | 22:13 |
|
julius__
| thats not a valid option in git 1.6.3.3 (ubuntu 9.04) | 22:14 |
|
thiago_akademy
| upgrade | 22:14 |
| → Cstep4 joined | 22:15 |
|
julius__
| is planned..but the 700mb download needs to wait until i sleep | 22:15 |
|
| the bandwith is very limited here | 22:15 |
| → priidu joined | 22:15 |
|
engla
| that's understandable | 22:16 |
|
| I'm sure people here intended to suggest upgrading only git | 22:16 |
|
cbreak
| you're doing something wrong | 22:16 |
|
thiago_akademy
| upgrade Git only then | 22:16 |
| ← gbacon left | 22:16 |
|
engla
| julius__: use git help checkout to get the documentation for your installed version of git | 22:16 |
|
cbreak
| 700mb for a new git? what kind of garbage system do you use? | 22:17 |
|
julius__
| no, thats a whole upgrade | 22:17 |
|
engla
| cbreak: stop being so aggressive, obviously this user didn't mean that for just git | 22:17 |
| → scarabx joined | 22:17 |
|
julius__
| just upgrading git is above my knowlegde when it comes to a dist upgrade | 22:17 |
|
thiago_akademy
| get the source and build | 22:18 |
|
| it's very easy | 22:18 |
|
cbreak
| git's fairly low on dependencies afaik | 22:18 |
|
| I don't remember having to get more packages for compiling it | 22:18 |
| ← tvw left | 22:19 |
| ← seanius left | 22:20 |
|
wereHamster
| git pretty much only depends on libc and libz | 22:20 |
|
| and a C compiler | 22:20 |
| → epsas joined | 22:20 |
|
epsas
| Hello | 22:20 |
|
julius__
| ah crap. i just checked the upgrade wont upgrade git. it will stay at 1.6.3.3 | 22:20 |
|
epsas
| I want to write a post-update script that will execute if a certain branch has been updated | 22:21 |
|
cbreak
| 1.6.3 is fairly old | 22:21 |
|
epsas
| however, I am not sure how that information would be exposed to the post-update hook | 22:21 |
|
wereHamster
| epsas: man githooks | 22:21 |
|
Gitbot
| epsas: the githooks manpage can be found at http://git.or.cz/man/githooks | 22:21 |
| → seanius joined | 22:21 |
|
engla
| julius__: I don't use Ubuntu, but what about this? It might be a place to grab the latest git for you https://launchpad.net/~git-core/+archive/ppa | 22:22 |
| → linkdd joined | 22:24 |
|
linkdd
| hi | 22:24 |
|
julius__
| engla, thx | 22:24 |
|
linkdd
| I have a question, I see this page : http://www.kernel.org/pub/software/scm/git/docs/v1.0.13/git-clone-pack.html talking about "git clone-pack" | 22:24 |
|
| but when I try to run this command, git told me : "git: 'clone-pack' is not a git command. See 'git --help'." | 22:25 |
| ← Aaaarg left | 22:25 |
|
wereHamster
| linkdd: that's for version 1.0.13. We're now at 1.7 | 22:25 |
|
linkdd
| ah ok | 22:25 |
| → Aaaarg joined | 22:25 |
| → centr0 joined | 22:25 |
|
linkdd
| is there another way to do the same ? | 22:25 |
|
wereHamster
| linkdd: why don't you use one of the many tutorials or books? | 22:26 |
|
| linkdd: also, man git-clone | 22:26 |
|
Gitbot
| linkdd: the git-clone manpage can be found at http://git.or.cz/man/git-clone | 22:26 |
|
cbreak
| what did it do? | 22:26 |
| ← altrux left | 22:26 |
| ← warthog9 left | 22:26 |
|
wereHamster
| and progit.org | 22:26 |
|
epsas
| fuck this channel | 22:26 |
| ← epsas left | 22:26 |
| ← iravid left | 22:26 |
|
linkdd
| wereHamster: I search but without find anything | 22:26 |
|
| and I don't know what option to pass at git clone -u *** <repository> | 22:27 |
|
| (where the option is ***) | 22:27 |
|
wereHamster
| what does -u do? | 22:27 |
|
| ah, <upload-pack>. You only need that if git-upload-pack is not in the PATH on the remote host | 22:28 |
| → thierryp joined | 22:28 |
|
linkdd
| ok | 22:28 |
|
| i search for it because I need to clone a repository into an existing repository (without creating a new folder containing the cloned repository) | 22:29 |
|
wereHamster
| linkdd: man git-fetch | 22:29 |
|
Gitbot
| linkdd: the git-fetch manpage can be found at http://git.or.cz/man/git-fetch | 22:29 |
|
linkdd
| maybe i can do that with git-merge ? | 22:29 |
|
engla
| linkdd: what does clone into an existing repository mean? | 22:29 |
| ← julius__ left | 22:29 |
| ← ignatp left | 22:30 |
| ← priidu left | 22:30 |
| ← khelll left | 22:30 |
| → andrewl joined | 22:30 |
| ← Cstep4 left | 22:30 |
|
linkdd
| git clone <first-repository> ; cd <first-repository> ; clone <second-repository> into <first-repository> and not into <first repository>/<second repository> | 22:31 |
| ← Sr_X left | 22:31 |
| ← TeckniX left | 22:31 |
|
cbreak
| that makes no sense to me | 22:31 |
|
engla
| linkdd: still missing definition | 22:31 |
|
cbreak
| you want to use fetch? | 22:31 |
|
dennda
| How can I only commit some lines of a file that I changed? | 22:32 |
| ← flazz left | 22:32 |
|
dennda
| aka line-based staging | 22:32 |
|
engla
| dennda: use git add -p | 22:32 |
|
cbreak
| dennda: man git-add | 22:32 |
|
Gitbot
| dennda: the git-add manpage can be found at http://git.or.cz/man/git-add | 22:32 |
|
linkdd
| engla: I don't know how to explain that :/ | 22:32 |
|
| cloning two repository in the same folder | 22:33 |
| → tschaub joined | 22:33 |
|
engla
| linkdd: ok, you can't do that. you can only have one repository per folder | 22:33 |
|
cbreak
| linkdd: man git-fetch | 22:33 |
|
Gitbot
| linkdd: the git-fetch manpage can be found at http://git.or.cz/man/git-fetch | 22:33 |
| → Mage joined | 22:34 |
|
linkdd
| cbreak: git fetch <repository> don't create the files in the directory | 22:34 |
|
cbreak
| of course not | 22:34 |
|
| why should it? | 22:34 |
|
engla
| linkdd: fetch the secondary repository, *then* you can start to merge the branches | 22:34 |
|
cbreak
| it fetches completely different branches | 22:34 |
| → sgharms joined | 22:34 |
|
linkdd
| okay | 22:34 |
|
cbreak
| you have to check them out if you want them | 22:34 |
| → npmap joined | 22:34 |
|
sgharms
| If I do git merge --no-commit test larry, in the event of conflict in say "fileA" is test's HEAD listed first, or is larry's HEAD listed first? | 22:35 |
|
dennda
| Thanks, git is just awesome | 22:35 |
|
wereHamster
| sgharms: there is onl one HEAD in a git repo. It's what you currently have checked out | 22:36 |
| ← raichoo left | 22:36 |
|
engla
| sgharms: an octupus merge won't allow you to proceed to conflict resolution (?) | 22:36 |
| ← radioman-lt left | 22:36 |
|
sgharms
| Ehh.. let me rephrase | 22:37 |
| ← eighty4 left | 22:37 |
|
sgharms
| if i do git diff fileA | 22:37 |
|
| I see at the top: <<<<<<< HEAD:path/to/filea | 22:37 |
|
linkdd
| cbreak: how to check them out ? | 22:37 |
|
sgharms
| in the middle the === bar and then at the foot >>> Another commit comment | 22:37 |
|
| which branch does the "above bar" refer to and which branch does the "below bar" refer to? | 22:38 |
|
cbreak
| linkdd: man git-checkout | 22:38 |
|
Gitbot
| linkdd: the git-checkout manpage can be found at http://git.or.cz/man/git-checkout | 22:38 |
|
wereHamster
| sgharms: the first section is what was in your current branch, the second section what was in the branch you are trying to merge | 22:38 |
|
engla
| sgharms: did you really issue 'git merge --no-commit test larry' ? | 22:38 |
|
sgharms
| yes. | 22:38 |
|
cbreak
| linkdd: take a look at -t | 22:38 |
|
wereHamster
| sgharms: man git-merge has a description of the conflict markers | 22:38 |
|
Gitbot
| sgharms: the git-merge manpage can be found at http://git.or.cz/man/git-merge | 22:39 |
|
sgharms
| er, engla yes I did. | 22:39 |
|
engla
| sgharms: I'll leave you on your own for octopus merges with conflict resolution. It shouldn't happen. | 22:39 |
| → t0rc joined | 22:41 |
| → ajpiano joined | 22:42 |
|
linkdd
| cbreak: so, i need to use : git fetch /path/to/repo/.git ; then use git-checkout ? | 22:42 |
|
cbreak
| tip: add it as remote | 22:43 |
| ← thierryp left | 22:43 |
|
cbreak
| do a git branch -r to look at which branches you got | 22:43 |
| ← hipe left | 22:46 |
| → hipe joined | 22:46 |
| ← montylounge left | 22:46 |
|
npmap
| Hello. | 22:47 |
| → ignatp joined | 22:47 |
|
npmap
| What is the recommended way of serving git repos a la github via ssh? | 22:47 |
| ← masterkorp left | 22:48 |
| ← Q| left | 22:49 |
| ← malumalu left | 22:49 |
|
wereHamster
| npmap: gitolite | 22:49 |
|
Nebukadneza
| mhhh | 22:50 |
|
| one other question - is there a way to rewrite history and rename a committer (e.g. "John Doe" to "JDoe")? | 22:50 |
|
linkdd
| cbreak: thanks wvery thing is working | 22:51 |
|
wereHamster
| Nebukadneza: git filer-branch | 22:51 |
| ← hipe left | 22:51 |
| ← JPrince88 left | 22:51 |
|
Nebukadneza
| wereHamster: thanks | 22:52 |
|
npmap
| wereHamster: thanks. I will set it up. | 22:53 |
| ← drizzd left | 22:54 |
|
Nebukadneza
| wereHamster: ah, so this: http://coffee.geek.nz/how-change-author-git.html is about right? | 22:54 |
|
tschaub
| I'm not sure I'm using git-svn correctly. I'm working on a project where the v2 line of development is going on in a subversion repo. The v3 line of development is using git. | 22:55 |
|
| I've initialized my git repo with the svn subdir location that has 2.x development | 22:55 |
|
| and created a 2.x branch | 22:55 |
| → madewokherd joined | 22:55 |
|
linkdd
| cbreak: it will help me with my project (if you want more informations go to #gitli, it is a linux distribution entirely managed with git) | 22:56 |
|
wereHamster
| Nebukadneza: yes, that's about right | 22:56 |
|
tschaub
| then I regularly `git svn fetch` and `git merge git-svn` | 22:56 |
|
Nebukadneza
| wereHamster: okay :) | 22:56 |
|
cbreak
| git's not a deployment system | 22:56 |
|
Nebukadneza
| theoretically i can apply this to my repository, push it to some remote and everything is "like locally" there too, right? | 22:56 |
|
tschaub
| merging changes from the 2.x subversion repo into the 2.x git branch | 22:56 |
|
| then `git merge` 2.x into master | 22:57 |
|
| this always results in commits with the message "Merge remote branch 'git-svn' into 2.x" | 22:57 |
|
| I didn't know if there was a way to merge fetched changes from svn without those merge commits | 22:58 |
|
cbreak
| you can't merge without merge commits | 22:58 |
|
| unless it's fast forward | 22:58 |
|
tschaub
| right, fast forward was what I was looking for | 22:58 |
|
| guess I need to better understand what that means | 22:59 |
| ← thiago_akademy left | 22:59 |
|
cbreak
| you can't make fast forward merges on demand | 22:59 |
|
tschaub
| right, it has to do with the nature of the changes? | 22:59 |
|
cbreak
| you can only make them if the thing you want to merge in is a direct descendent | 22:59 |
| → ChUrP joined | 23:00 |
|
tschaub
| ok, since my repo is a clone from svn, it isn't obvious to me whether or not to expect that changes have a direct descendent | 23:00 |
| ← p3rg2z left | 23:00 |
| ← pavlix left | 23:00 |
| → Q| joined | 23:01 |
| ← ChUrP1 left | 23:01 |
|
tschaub
| I also had to `git show origin/2.x | head -n 1 | sed 's/commit //' > .git/refs/remotes/git-svn` to get my working copy correctly configured to be able to use git-svn | 23:02 |
| ← ph^ left | 23:03 |
|
tschaub
| this seemed more complicated than necessary - so I was curious if I've misconfigured something | 23:03 |
|
wereHamster
| a long way to say: git update-ref refs/remotes/git-svn origin/2.x | 23:03 |
|
tschaub
| ah, thank you | 23:03 |
|
| tschaub wonders what else I've mis-documented in http://github.com/openlayers/openlayers/blob/master/readme-dev.md | 23:04 |
| → stringoO joined | 23:06 |
| → jtdowney joined | 23:07 |
| ← coderdad left | 23:07 |
| → coderdad joined | 23:07 |
| ← coderdad left | 23:12 |
| ← thomas_b left | 23:13 |
| ← didlix left | 23:13 |
|
tschaub
| thanks wereHamster and cbreak for the tips | 23:14 |
| ← linkdd left | 23:14 |
| → ChUrP1 joined | 23:15 |
| → jmcantrell joined | 23:17 |
| ← jtdowney left | 23:17 |
| ← brizly1 left | 23:18 |
| → brizly joined | 23:18 |
| → jtdowney joined | 23:18 |
| ← ChUrP left | 23:19 |
| ← sagsousuke left | 23:21 |
|
tschaub
| hmm, since changes to my 2.x branch only come from git-svn, it seems to me like those should be fast-forward merges | 23:21 |
| → JPrince88_ joined | 23:21 |
| ← JPrince88_ left | 23:22 |
| → gtklocker joined | 23:22 |
| → Tuller joined | 23:23 |
| ← sftp left | 23:24 |
| ← Yuuhi left | 23:25 |
| → ChUrP joined | 23:25 |
| → sftp joined | 23:25 |
| ← alester left | 23:25 |
| → johnw joined | 23:26 |
| ← Ryback_ left | 23:26 |
| ← eletuchy left | 23:26 |
| ← ChUrP1 left | 23:26 |
| → eletuchy joined | 23:27 |
| → alester joined | 23:27 |
| ← alester left | 23:27 |
| ← beatak left | 23:31 |
| → flazz joined | 23:33 |
| ← tildeequals left | 23:34 |
| ← chrislerum left | 23:36 |
| ← Paraselene_ left | 23:38 |
| parndt → parndt_away | 23:38 |
| ← ChUrP left | 23:39 |
| → ChUrP joined | 23:40 |
| → friskd joined | 23:45 |
| ← Nickeeh left | 23:47 |
| → jksz joined | 23:52 |
| ← vdboor_ left | 23:53 |
| ← nsussman` left | 23:54 |
| ← ChUrP left | 23:56 |
| ← n3kl left | 23:57 |
| ← hearit left | 23:58 |
| → n3kl joined | 23:58 |
| ← n3kl left | 23:58 |
| → n3kl joined | 23:58 |
| ← aziz left | 23:59 |