| 2009-08-11 |
| argnl → argonel | 00:00 |
| ← enherit left | 00:00 |
| ← offby1 left | 00:00 |
| ← bugfux left | 00:02 |
| ← Derander left | 00:02 |
| → porcnick_ joined | 00:02 |
| → Squee-D joined | 00:02 |
|
almostautomated
| what causes a test to skip vs pass/fail ? | 00:02 |
| ← qrush left | 00:03 |
| ← porcnick left | 00:03 |
| → qrush joined | 00:05 |
| → Derander joined | 00:05 |
| → agile joined | 00:05 |
| ← Aikawa left | 00:06 |
| ← dasy2k1 left | 00:09 |
| ← porcnick_ left | 00:09 |
| → ProLoser|Work joined | 00:09 |
| → JNR___ joined | 00:09 |
| ← crack_head left | 00:09 |
|
ProLoser|Work
| a file got wiped and my gitignores keep getting deleted, how do i revert to unwipe the file and recreate the git ignores? all other changes have been commited (revert those files to previous commit however) | 00:09 |
|
zenwryly
| If git just tracks content, I'm a little confused what git-mv does? | 00:10 |
|
jast
| it renames the file, removes the index entry for the old name, creates an index entry for the new name | 00:10 |
| → trapni^3 joined | 00:11 |
|
jast
| ProLoser|Work: you can use git checkout HEAD <file> to get the previous version of a file | 00:11 |
| → galderz joined | 00:12 |
|
jast
| and, well, I'm not the one deleting your .gitignore files. ;) | 00:12 |
|
ProLoser|Work
| ya i just locked the permissions, hopefully it stops | 00:12 |
| ← d0k left | 00:12 |
| ← mithro left | 00:13 |
|
zenwryly
| jast: ah, so it's all just cli sugar for the index? | 00:13 |
| → AkumaStreak joined | 00:13 |
|
jast
| pretty much. | 00:13 |
| → developernotes joined | 00:14 |
|
zenwryly
| jast: but status shows "renamed" as if it's some special state | 00:14 |
|
jast
| that's rename detection | 00:14 |
| ← RayMorgan_ left | 00:14 |
| → RayMorgan joined | 00:14 |
|
zenwryly
| jast: I guess what I'm asking is does a "mv" have any sort of designation in the objects once committed? | 00:14 |
|
jast
| try "renaming" the same file manually | 00:14 |
|
| mv a b; git rm --cached a; git add b | 00:14 |
| ← Dashkal left | 00:14 |
| ← Derander left | 00:15 |
| binjured|afk → binjured | 00:15 |
| ← galderz left | 00:15 |
|
zenwryly
| jast: ok, so no special representation in the commit or tree objects then? | 00:16 |
|
jast
| no | 00:16 |
| ← ProLoser|Work left | 00:16 |
|
zenwryly
| jast: so if I move *and* change a file, does that break rename detection? Does that affect delta compression at all? | 00:17 |
|
jast
| delta compression is usually not very much affected by renames | 00:17 |
|
| rename detection is hit and miss if the file gets changed in the same commit | 00:17 |
| ← neoeinstein left | 00:18 |
|
zenwryly
| jast: where can I find rename detection documetation? | 00:18 |
| → mw_ joined | 00:18 |
|
jast
| source code :) | 00:18 |
| ← developernotes left | 00:18 |
| ← mw left | 00:19 |
| → developernotes joined | 00:19 |
| ← developernotes left | 00:20 |
| → neoeinstein joined | 00:20 |
|
zenwryly
| jast: I was afraid of that. :) Well thanks a lot for telling me by hand then, exactly the info I needed. | 00:21 |
| ← qhoxie left | 00:21 |
|
jast
| you're welcome. and now I need sleep. | 00:22 |
| → javatexan joined | 00:23 |
| ← javatexan left | 00:23 |
| → mithro joined | 00:26 |
| ← trapni left | 00:27 |
| ← meanburrito920_ left | 00:29 |
| ← JNR___ left | 00:32 |
| → JNR___ joined | 00:32 |
| → mw joined | 00:32 |
| ← smashwilson left | 00:33 |
| ← binjured left | 00:33 |
| → binjured joined | 00:33 |
| ← mw left | 00:33 |
| ← Chaser left | 00:35 |
| ← binjured left | 00:35 |
| → binjured joined | 00:35 |
| ← justin-george left | 00:36 |
| ← tedoc2000 left | 00:38 |
| ← nd33r left | 00:38 |
| → crack_head joined | 00:39 |
| ← mw_ left | 00:40 |
|
Squee-D
| The git plugin im using in hudson is checking out to a revision, eg 'git checkout -f <shar here>' - i'm not seing some of the files added in this commit (any in subdirs) but i am seing those in the root of the repository getting added. Whats wrong here? | 00:40 |
| → plediii joined | 00:41 |
| → mm_202 joined | 00:42 |
| ← cloudhead left | 00:45 |
| ← cemerick left | 00:46 |
| ← bsy__ left | 00:49 |
| → magcius_ joined | 00:50 |
| ← s0ber left | 00:50 |
| ← magcius left | 00:51 |
| ← JNR___ left | 00:51 |
| → JNR___ joined | 00:52 |
| → s0ber joined | 00:53 |
| → bugfux joined | 00:53 |
| ← Circuitsoft left | 00:54 |
| → sitaram joined | 00:55 |
| → leanucci joined | 00:56 |
| ← plediii__ left | 00:57 |
| ← Geralt left | 00:58 |
| ← RayMorgan left | 01:00 |
| ← kennethlove_ left | 01:00 |
| ← sgrimm left | 01:00 |
| ← spaceonline left | 01:02 |
| → [KirinoxzerO] joined | 01:03 |
| ← [KirinoxzerO] left | 01:04 |
| ← sunoano left | 01:04 |
| → sunoano joined | 01:06 |
| → danielcadete joined | 01:06 |
| → jinzhu joined | 01:08 |
| → Chaser joined | 01:10 |
| ← sitaram left | 01:11 |
| ← pigeon left | 01:12 |
| ← plediii left | 01:12 |
| → plediii joined | 01:14 |
| → azeroth-work joined | 01:14 |
| → nd33r joined | 01:15 |
| ← nd33r left | 01:15 |
| → plediii_ joined | 01:20 |
| → pigeon joined | 01:21 |
| ← Chaser left | 01:22 |
| → hydrogen joined | 01:22 |
| → spaceonline joined | 01:22 |
| ← namidark left | 01:22 |
| ← salty-horse left | 01:25 |
| ← bugfux left | 01:26 |
| ← dreiss left | 01:27 |
| → cemerick joined | 01:27 |
| cpg → cpg|biab | 01:28 |
| ← psynaptic left | 01:29 |
| ← leanucci left | 01:30 |
| cpg|biab → cpg | 01:32 |
| ← tongueroo left | 01:33 |
| ← fualo left | 01:35 |
| ← plediii left | 01:35 |
| → plediii joined | 01:36 |
| → porcnick joined | 01:37 |
| → FunkeeMonk joined | 01:38 |
| → marvil07 joined | 01:39 |
| ← owen1_ left | 01:43 |
| → MrMeek joined | 01:44 |
| → josesito joined | 01:44 |
|
josesito
| If I already started some work on the master branch (but haven't added any changes nor committed anything yet) how can I make all my changes be committed to a different branch? | 01:45 |
| binjured → binjured|afk | 01:45 |
| ← hobodave left | 01:45 |
| cpg → cpg|biab | 01:45 |
|
tomoj
| josesito: git checkout differentbranch | 01:47 |
| ← agile left | 01:47 |
| ← plediii_ left | 01:48 |
| ← MrMeek left | 01:48 |
| → MrMeek joined | 01:51 |
| ← bdiego left | 01:52 |
| → plediii_ joined | 01:53 |
| ← plediii left | 01:53 |
| ← scarabx left | 01:56 |
| ← hydrogen left | 01:58 |
| → bugfux joined | 01:58 |
| ← relix left | 01:59 |
| ← JNR___ left | 02:01 |
| → JNR___ joined | 02:05 |
| → hydrogen joined | 02:07 |
| → developernotes joined | 02:07 |
| ← agnel left | 02:08 |
|
developernotes
| how do you respond when someone tells you that git isn't 'safe' b/c it allows you to commit content from your index, when you might have changes that are in your working directory? | 02:12 |
| ← crack_head left | 02:12 |
| → ctusar joined | 02:12 |
|
developernotes
| to me it seems like they are confusing the notion that centralized repos. models often have (i.e., svn) and thinking they need to operate the same way. Thoughts? | 02:12 |
|
reaVer
| developernotes: sorry, what? | 02:13 |
|
| it allows you to commit your index while your working directory has been changed? | 02:13 |
|
| I don't think git allows that by default | 02:14 |
|
developernotes
| exactly, it does. | 02:14 |
|
| I can edit a file, add it, then edit it again. When I issue a git commit, the content that was staged in the index is committed, not what hhas changed in the working directory. | 02:15 |
|
reaVer
| I don't remember it doing that | 02:16 |
|
| usually it complains about an unsynchronized index and what not | 02:16 |
| joshthecoder_afk → joshthecoder | 02:16 |
|
developernotes
| reaVer: My sentiment is that when you issue just a git commit without the -m, it displays both the staged files as well as the files that have been modified but not added to the index | 02:17 |
|
reaVer
| yes | 02:17 |
|
| hmmm, I might be wrong about the commiting but anyways | 02:17 |
|
| what's unsafe about it? | 02:18 |
|
developernotes
| But w/ the -m you are aware of how the command works, so therefore it doesn't need to share this information. | 02:18 |
|
reaVer
| usually I just use git commit -am "My message here" | 02:18 |
|
developernotes
| reaVer: I don't think it's unsafe, but my co-worker does. I think he thinks it's misleading b/c there are changes in the working directory. | 02:19 |
|
reaVer
| developernotes: then he should use git commit -a | 02:19 |
|
developernotes
| reaVer: Just wondering if anyone has had this discussion with anyone else before. | 02:19 |
|
reaVer
| developernotes: if you tell git to blow itself up it will do it | 02:19 |
| → murph joined | 02:19 |
|
reaVer
| it's not git's fault if that's actually been used | 02:19 |
|
developernotes
| reaVer: Sure. | 02:19 |
| ← cemerick left | 02:19 |
|
reaVer
| your routine of adding the file first was done to commit specific parts of changes | 02:20 |
|
| so that stuff you didn't actually want to commit yet doesn't get commited | 02:20 |
|
| makes it look a bit cleaner | 02:20 |
| → cytrinox_ joined | 02:21 |
|
reaVer
| what you're doing with adding and editing after adding basically comes down to that same thing | 02:21 |
| → jjuran joined | 02:21 |
|
reaVer
| generally you just get the howitzer out though and just use git commit -a | 02:21 |
| ← bugfux left | 02:22 |
| ← WALoeIII left | 02:23 |
| → Glutnix joined | 02:25 |
|
developernotes
| reaVer: I agree. | 02:25 |
| ← danielcadete left | 02:25 |
|
Glutnix
| is this the appropriate room if i have a git support question? | 02:25 |
| ← plediii_ left | 02:25 |
|
reaVer
| Glutnix: yes | 02:26 |
|
| but I'm going to sleep | 02:26 |
|
Glutnix
| i've made a clone on gitorious of the master repository, and have cloned that to my local. how do i switch my local to the master's 0.8.x branch to work on a fix for current stable? | 02:26 |
|
| (of the laconica repostiory) | 02:27 |
| → tfarina joined | 02:29 |
| ← aziz left | 02:29 |
|
developernotes
| Glutnix: Have you tried git checkout <branchname>? | 02:31 |
|
Glutnix
| error: pathspec '0.8.x' did not match any file(s) known to git. | 02:31 |
|
| http://www.gitorious.org/~glutnix/laconica/glutnix has the branch listed though | 02:32 |
|
developernotes
| Glutnix: taking a look at it, just a sec. | 02:33 |
|
Glutnix
| thanks in advanice | 02:34 |
| → WALoeIII joined | 02:35 |
|
developernotes
| Glutnix: try: | 02:36 |
|
| Glutnix: git checkout origin/0.8.x -b myBranchForFix | 02:36 |
|
| Glutnix: that worked for me. | 02:36 |
| ← cytrinox left | 02:37 |
| cytrinox_ → cytrinox | 02:37 |
|
Glutnix
| that worked, thanks | 02:37 |
| → jackylee joined | 02:38 |
|
developernotes
| Glutnix: no problem. | 02:38 |
| → scientes joined | 02:38 |
|
developernotes
| how do people respond when others say that git is not discoverable. | 02:44 |
| → fualo joined | 02:45 |
| ← fualo left | 02:48 |
| → offby1 joined | 02:48 |
| → leanucci joined | 02:48 |
| ← vuf left | 02:50 |
| → simNIX joined | 02:51 |
| ← jackylee left | 02:52 |
| → tjafk1 joined | 02:53 |
| → meanburrito920_ joined | 02:55 |
| cpg|biab → cpg | 02:59 |
| → jjuran_ joined | 03:00 |
| ← hydrogen left | 03:00 |
|
cxreg
| developernotes: what does that even mean? | 03:00 |
|
| http://git-scm.com <- look, I discovered it! | 03:01 |
|
DrNick
| "discoverable" probably involves a GUI with buttons and menus to explore | 03:01 |
|
| god forbid we have to read a manual | 03:01 |
| → dreiss joined | 03:01 |
|
SamB
| DrNick: having easy to navigate --help might also work ... | 03:02 |
| ← jjuran left | 03:02 |
|
cxreg
| git --a-clue | 03:02 |
|
| back to his first question, anyone who says "git isn't 'safe'" is speaking entirely out of their rear-end | 03:03 |
|
| it's provably more safe than just about any other scm | 03:03 |
|
developernotes
| cxreg: It came from a developer I work with today. | 03:04 |
|
SamB
| cxreg: it doesn't corrupt data often, true | 03:04 |
|
developernotes
| DrNick: haha....funny. :-) | 03:04 |
| ← offby1 left | 03:04 |
|
cxreg
| forget corruption, it's *tamper proof* | 03:04 |
|
| can you say the same for svn? | 03:04 |
| ← mfilipe left | 03:04 |
|
developernotes
| cxreg: For example, he said that he was looking to revert local changes, he was looking for a revert command and was surprised when the command was reset. | 03:05 |
|
SamB
| but it's easy to lose your data in the usual sense -- that is, lose track of where it *is* | 03:05 |
|
| or just do crazy stuff to your working tree/index | 03:05 |
| ← jchris left | 03:05 |
|
cxreg
| he's surprised about what commands are named, and that makes it less safe? | 03:06 |
|
developernotes
| cxreg: To me, I think he is used to commands from other tools and is therefore always looking for a corresponding command within git. | 03:06 |
|
cxreg
| that's fine; most of the time there is just such a command | 03:06 |
|
| it's just sometimes spelled differently | 03:07 |
| → mw joined | 03:07 |
|
developernotes
| cxreg: Agreed. | 03:07 |
| → mfilipe joined | 03:07 |
| ← timj left | 03:08 |
|
cxreg
| btw, this is not the first time this has come up in here | 03:08 |
|
| cxreg greps logs | 03:08 |
| ← mfilipe left | 03:10 |
|
cxreg
| May 04 2009 is one | 03:11 |
| → mfilipe joined | 03:11 |
|
developernotes
| cxreg: I'm sure. | 03:11 |
|
cxreg
| http://colabti.org/irclogger/irclogger_log/git?date=2009-05-04#l2609 | 03:11 |
| magcius_ → magcius | 03:12 |
| → scarabx joined | 03:13 |
| ← mfilipe left | 03:13 |
| → jackdempsey joined | 03:15 |
| → ryandotsmith joined | 03:16 |
| → justin-george joined | 03:16 |
| → offby1 joined | 03:18 |
| ← __iron left | 03:18 |
| → __iron joined | 03:19 |
| ← jackdempsey left | 03:21 |
|
developernotes
| cxreg: Thanks for the link and discussion. | 03:22 |
| → Lemao joined | 03:23 |
| → enherit joined | 03:23 |
| ← ryandotsmith left | 03:24 |
| ← developernotes left | 03:24 |
| → ryandotsmith joined | 03:24 |
| → plediii joined | 03:24 |
| → crack_head joined | 03:25 |
| ← spaceonline left | 03:25 |
|
zenwryly
| How can I disable the invocation of a pager (more)? | 03:27 |
| → mfilipe joined | 03:27 |
|
offby1
| I assume there's an environment variable so you can do something like "GIT_PAGER=cat git status" | 03:27 |
|
JNR___
| --no-pager | 03:27 |
|
offby1
| that too | 03:27 |
| ← jjuran_ left | 03:28 |
| → moconnor joined | 03:28 |
|
zenwryly
| well there's core.pager but I'm not understanding how to just disable it all together | 03:28 |
|
| I suppose I could just use cat as my pager :) | 03:29 |
| → t11m joined | 03:29 |
| ← mw left | 03:29 |
|
offby1
| crude but effective | 03:29 |
| ← mfilipe left | 03:29 |
|
zenwryly
| offby1: what other channel do I know you from? | 03:30 |
| → mfilipe joined | 03:30 |
| ← t11m left | 03:30 |
| → fualo joined | 03:30 |
| ← Lemao left | 03:31 |
| ← Glutnix left | 03:32 |
| ← hyperair left | 03:33 |
| → aspotashev|eeepc joined | 03:34 |
|
| offby1 points and intones: STALKER!! | 03:34 |
|
zenwryly
| hehe | 03:34 |
|
offby1
| aah, you're not even on the list! | 03:34 |
|
zenwryly
| list? | 03:34 |
|
offby1
| M-x erc-rank-stalkers RET :-) | 03:35 |
| → Marmouset joined | 03:35 |
|
offby1
| http://gist.github.com/165608 | 03:35 |
| → ashleyw joined | 03:35 |
|
zenwryly
| offby1: is that a real command or are you meesing with me, caue I don't have it :) | 03:35 |
| ← mm_202 left | 03:36 |
| ← ctusar left | 03:36 |
| ← leanucci left | 03:37 |
|
meanburrito920_
| zenwryly: to turn of the pager, set core.pater to "", an empty string | 03:38 |
|
| *core.parser | 03:38 |
|
| urg | 03:38 |
|
zenwryly
| meanburrito920_: gotcha | 03:38 |
|
meanburrito920_
| *core.pager | 03:38 |
|
zenwryly
| meanburrito920_: thanks! | 03:38 |
|
| rock | 03:38 |
| → dduncan joined | 03:38 |
| ← dduncan left | 03:38 |
| ← markelikalderon left | 03:39 |
| → releod joined | 03:43 |
|
offby1
| zenwryly: it's real in the sense that it exists; it's not real in the sense that it doesn't ship with emacs. Gimme five seconds | 03:44 |
| ← JNR___ left | 03:45 |
|
zenwryly
| offby1: found it I think | 03:45 |
|
| erc-rank-stalkers | 03:45 |
|
| http://paste.lisp.org/display/35731 | 03:46 |
|
offby1
| jinx :) | 03:46 |
|
| bet that paste was from me | 03:46 |
|
zenwryly
| offby1: yours is longer | 03:46 |
|
| err the gist one | 03:46 |
| → leanucci joined | 03:47 |
|
offby1
| use the gist one | 03:47 |
|
| it being newer | 03:47 |
|
| zenwryly notes that gist seems like the best git based masturbation yet | 03:47 |
| ← moconnor left | 03:47 |
| ← Hideki left | 03:48 |
| → gasull joined | 03:50 |
|
| meanburrito920_ agrees with zenwryly | 03:50 |
| → cedricv joined | 03:50 |
| ← fualo left | 03:53 |
| ← leanucci left | 03:53 |
| ← scarabx left | 03:54 |
| ← eletuchy left | 03:55 |
| → ryandots_ joined | 03:55 |
| ← mfilipe left | 03:56 |
| ← eMyller left | 03:57 |
| ← meanburrito920_ left | 03:57 |
| ← gasull left | 03:57 |
| → eMyller joined | 03:58 |
| ← tfarina left | 04:00 |
| → tedoc2000 joined | 04:01 |
| ← petercoulton left | 04:01 |
| → Derander joined | 04:01 |
| → markelikalderon joined | 04:06 |
|
alus
| hey. so I have some local changes | 04:10 |
|
| uncommitted | 04:10 |
|
| I realize it's getting out of hand, so I'd like to make a remote branch, commit and push this stuff there | 04:10 |
|
| how do I do that? | 04:10 |
|
cxreg
| git branch new_branch; git add stuff; git commit; git push remote new_branch; | 04:12 |
|
offby1
| or ... | 04:12 |
| → ryandot__ joined | 04:12 |
|
offby1
| git stash; git checkout -b new_branch; git stash pop | 04:12 |
|
cxreg
| there's little point to that stash | 04:12 |
|
| but sure, why not | 04:12 |
|
| oh right, i suppose i forgot to checkout the new branch in my example | 04:13 |
|
offby1
| now that you mention it | 04:13 |
|
alus
| I seem to recall something about making "git push" automatically push to the server, instead of having to specify it like that | 04:13 |
|
cxreg
| alus: it will magically push matching branches once it's on the remote | 04:13 |
|
| but you'll need to name it the first time | 04:14 |
|
alus
| but why did you type "git push remote new_branch" | 04:14 |
|
cxreg
| because the remote doesn't know about it yet | 04:15 |
|
alus
| oh, maybe it's pulls | 04:15 |
|
| it was extra args to git checkout, as I recall | 04:15 |
|
cxreg
| checkout -b or -t, probably | 04:16 |
|
alus
| why do I need "git branch" at all? | 04:16 |
| ← juan_arandaalvar left | 04:16 |
|
alus
| if git push makes the remote branch | 04:16 |
|
| doesn't git checkout create the new local branch? | 04:16 |
|
cxreg
| checkout -b would, as given by offby1. yes. | 04:16 |
|
| tmtowtdi | 04:17 |
| → JNR___ joined | 04:17 |
|
alus
| but offby1 didn't push to the remote server | 04:17 |
| ← ryandotsmith left | 04:17 |
|
offby1
| laziness | 04:18 |
|
alus
| laziness as in not needed or as in not typed | 04:19 |
|
| cxreg notices in the debian changelogs that gnu screen is now git hosted | 04:19 |
| ← mithro left | 04:21 |
| → mithro joined | 04:21 |
| ← porcnick left | 04:22 |
| → tweak joined | 04:22 |
|
tweak
| before I go and screw up this massive repo, just wondered if this was possible | 04:23 |
|
offby1
| alus: as in not typed. | 04:23 |
| ← eMyller left | 04:24 |
|
tweak
| hard to explain tho :| | 04:24 |
|
cxreg
| tweak: ok, yes. possible. | 04:24 |
|
| :) | 04:24 |
|
tweak
| assuming I were to check out a revision from somewhere in the past and create a new branch off that revision | 04:25 |
|
| could I merge the 'newer' commits which occurred after the point I've branched into the new branch, and then revert the master branch back to the point where I branched? | 04:25 |
|
| so | 04:25 |
| → girishr joined | 04:26 |
|
tweak
| basically moving a selection of commits into a new branch, but almost in a retroactive fashion | 04:26 |
|
cxreg
| sure, you don't even have to merge in order to do it | 04:27 |
|
tweak
| does that even make sense? | 04:27 |
|
| lol | 04:27 |
|
cxreg
| the only real gotcha is that if someone else somewhere has a "master" with those commits on it, it could be tricky for you | 04:27 |
| ← toxx__ left | 04:27 |
|
tweak
| nah, my own private repo | 04:27 |
|
cxreg
| git branch new_branch master; git reset master <sha>; # done | 04:28 |
|
tweak
| ....surely it's not that easy | 04:28 |
|
cxreg
| er, wait, that reset is bogus syntax | 04:28 |
|
tweak
| nothing is ever that easy | 04:28 |
|
cxreg
| git update-ref master <sha>; | 04:28 |
|
| but yes, it's that easy :) | 04:28 |
| ← ryandots_ left | 04:28 |
| → toxx__ joined | 04:28 |
|
cxreg
| no wait, still wrong. git update-ref refs/heads/master <sha>; | 04:28 |
|
tweak
| that sir, is 10 shades of awesome all mixed together | 04:29 |
| cpg → cpg|biab | 04:29 |
|
cxreg
| (or you could just checkout master and git reset --hard <sha> and avoid the weird plumbing) | 04:29 |
|
tweak
| yeah that's what I was intending for the revert part | 04:29 |
|
cxreg
| but regardless of my inane bumbling, this is a normal thing for git | 04:29 |
|
tweak
| doing it this way without asking I would have expected git to have a spaz about how the new branch had been made off a commit that no longer existed | 04:30 |
|
cxreg
| of course the commit exists | 04:31 |
|
| and if you create the new branch where master is, then they never even go unreferenced | 04:31 |
|
| but if they did, they'll still stick around for a good while | 04:31 |
|
tweak
| see, why can't the rails channel be this helpful | 04:31 |
|
| :D | 04:31 |
|
cxreg
| *cough* | 04:31 |
|
| unlike some communities, this one is actually helpful ;) | 04:32 |
|
tweak
| amen! | 04:32 |
|
cxreg
| fwiw, dangling commits and other objects typically stick around for ~90 days or so. man git-reflog for more info on that. | 04:32 |
|
Gitbot
| fwiw: the git-reflog manpage can be found at http://git.or.cz/man/git-reflog | 04:32 |
| → sparc joined | 04:32 |
|
tweak
| awesome | 04:33 |
|
| many thanks | 04:33 |
|
cxreg
| silly Gitbot | 04:33 |
|
| np | 04:33 |
| ← Squee-D left | 04:33 |
| ← scientes left | 04:33 |
| → hyperair joined | 04:34 |
| → ajonat joined | 04:35 |
| → scientes joined | 04:38 |
| → porcnick joined | 04:39 |
| ← porcnick left | 04:39 |
| ← hyperair left | 04:42 |
| almostautomated → almostautomated| | 04:42 |
| → pencilo joined | 04:42 |
| → fualo joined | 04:42 |
| ← neoeinstein left | 04:44 |
| ← doener left | 04:45 |
| → doener joined | 04:45 |
| → neoeinstein joined | 04:45 |
| ← markelikalderon left | 04:45 |
| ← kyxzme left | 04:46 |
| → hydrogen joined | 04:46 |
| → kyxzme joined | 04:47 |
| → daaku joined | 04:48 |
| ← AkumaStreak left | 04:48 |
| → fualo_ joined | 04:49 |
| → hyperair joined | 04:50 |
| → hobodave joined | 04:50 |
| ← kyxzme left | 04:50 |
| → tongueroo joined | 04:51 |
| ← JNR___ left | 04:54 |
| ← xelados left | 04:54 |
| → Guest62990 joined | 04:55 |
| Guest62990 → jnr___ | 05:00 |
| cpg|biab → cpg | 05:02 |
| binjured|afk → binjured | 05:02 |
| ← jonmasters left | 05:02 |
| ← hydrogen left | 05:03 |
| → Luca_Peck joined | 05:04 |
| → mw joined | 05:05 |
| → bugfux joined | 05:06 |
| ← tweak left | 05:06 |
| ← fualo left | 05:06 |
| ← mw left | 05:06 |
| ← Luca_Peck left | 05:10 |
| → seangrov` joined | 05:10 |
| → jonmasters joined | 05:11 |
| ← seangrove left | 05:12 |
| → ben_h joined | 05:12 |
| ← MetaCosm left | 05:16 |
| → ankit9 joined | 05:18 |
| ← ryandot__ left | 05:25 |
| → ryandotsmith joined | 05:25 |
| ← girishr left | 05:26 |
| ← spearce left | 05:26 |
| → Tuomas joined | 05:28 |
| → sitaram joined | 05:31 |
| → sprasanna joined | 05:32 |
| → plediii_ joined | 05:32 |
| ← plediii left | 05:33 |
| → harinath joined | 05:34 |
| → Luca_Peck joined | 05:38 |
| → ngng joined | 05:38 |
| ← scientes left | 05:38 |
| ← orafu left | 05:39 |
| → orafu joined | 05:40 |
| → mital joined | 05:41 |
| → MIR100 joined | 05:41 |
|
mital
| hi... I am facing an issue related to proxy... can I set proxy authentication | 05:42 |
| → knittl joined | 05:42 |
| ← hyperair left | 05:45 |
| ← tedoc2000 left | 05:45 |
| ← ngng left | 05:46 |
|
sitaram
| what is the issue? and what are you trying to do? clone or pull over HTTP? over git:// or ssh? | 05:48 |
|
| some details would help | 05:48 |
|
mital
| I am doing "git clone url" | 05:48 |
|
| mital is on windows | 05:49 |
| ← releod left | 05:49 |
|
mital
| git clone git://github.com/appcelerator/kroll.git | 05:49 |
|
| mital is behind proxy... I am not sure weather its a proxy issue or not | 05:49 |
|
sitaram
| it will be a proxy issue | 05:50 |
|
mital
| do we have any configuration settings for proxy ?? | 05:50 |
|
| oh cool... can I set proxy authentications using git global config ? | 05:50 |
|
sitaram
| does your proxy server allow proxying arbitrary ports? (other than 443 and 80)? | 05:50 |
| → roop joined | 05:50 |
| ← tongueroo left | 05:51 |
|
| mital is not sure... | 05:51 |
|
sitaram
| are you allowed to install arbitrary programs on your machine? | 05:51 |
| → digitalhobbit joined | 05:52 |
| → JasonWoof joined | 05:52 |
|
mital
| I am administrator in my comp. | 05:52 |
|
| btw git uses which port ? | 05:52 |
|
sitaram
| what is comp? | 05:53 |
|
| company? computer? | 05:53 |
|
| git uses 9418 I think | 05:53 |
|
mital
| computer | 05:53 |
|
sitaram
| ok | 05:53 |
| → jchris joined | 05:53 |
|
sitaram
| then install something like corkscrew or something; there's a github help page about that if you search | 05:53 |
|
| do you have a github account? | 05:53 |
|
mital
| yeah... | 05:54 |
| ← ryandotsmith left | 05:55 |
|
mital
| sitaram: I found core.gitproxy parameter in config | 05:55 |
| ← qrush left | 05:56 |
| ← wolog left | 05:57 |
|
sitaram
| if you have a github account you can (1) use the web interface to fork the kroll project (2) use your ssh credentials to grab it. This would require you to use a local proxy (I use "socat", though "corkscrew" is more popular) to proxy connections to port 443 of ssh.github.com. Any proxy server will allow port 443 | 05:58 |
|
| this is all the help I can give just now; I just tried it by the way, and got the kroll repo down to my machine behind a proxy | 05:58 |
|
| good luck | 05:58 |
| → drizzd joined | 05:59 |
| → eMyller joined | 06:00 |
| → thiago_home joined | 06:02 |
| ← eMyller left | 06:02 |
| → saurabhverma joined | 06:02 |
| ← dreiss left | 06:04 |
| → Beket joined | 06:06 |
|
Beket
| Hi people. Is it possible for git to remember set uid bit ? | 06:06 |
|
| remember=track | 06:06 |
| → Modius joined | 06:07 |
|
Nafai
| I think the only file permissions it tracks is executable | 06:07 |
| → sde_antrix1 joined | 06:08 |
|
sitaram
| specifically, is it executable to the effective UID of the person adding the file, I think | 06:08 |
|
Beket
| nice, thanks people | 06:10 |
| → tongueroo joined | 06:11 |
| ← tongueroo left | 06:11 |
|
Beket
| I will add a chmod in the Makefile target which generated the binary | 06:11 |
| ← fualo_ left | 06:12 |
| → fualo joined | 06:12 |
| → dreiss joined | 06:13 |
| ← aspotashev|eeepc left | 06:15 |
| ← josesito left | 06:23 |
| ← Luca_Peck left | 06:23 |
| ← MrMeek left | 06:23 |
| → gitte joined | 06:24 |
| → Luca_Peck joined | 06:25 |
| ← benn_d left | 06:26 |
| → hyperair joined | 06:27 |
| ← Beket left | 06:28 |
| ← bugfux left | 06:28 |
| → agile joined | 06:29 |
| → bugfux joined | 06:29 |
| ← digitalhobbit left | 06:30 |
| ← ankit9 left | 06:31 |
| → Aikawa joined | 06:32 |
| → mae joined | 06:33 |
| ← __iron left | 06:34 |
| ← crack_head left | 06:34 |
| → __iron joined | 06:35 |
| → galderz joined | 06:37 |
| ← thiago_home left | 06:37 |
| → fivetwentysix joined | 06:38 |
|
fivetwentysix
| how do i go revert to the previous commit? | 06:38 |
|
sitaram
| the word is reset | 06:39 |
|
fivetwentysix
| reset and? | 06:39 |
|
sitaram
| revert means a new commit that reverts the actions of the older one | 06:39 |
|
| fivetwentysix: I'll back up a little.. what did you mean by "go revert to the previous commit" | 06:40 |
|
fivetwentysix
| well i made a mistake with my newest commit | 06:40 |
|
| now the information is live on the production server | 06:40 |
|
| so i need to rollback one commit | 06:40 |
|
| git can do this right? | 06:40 |
|
sitaram
| git reset --hard HEAD^ | 06:40 |
|
| this will rollback one commit, as well as throw away all that stuff. If you want to preserve it, make a temp branch out of it before the reset | 06:41 |
|
| git branch savethis; git reset --hard HEAD^ | 06:41 |
| → wolog joined | 06:42 |
|
fivetwentysix
| ty sitaram | 06:42 |
|
sitaram
| at some later point, when you're ready to pick up that erroneous piece of work and fix it up, "git checkout savethis", work on it, fix it, "git commit --amend", and then merge it into master | 06:42 |
|
fivetwentysix
| so if i want to go back two commits its HEAD^^? | 06:42 |
|
sitaram
| yw fivetwentysix | 06:42 |
| → JNRo__ joined | 06:43 |
|
sitaram
| fivetwentysix: yes; and man git-rev-parse gives you other ways to name ancestor commits, especially when merges are involved | 06:43 |
|
Gitbot
| fivetwentysix: the git-rev-parse manpage can be found at http://git.or.cz/man/git-rev-parse | 06:43 |
| ← jnr___ left | 06:43 |
|
sitaram
| has a nice ASCII art picture too | 06:43 |
| → girishr joined | 06:44 |
| ← JNRo__ left | 06:46 |
| ← Bass10 left | 06:46 |
| → JNR___ joined | 06:46 |
| ← almostautomated| left | 06:49 |
| → ankit9 joined | 06:52 |
| ← JNR___ left | 06:52 |
| → JNR___ joined | 06:52 |
| → bentob0x joined | 06:53 |
| ← knittl left | 06:55 |
| → bdiego joined | 06:55 |
| → eletuchy joined | 06:55 |
| → [Po]lentino joined | 07:00 |
| → Yewbacca joined | 07:00 |
| ← JasonWoof left | 07:03 |
| ← ashleyw left | 07:05 |
| → ashleyw joined | 07:08 |
|
mital
| sitaram: hey it got solved I asked system engineers to open port 9418... thanks for your help :) | 07:08 |
| ← ashleyw left | 07:08 |
|
sitaram
| nice; you're lucky -- my guys need permission from the president of India or something to do that :) | 07:09 |
|
| sitaram exaggerate a leeetle bit for effect :) | 07:09 |
| [Po]lentino → [Po]lentino|away | 07:10 |
| ← __iron left | 07:12 |
| → __iron joined | 07:13 |
| ← JNR___ left | 07:14 |
| → JNR___ joined | 07:15 |
| joshthecoder → joshthecoder_afk | 07:16 |
| → ph^ joined | 07:17 |
| ← bugfux left | 07:18 |
| ← jegade left | 07:18 |
| ← multani left | 07:18 |
| ← enherit left | 07:21 |
| → priidu joined | 07:22 |
|
hyperair
| how does one terminate a git fetch operation and then resume it later? | 07:24 |
| → shingo joined | 07:25 |
| shingo → Guest36462 | 07:25 |
| → unknown` joined | 07:26 |
| unknown` → ryoma | 07:27 |
|
ciaranm
| hyperair: unless i've missed that being implemented recently, one doesn't | 07:27 |
|
ryoma
| hi, "up-to-date" is a modifier, not a noun. has this misspelling been corrected? | 07:27 |
|
hyperair
| it's not supported eh..? | 07:27 |
|
ciaranm
| last time i looked fetch just downloaded everything as one single big blob, and started over if that blob failed | 07:28 |
|
ryoma
| fwiw, i am using 1.6.1, and it incorrectly says up-to-date instead of up to date | 07:29 |
| → vals_ joined | 07:29 |
| ← fivetwentysix left | 07:29 |
| ← JNR___ left | 07:29 |
| → JNR___ joined | 07:30 |
| → ianmcorvidae|alt joined | 07:33 |
| ← ianmcorvidae left | 07:34 |
| → harinath1 joined | 07:36 |
| ← harinath left | 07:38 |
| harinath1 → harinath | 07:38 |
| ← dreiss left | 07:38 |
|
charon
| ryoma: where? if it's in the docs or a porcelain command, have you considered writing a patch? if it's plumbing, odds are it's too late to change it | 07:40 |
| ← Aikawa left | 07:40 |
| → dpino joined | 07:41 |
| → evaryont joined | 07:42 |
|
evaryont
| is there a git channel for interesting/cool git stuff? or am I already in it? :) | 07:43 |
| → lohrun joined | 07:43 |
| ← tango_ left | 07:45 |
| → ntoll joined | 07:45 |
| → khmarbaise joined | 07:46 |
| ← mital left | 07:50 |
| → multani joined | 07:52 |
|
charon
| evaryont: this is it. you arrived at a time of day where the channel is usually fairly quiet, though | 07:52 |
| → psoo joined | 07:54 |
| ← ryoma left | 07:54 |
| → dwave joined | 07:54 |
| ← khmarbaise left | 07:58 |
| ← hyperair left | 07:59 |
| ← altrux left | 07:59 |
| → shruggar joined | 08:01 |
| ← Derander left | 08:01 |
| ← lu_zero_ left | 08:02 |
| → psankar joined | 08:04 |
|
charon
| doener: remember the huge blame-stats command? git ls-files | while read f; do git blame -M -- "$f"; done | perl -pe 's/^\^?[a-f0-9]* (?:[^(]* )?\(([^2]*?) *20.*/$1/' | sort | uniq -c | sort -n | tee stats; perl -ne '$s += $1 if /(\d+)/; END{print "$s\n"}' < stats | 08:06 |
| → NET||abuse joined | 08:07 |
|
charon
| any idea why it blames more lines to me than there are +lines in the diffstat between when i first started committing on the project and now? | 08:07 |
|
| i can't see it :( | 08:07 |
| → koolhead1 joined | 08:08 |
|
koolhead1
| hi all | 08:08 |
| ← chad left | 08:08 |
|
charon
| in fact, there are _still_ fewer lines if i count the number of + lines in 'git log -p' for the relevant lines, which makes no sense to me. i'd have expected quite the opposite (meaning that i patched the same stuff over and over) | 08:09 |
| ← WALoeIII left | 08:09 |
|
charon
| s/relevant lines/relevant history/ | 08:09 |
| → Teo` joined | 08:10 |
| ← agenteo left | 08:16 |
| → Tobin joined | 08:18 |
| → mattions joined | 08:18 |
| ← Marmouset left | 08:23 |
| → halfline_ joined | 08:24 |
| ← Adlai left | 08:25 |
| → gonzojive joined | 08:27 |
| ← sitaram left | 08:28 |
|
gonzojive
| I have a git repository that I have cloned to two different directories and made separate modifications to each. I have committed the changes to both cloned repositories, but when I try to git-pull one into the other, I get "Already up-to-date." | 08:29 |
| ← ianmcorvidae|alt left | 08:32 |
| → ianmcorvidae joined | 08:32 |
| ← JNR___ left | 08:32 |
|
Ilari
| gonzojive: What branch are you trying to pull? Into what branch? Getting those wrong is the most common cause of "mysterious" already up-to-date messages. | 08:32 |
|
shruggar
| gonzojive, did you push the changes? | 08:33 |
|
gonzojive
| shruggar: I am pulling directly from the modified repository, not the original one. | 08:33 |
|
shruggar
| ah | 08:34 |
|
| then yeah, what Ilari said | 08:34 |
|
gonzojive
| Ilari: how can I determine what branch I am working with? | 08:34 |
|
Ilari
| gonzojive: 'git branch' output. Or if you have it set up, its in shell prompt when you are in repo directory. | 08:34 |
|
gonzojive
| Ilari: they are both "master" | 08:35 |
|
| Is it possible for the git repository to be "up to date" but the files are not identical to those in the repository from which I pulled? | 08:36 |
| ← halfline left | 08:37 |
| → jaeckel joined | 08:37 |
| → Octalot joined | 08:37 |
| ← bobesponja left | 08:39 |
|
Ilari
| gonzojive: "up to date" means current branch is superset of the branch to fetch + merge. | 08:40 |
| voker57__ → Voker57 | 08:40 |
| → prusnak joined | 08:41 |
| → HG` joined | 08:41 |
| dwave → asksol | 08:42 |
| → khmarbaise joined | 08:45 |
| → hyperair joined | 08:47 |
| ← azeroth-work left | 08:49 |
| → kyxzme joined | 08:49 |
| ← Strogg left | 08:50 |
| ← marvil07 left | 08:50 |
| → Strogg joined | 08:50 |
| ← Luca_Peck left | 08:51 |
| ← nano- left | 08:52 |
| ← prusnak left | 08:52 |
| → tono joined | 08:53 |
|
gonzojive
| Ilari: ah, so my pulling repo has already merged whatever was in the other repo, and I have overwritten the changes? | 08:54 |
|
| i must not properly understand. I just made a trivial change and committed it, and now I am still getting "up to date" when I pull | 08:56 |
|
shruggar
| "overwritten" is more destructive of a word than I would use | 08:56 |
|
| can you pastebin a log of what you are doing? | 08:57 |
| ← eldragon left | 08:58 |
| → obiwan_chinobi joined | 08:58 |
| → eldragon joined | 08:59 |
| → prusnak joined | 09:00 |
| → jceb81 joined | 09:01 |
| ← ajonat left | 09:02 |
| → offby1` joined | 09:02 |
| ← fualo left | 09:03 |
| ← prusnak left | 09:05 |
| ← sunoano left | 09:05 |
|
Ilari
| gonzojive: Pulling from the another repo, right? | 09:06 |
| ← cpg left | 09:06 |
|
gonzojive
| Ilari: yes | 09:06 |
| → sunoano joined | 09:07 |
|
Ilari
| gonzojive: Get 'git rev-parse master' from both repos, then do 'git rev-list HEAD | grep <rev-parse-from-other-repo>' (assuming you are doing 'git pull <other-repo-path> master'. | 09:07 |
|
gonzojive
| shruggar: I have two repositories: Pulling Repo and Other Repo. I have changes in Other Repo that I want to merge into Pulling Repo. I just made a change (added a few lines to a file and committed) in Other Repo. When I pull Other Repo into Pulling Repo, it says "already up-to-date" | 09:08 |
|
| shruggar: is there a more technical log that I can generate from git that would be helpful? | 09:09 |
|
Ilari
| gonzojive: What's the exact pull command you are using? | 09:09 |
|
gonzojive
| Ilari: red@condi:/git/webfunk$ git pull ~/projects/webfunk/ master | 09:10 |
|
Ilari
| gonzojive: Ok 'GIT_DIR=~/projects/webfunk/.git git rev-parse master' (hope I got that syntax right). | 09:11 |
|
| gonzojive: Then in git/webfunk, 'git rev-list HEAD | grep <id-from-rev-parse>'. | 09:13 |
| ← krawek left | 09:14 |
| → Raydiation joined | 09:15 |
|
Raydiation
| isnt git coded in C? why does it pull in 2 perl libs then? | 09:15 |
|
stdorb
| it's a mixed bag | 09:16 |
|
Ilari
| Raydiation: Most parts are in C, some in shell and few in perl. | 09:16 |
| ← koolhead1 left | 09:19 |
|
gonzojive
| Ilari: git rev-parse master in ~/projects/webfunk gives only one 40-char object id: a21c730993ba8d166c8486cd946c3ad4b6fe7261. This appears in the middle of the git rev-parse in /git/webfunk | 09:19 |
| ← offby1 left | 09:20 |
| ← psankar left | 09:21 |
|
Ilari
| gonzojive: Rev-list in ~/git/webfunk you mean? | 09:22 |
| ← hyperair left | 09:22 |
| → hyperair joined | 09:22 |
|
Ilari
| gonzojive: 'cat ~/projects/webfunk/.git/HEAD' | 09:23 |
|
gonzojive
| Ilari: My two repositories are in the directories /git/webfunk and ~/projects/webfunk | 09:23 |
|
| Ilari: ref: refs/heads/master is the result of that | 09:24 |
|
Raydiation
| is the git version in lenny "young" enough? | 09:24 |
|
Ilari
| Raydiation: Bit oldish. | 09:24 |
|
gonzojive
| Ilari: thanks for the help with this, by the way | 09:24 |
|
Raydiation
| are there any major changes in recent versions? | 09:25 |
|
Ilari
| gonzojive: If the ID from rev-parse appears in rev-list of another repo, it means the commits are already in there. | 09:25 |
|
| Raydiation: Well combine 5 changelog summaries (and none of them is exactly short). | 09:26 |
| → psankar joined | 09:26 |
|
gonzojive
| Ilari: I see. thanks | 09:27 |
|
| can anyone recommend a tool similar to Araxis Merge (gui for merging files) for linux? | 09:28 |
|
broonie
| meld | 09:29 |
| → GarethAdams joined | 09:29 |
| → Fullmoon joined | 09:32 |
| dwmw2_gone → dwmw2 | 09:32 |
| ← mattions left | 09:34 |
| ← funkycat90210__ left | 09:35 |
| ← Theravadan left | 09:35 |
| → parasti joined | 09:35 |
|
doener
| charon: there are some cases where blame fails to follow some lines further back in the history, seems to happen when a) they have moved in the file and/or b) the lines around that line have been changed | 09:38 |
|
| charon: if you recall Dan McGee's question about blaming deleted/renamed files, that was hit by such a case too | 09:40 |
|
| charon: http://article.gmane.org/gmane.comp.version-control.git/124922/match=blame+deleted+renamed+file | 09:40 |
|
| hm, that's better: http://article.gmane.org/gmane.comp.version-control.git/124922 | 09:40 |
| → Chaser joined | 09:40 |
|
jkp
| question: i built and installed git using 'make all; make install' ut it didnt install the server components | 09:42 |
|
| what command do i need to do this? | 09:42 |
|
wereHamster
| jkp: it should have. Does ~/bin/git-daemon exist? | 09:42 |
| → calebr joined | 09:42 |
|
doener
| git-daemon should be in libexec/git-core/ | 09:43 |
|
jkp
| doener: ahhhh | 09:43 |
|
doener
| jkp: you're supposed to run it as "git daemon" | 09:43 |
|
| jkp: the "git" wrapper knows where to look | 09:43 |
|
jkp
| doener: hmmm | 09:43 |
|
wereHamster
| oh, I thought it's one of those commands that remain in PATH | 09:43 |
|
jkp
| im getting this message in my system log when i try to clone | 09:44 |
|
doener
| jkp: bin/ should just have git, git-shell, git-receive-pack, git-upload-archive, git-upload-pack, git, gitk, git-cvsserver | 09:44 |
| → d0k joined | 09:44 |
|
jkp
| http://pastie.textmate.org/579750 | 09:44 |
|
| doener: it coule be because the daemon is running as root though | 09:45 |
|
| maybe i should set it to run as the git user and ensure /usr/local is in the path | 09:45 |
| ← mcdebugger left | 09:45 |
|
calebr
| Hi, I have a commit which was pushed on remote servers long time ago. Maintainer asks me to split it into several small commits, but I red rebase is not recommended when commit was shared. how can I split this commit smoothly? | 09:46 |
|
doener
| jkp: IIRC git should add the right thing to PATH when trying to spawn a subprocess | 09:47 |
| ← ankit9 left | 09:47 |
|
_rane
| calebr: it's indeed not "recommended" but if no one tracks your repo it's not a big deal | 09:47 |
|
calebr
| _rane they are tracking | 09:47 |
| → halfline2 joined | 09:48 |
|
Chaser
| calebr, undo that commit using git-revert, and then push your changes by splitting etc ... | 09:48 |
|
| that way pulls will be clean by other people and what you did is visible too ... | 09:49 |
|
doener
| calebr: more important question: has anyone that commit in his branches, i.e. did they merge your stuff, or build their own stuff upon it? | 09:49 |
| ← jceb81 left | 09:49 |
|
calebr
| doener: yes. maitainer just want to have small commits | 09:49 |
| → Sordran joined | 09:50 |
| → DavidKlein joined | 09:50 |
| → prusnak joined | 09:51 |
| [Po]lentino|away → [Po]lentino | 09:52 |
|
jkp
| doener: indeed it does: thanks for the headsup | 09:53 |
| ← cedricv left | 09:54 |
|
jkp
| i went wrong because i saw that git-daemon had not been installed in bin and copied it there | 09:54 |
|
| using it the way you suggested works great | 09:54 |
|
doener
| jkp: ah, so running git-daemon directly failed, but "git daemon" works, right? | 09:54 |
| → hal_line2 joined | 09:54 |
|
jkp
| y | 09:55 |
|
doener
| ok | 09:55 |
|
gonzojive
| broonie: thanks, meld is splendid | 09:56 |
| → lu_zero_ joined | 09:56 |
|
charon
| doener: ah, thanks. i tried blaming with -M5 -C5 -C5 -C5 as you suggested in that mail, and now the numbers are more reasonable. weird that blame -M would miss what diff (without any -M/-C) found... | 09:57 |
| → quoin joined | 09:58 |
|
doener
| charon: well, 5 as the limit might be a bit too low, finding idiotic "copies" like "int i;" | 09:58 |
|
| charon: but the -C -C -C might make a difference, as it looks at "everything" to find copies. | 09:59 |
| → mcdebugger joined | 10:00 |
|
charon
| doener: OTOH diff shouldn't have found these copies either, and used a "creation" type of diff | 10:00 |
| → quoin- joined | 10:02 |
| ← halfline_ left | 10:02 |
|
doener
| charon: yep, the plain -M mode should (according to my totally unknowing assessment) always blame the same or less lines to an author than what "git log -p --author=foo | grep -c ^+" reports | 10:02 |
|
charon
| well, point is, it blames far more. | 10:02 |
|
| (on the order of a factor of two as many) | 10:02 |
|
doener
| charon: yeah, that was meant as an agreement, saying "Your results are weird" | 10:03 |
|
charon
| ok :) | 10:03 |
|
doener
| unfortunately, I'm totally clueless about the blaming code | 10:04 |
| → chris2 joined | 10:05 |
| ← Q| left | 10:06 |
|
stdorb
| b0e450df (Canada 1999-06-30 1) everything | 10:07 |
| ← halfline2 left | 10:07 |
| → cemerick joined | 10:09 |
| galderz → galderz_brb | 10:10 |
| → hal_lin_2 joined | 10:13 |
| → Q| joined | 10:13 |
| ← hal_line2 left | 10:13 |
| ← Fullmoon left | 10:15 |
| ← justin-george left | 10:16 |
| → joeytwiddle joined | 10:17 |
| → Fullmoon joined | 10:17 |
| [Po]lentino → [Po]lentino|away | 10:19 |
| → icwiener joined | 10:20 |
| ← cemerick left | 10:22 |
|
doener
| charon: that git:// url from your mail gets me a "Connection refused" | 10:27 |
|
charon
| hmph | 10:28 |
| ← quoin left | 10:29 |
| → naeu joined | 10:29 |
|
charon
| doener: thanks for pointing that out. seems there's some iptables issue, but i'll have to defer until after lunchtime | 10:30 |
| → aliceinwire joined | 10:31 |
| → sitaram joined | 10:32 |
| → Adlai joined | 10:32 |
| → mutable joined | 10:33 |
| ← _Vi left | 10:35 |
| → psynaptic joined | 10:35 |
| → _phil2974 joined | 10:37 |
| → relix joined | 10:37 |
| → WinterWeaver joined | 10:38 |
| → klbate joined | 10:39 |
|
WinterWeaver
| hi all... a colleague and I are working on a project. I've been committing and pushing changes to our public repo all weekend, and he's dont the same. Yet everytime we pull, we are not getting each other's changes. Why is this? | 10:40 |
| ← eletuchy left | 10:40 |
|
David-T
| WinterWeaver: no idea, but i suggest you look at what's happening in your "public repo" for clues... | 10:43 |
|
syd_
| and check your remotes.. | 10:43 |
|
WinterWeaver
| unfortunately the guy that manages the public repo is not availablt at this time :( | 10:43 |
|
| syd_: what exactly do you mean by "check your remotes" ? | 10:44 |
|
David-T
| well, i guess check that you're not pushing to different branches | 10:44 |
|
broonie
| Or different repositories. | 10:44 |
|
sitaram
| WinterWeaver: compare hashes from "git branch -v" and "git ls-remote origin" -- may help | 10:44 |
|
WinterWeaver
| thanks | 10:44 |
| ← khmarbaise left | 10:47 |
| ← ntoll left | 10:50 |
| ← aliceinwire left | 10:51 |
| ← calebr left | 10:51 |
| ← jinzhu left | 10:51 |
| ← hyperair left | 10:58 |
|
WinterWeaver
| ok, he has 2 remotes, I have only one | 10:58 |
| → paulp joined | 10:59 |
|
mutable
| Hello. Is it possible to `export' subtree to some location? I've already asked here similar question but I forgot to save log :(. | 10:59 |
|
paulp
| would anyone happen to know where github stores the info that a repo was forked at creation (thus the "fork of foo/bar" message on its main page) and whether this can be altered/deleted without recreating the repo? | 10:59 |
|
mutable
| I need to update test installation but I don't want to export whole tree | 11:00 |
| → ntoll joined | 11:02 |
|
wereHamster
| mutable: it seems as you should be able to git archive any tree, so find out which tree corresponds with your subdirectory and export that | 11:02 |
| → khmarbaise joined | 11:03 |
|
mutable
| wereHamster: yeah, that's it, thank you | 11:03 |
|
wereHamster
| or even easier: git archive HEAD:<subdirectory> | 11:03 |
| ← khmarbaise left | 11:07 |
| → froschi joined | 11:07 |
| ← _phil2974 left | 11:08 |
| → naith joined | 11:10 |
| → klbate_ joined | 11:11 |
| → cemerick joined | 11:15 |
| → gele joined | 11:22 |
| → _patton joined | 11:23 |
| → sea-gull joined | 11:23 |
| ← klbate left | 11:25 |
| ← gele left | 11:28 |
|
charon
| doener: turns out there's some switch-level filtering in place that i'll have to wait for tech support to change. you can use git://thomasrast.ch/domjudge.git in the meantime | 11:29 |
| → killerchicken_ joined | 11:31 |
|
killerchicken_
| hey, how can I selectively add stuff to be staged for a new file? I don't want to add the entire file in the first commit. | 11:32 |
| → UUncia joined | 11:32 |
|
killerchicken_
| My usual method of doing this (git add -p) fails me here | 11:32 |
|
doener
| killerchicken_: add -p also has (e)dit mode, where you can edit the patch in your editor | 11:33 |
|
| killerchicken_: and in "git gui", you can add single lines to the index | 11:33 |
|
charon
| in other news, git@vger and the @ethz.ch main mailserver aren't getting along with each other any more after said tech support also saw fit to install some new version of MS exchange... | 11:33 |
| → hyperair joined | 11:33 |
| [Po]lentino|away → [Po]lentino | 11:33 |
|
killerchicken_
| doener: well, I did this: | 11:33 |
| ← klbate_ left | 11:34 |
|
killerchicken_
| git add -p lib/thandy/bt_compat.py | 11:34 |
|
| No changes. | 11:34 |
|
| was all I got | 11:34 |
|
| I would love to use the edit mode | 11:34 |
| → gele joined | 11:34 |
|
charon
| killerchicken_: first 'git add -N $file' | 11:34 |
|
killerchicken_
| that's what my plan was, actually. | 11:34 |
| gele → klbate | 11:35 |
|
charon
| so that it looks like an addition of all the lines in the file, instead of a creation of a file. | 11:35 |
|
killerchicken_
| heh. | 11:35 |
|
WinterWeaver
| my colleague and I both work on the same remote repo. I have the url starting as, ssh:// he has, git+shh:// will this affect he's permissions etc? | 11:35 |
|
killerchicken_
| nice | 11:35 |
|
| hrm. /me forgot how to remove stuff from the staging area. Does anyone have a hint? *hides in shame* | 11:36 |
|
wereHamster
| killerchicken_: git status | 11:36 |
|
killerchicken_
| was it rm --cached? | 11:36 |
|
| hah | 11:36 |
|
| thanks Weiss | 11:36 |
|
| wereHamster* | 11:36 |
| → gwoo joined | 11:36 |
| ← WildPikachu left | 11:36 |
| ← roop left | 11:37 |
|
killerchicken_
| awesome. Big thanks, charon and wereHamster. | 11:38 |
| galderz_brb → galderz | 11:38 |
| → roop joined | 11:38 |
| → msafi joined | 11:40 |
| → ab3 joined | 11:41 |
|
msafi
| Is git an overkill for a single developer, is there a simpler versioning system? | 11:41 |
|
drizzd
| I use git solo all the time. I wouldn't trade it for any other system. | 11:41 |
|
phako
| I'd say choose whatever fits you best | 11:42 |
|
Chaser
| msafi, does nt matter if its overkill or not, no other vcs provides reliability of your repo data as git afaik | 11:42 |
|
zomg
| msafi: I'd say git is much simpler than some alternatives | 11:43 |
|
| for one you don't need a server to use git | 11:43 |
|
Raydiation
| hi i got a folder on a webserver which id like to manage with git | 11:44 |
|
| can i declare that folder with all existing data as git repo? | 11:44 |
|
msafi
| Anyone use git with Zend Studio I can PM? | 11:45 |
|
cehteh
| Raydiation: yes, git init it and commit all stuff | 11:45 |
|
Raydiation
| cehteh: ty | 11:46 |
|
cehteh
| Raydiation: but in case you want to push updates there, read the documentation about pushing to non bare repos .. that needs some git-fu | 11:46 |
|
zomg
| msafi: not sure if Zend Studio has anything to do with Git =) Last time I checked they didn't even provide Git integration | 11:46 |
| ← dodo_the_last left | 11:46 |
| ← ab3 left | 11:46 |
| → Fullmoon_ joined | 11:46 |
| ← Fullmoon left | 11:47 |
| → ab3 joined | 11:47 |
|
doener
| charon: git log -p doc/logos/DOMjudgelogo.pdf | 11:47 |
|
| charon: vs. git blame doc/logos/DOMjudgelogo.pdf | 11:47 |
|
cehteh
| !non-bare | 11:47 |
| ← Fullmoon_ left | 11:47 |
|
doener
| faq non-bare it is | 11:47 |
|
Gitbot
| doener: Pushing to non-bare repositories is discouraged. See http://git.or.cz/gitwiki/GitFaq#non-bare | 11:47 |
|
cehteh
| .. i never understand how this bots work :) | 11:47 |
|
| but nice to have doener-as-bot-proxy :) | 11:47 |
| → dodo_the_last joined | 11:48 |
|
msafi
| zomg, but there got to be a way to integrate it because Zend Studio is basically an Eclipse IDE | 11:49 |
| → knittl joined | 11:49 |
|
zomg
| msafi: you can probably just get an Eclipse Git plugin | 11:49 |
|
| if you use the Eclipse version of ZS | 11:50 |
|
charon
| doener: and same for other binaries like bin/sh-static, apparently. *sigh3 | 11:50 |
|
Raydiation
| do i have to do that on my local pc or on the server: git config --global user.name "Your Name Comes Here" | 11:52 |
|
charon
| doener: and of course the upstream has the same binaries under other names, so with enough -C it finds that instead | 11:53 |
|
| charon bangs his head against the table | 11:53 |
| → tiny joined | 11:54 |
|
doener
| at least we got it sorted out | 11:54 |
|
Raydiation
| this tutorial is kinda hard to understand if youre drunk | 11:54 |
|
stdorb
| then, don't be drunk | 11:55 |
| ← naeu left | 11:57 |
| ← hyperair left | 11:57 |
| → Hendu joined | 11:57 |
| → klbate_ joined | 11:57 |
| → wu-lee joined | 11:58 |
| → Jinzhu joined | 11:59 |
| → hyperair joined | 11:59 |
| ← HG` left | 12:00 |
|
msafi
| Since Zend Studio comes with built-in support for SVN, I'll just get started with that. Thanks for the advice anyway, bye! | 12:01 |
| ← msafi left | 12:01 |
| Guest36462 → Aikawa | 12:01 |
| → HG` joined | 12:01 |
| ← paulp left | 12:03 |
| → fpcfan joined | 12:03 |
|
tiny
| Any estimates on how long will "fsck --strict --full" take on a current linux kernel tree? | 12:06 |
|
zomg
| Depends on how fast your PC is ;> | 12:06 |
|
| (no idea) | 12:06 |
|
| (I don't even know what that does) | 12:06 |
| → iron joined | 12:07 |
|
tiny
| Well I have a broken repo so I thought I ran fsck on it first | 12:07 |
| → qrush joined | 12:08 |
|
shruggar
| what are the symptoms of brokenness? | 12:08 |
|
tiny
| and it's doing it for about 10 minutes taking all of CPU time | 12:08 |
| ← ben_h left | 12:09 |
| → qrush__ joined | 12:09 |
|
tiny
| shruggar: git gc: error: Could not read 3c2e4b82ffa4827e65c4e7d5a2e6d2bc299c4257, fatal: bad tree object 3c2e4b82ffa4827e65c4e7d5a2e6d2bc299c4257, error: failed to run repack | 12:09 |
| → ben_h joined | 12:09 |
|
doener
| tiny: which git version? | 12:09 |
|
tiny
| 1.6.2.4 | 12:10 |
|
shruggar
| have you checked the specific object? | 12:10 |
|
| (ie: it could be just that one, though fsck is probably a good idea anyway) | 12:10 |
|
tiny
| shruggar: not yet. Let me describe what I wan't to achieve. | 12:10 |
|
_patton
| If I have a repository which pulls say the dev branch from another bare repository, will the branch name stay as dev once I've pulled it or will it automatically be renamed master? For me it seems that it is being renamed master... | 12:11 |
| → markelikalderon joined | 12:11 |
|
tiny
| I have a local repo from which now broken repo was cloned. I lost data on my repo and backup was old. | 12:11 |
|
| New data is in the broken repo from which I can't "push" anymore. | 12:11 |
|
shruggar
| _patton, what did you do to set up the remote tracking branch, and what are you doing to pull? | 12:11 |
|
tiny
| I would like to keep commits | 12:12 |
|
| but first I need to fix it if possible | 12:12 |
|
shruggar
| what commands are working? can you dump a backup of the commits you want to keep with format-patch? | 12:13 |
| → gwoo_ joined | 12:13 |
|
drizzd
| _patton: if you do something like "git checkout -b master origin/dev", then "git checkout master; git pull" will pull from origin/dev. That does not mean that dev was renamed. It just means that master is tracking origin/dev. | 12:14 |
| ← klbate left | 12:14 |
|
doener
| tiny: real 6m3.986s | 12:14 |
|
| tiny: that's how long it took here | 12:14 |
|
| (the fsck) | 12:14 |
|
tiny
| shruggar: how would I do that? I work on a separate branch. I just pulled a current linux kernel. But I'm afraid merge will fail. | 12:15 |
|
_patton
| shruggar: I have set up a bare repository to act as a hub, then there is a post update hook which changes directory to the tracking repository and does a git pull hub dev | 12:15 |
|
tiny
| doener: I just aborted fsck. | 12:15 |
| → eletuchy joined | 12:15 |
|
tiny
| doener: with --full and --strict options? | 12:15 |
|
doener
| yep | 12:15 |
|
_patton
| drizzd: can I do a git pull on the tracking repository and pull in say all 3 branches and have them stay intact on the tracking repository. I tried doing this and the files from all three branches seemed to merge and create conflicts... | 12:16 |
| ← Sordran left | 12:16 |
| ← pencilo left | 12:16 |
| → pencilo joined | 12:17 |
|
drizzd
| _patton: you're doing it wrong. git pull is used to merge stuff and can only be used interactively. | 12:17 |
|
| if you simply want to propagate changes (without merging), use "git remote update" | 12:18 |
| ← gwoo left | 12:18 |
| ← froschi left | 12:18 |
| ← mithro left | 12:18 |
|
_patton
| drizzd: really, ok. I was using git pull in the post update hook. basically I want to use a hub with 3 branches for dev/ staging/ master/ and then pull these branches down into the separate folders for each version of the website | 12:19 |
|
tiny
| drizzd: yes but then: "git diff mybranch..master" reports all kind of stuff. | 12:19 |
| ← [Po]lentino left | 12:21 |
|
drizzd
| _patton: ok. You still cannot use git pull for that. If you really need a "hub", set up a mirror repository (see the --mirror options to clone or remote) and use git reset --hard to update your branches (note that will remove local changes, even committed ones). | 12:21 |
|
| tiny: are you talking to me? | 12:21 |
| ← qrush left | 12:22 |
| → qrush joined | 12:22 |
| ← __iron left | 12:22 |
|
tiny
| drizzd: sorry I thought you were referring to my problem with that propagation changes | 12:22 |
|
drizzd
| tiny: nope, I didn't pay attention to you, sorry :-) | 12:23 |
|
_patton
| drizzd: cheers, I'll give that a shot | 12:23 |
|
tiny
| :) | 12:23 |
|
drizzd
| _patton: there should be example hooks for things like that out there | 12:23 |
| ← Yewbacca left | 12:24 |
|
drizzd
| _patton: http://git.or.cz/gitwiki/GitFaq#Whywon.27tIseechangesintheremoterepoafter.22gitpush.22.3F | 12:24 |
| vals_ → tango_ | 12:25 |
| → cloudhead joined | 12:25 |
| ← neoeinstein left | 12:25 |
|
_patton
| drizzd: thanks, the examples I found used a bare "hub" repo, then the files on the web server had a git repository which were updated with a post-update hook on the bare repo which did a pull from the bare repo to update the files on the web server. | 12:25 |
|
| drizzd: there was also a post-commit hook on the files on the server so that when changes were made directly on the server they were pushed to the bare hub repository | 12:26 |
| → spaceonline joined | 12:27 |
| → neoeinstein joined | 12:27 |
|
drizzd
| _patton: it works if the upstream branches never change history, and if downstream branches do not change at all. | 12:29 |
|
| (because then git pull always results in a fast-forward merge) | 12:29 |
|
dsop
| Pieter: will there be a signed off option in gitx soon? | 12:30 |
| ← qrush left | 12:30 |
|
_patton
| drizzd: ok, cheers. I'm going to give it one last try, then I might just try using github and manually pulling down branches from the repo stored on github to each folder or something | 12:33 |
|
Pieter
| dsop: yes, it's already in the nightly | 12:33 |
| ← qrush__ left | 12:34 |
| ← TDJACR left | 12:37 |
| → kumbayo joined | 12:38 |
| → mithro joined | 12:40 |
| gwoo_ → gwoo | 12:41 |
| → TDJACR joined | 12:41 |
| → mw joined | 12:43 |
| ← wu-lee left | 12:43 |
| ← xenoterracide left | 12:44 |
| → xenoterracide joined | 12:45 |
| ← xenoterracide left | 12:45 |
| → xenoterracide joined | 12:46 |
| ← Tobin left | 12:47 |
| → Tobin joined | 12:48 |
| ← Tobin left | 12:48 |
| → cmarcelo joined | 12:48 |
| ← girishr left | 12:49 |
| → wu-lee joined | 12:50 |
| → lorandi joined | 12:51 |
| ← mcdebugger left | 12:51 |
| ← ia left | 12:51 |
| → aziz joined | 12:53 |
| → jrmuizel joined | 12:54 |
| ← mhoefli left | 12:54 |
| → piero joined | 12:55 |
|
piero
| hi everyone! I need to embed the git tag inside my C code. How can I do that? | 12:56 |
|
charon
| piero: man git-describe; and perhaps look at <HEAD:GIT-VERSION-GEN> | 12:56 |
|
piero
| e.g. If my tag is VERSION_1_0_0, there should be a string "VERSION_1_0_0" created at build-time | 12:56 |
|
Gitbot
| [git GIT-VERSION-GEN]: http://tinyurl.com/lowbne [blob] | 12:56 |
|
| piero: the git-describe manpage can be found at http://git.or.cz/man/git-describe | 12:56 |
| → Niamor joined | 12:57 |
|
spb
| the standard approach here is to have your C code include a header named something like version.h, which is generated by a shell script at build time | 12:57 |
|
piero
| thank you :-) I'll have a look! | 12:57 |
| → cilly joined | 12:59 |
| → ctusar joined | 13:02 |
| → boto joined | 13:02 |
| → MrRio joined | 13:04 |
|
Ilari
| And then maybe have a file that is used as default version if describe fails. | 13:04 |
|
piero
| I looked at the git-describe documentation. I couldn't find any way to grab the tag name directly from C code | 13:05 |
|
Ilari
| piero: Have makefile do it. | 13:06 |
| ← knittl left | 13:06 |
|
piero
| Ilari: thank you. I was investigating this solution, but I wanted to be sure that there's nothing similar to what happens e.g. in SVN, where you can get the version directly from your code | 13:07 |
|
| but the makefile solution is ok, thank you again | 13:07 |
| → ia joined | 13:08 |
| ← agib left | 13:09 |
|
Ilari
| piero: There are keywords, but the only that's not export-time-expanded is $id$, which is _BLOB_ ID. And there are many export-time-expanded ones (commit IDs, timestamps, names, etc) but sadly (unless this has recently changed), no keyword for describe output. | 13:10 |
|
| piero: Basically, any checkout-expanded keyword that depends on anything else than the checked out file itself would be disasterous to performance. | 13:12 |
|
MrRio
| hey, i'm using svn at the moment for web development, i'm switching to git, i've imported my svn repo into a git repo on my staging server, and my production server is a working copy checkout of my svn repo, can i remove the .svn files and make it into a live git repo without deleting everything and starting again? | 13:12 |
|
piero
| Ilari: yes I understand the problem | 13:12 |
|
Ilari
| MrRio: Why didn't you use git svn for the import? | 13:12 |
|
MrRio
| Ilari: I did, I'm just wondering how I deploy this to my production machine | 13:13 |
|
Ilari
| MrRio: There should not be .svn directories then... | 13:13 |
|
| MrRio: Any branches? Tags? Non-standard layout? Merges? | 13:14 |
| ← sprasanna left | 13:14 |
|
MrRio
| Ilari: The import is on my staging machine | 13:14 |
|
parasti
| your svn checkout is pretty much useless, you need to clone the converted repo | 13:14 |
| → sprasanna joined | 13:15 |
|
MrRio
| parasti: Can I clone the converted repo over the top of the live website? | 13:15 |
|
| parasti: trying to avoid downtime, i'll experiment with it in another directory before I do it to the live website of course | 13:15 |
|
Ilari
| MrRio: Hopefully you didn't do anything really stupid in import like not specifying layout when one should have... | 13:16 |
|
MrRio
| Ilari, standard layout, trunk, tags, branches, told the import about all that | 13:16 |
|
Ilari
| MrRio: Any merges? | 13:16 |
|
MrRio
| Ilari, yes, but pre svn 1.4, so not tracked merges as far as i understand | 13:17 |
| ← piero left | 13:18 |
|
Ilari
| MrRio: One could make them tracked at import time. And if the previous merge from A to B was unmarked merge and you try to merge further development of A to B, you are SOL. | 13:18 |
| → mm_202 joined | 13:19 |
|
Ilari
| MrRio: And oh, the absolutely worst thing in imports: Layout changes... | 13:20 |
|
MrRio
| Ilari: yeah, I imagine that's quite painful | 13:20 |
| → benn_d joined | 13:20 |
|
MrRio
| Ilari: I'm half tempted to leave the history for the project where it is, and make a fresh git repo from the live site | 13:21 |
| → hydrogen joined | 13:21 |
|
Ilari
| MrRio: The basic idea of marking merges is: Find merge commits, find the merged tips and mark merged tips as parents of merge commit using grafts. Then use filter-branch to make it permanent. | 13:22 |
| → mw_ joined | 13:22 |
| ← quoin- left | 13:22 |
| ← mw left | 13:23 |
|
Ilari
| MrRio: And the nastiest part is: Finding tip of what was merged in. | 13:24 |
|
MrRio
| Ilari: Hmm, yeah | 13:24 |
|
| Ilari: I may just start afresh in git | 13:24 |
|
fpcfan
| Ilari: what is the advantage of finding the merges? | 13:25 |
|
Ilari
| Gives proper history "as it happened" and merging further development works right. | 13:26 |
|
| MrRio: If you start afresh by reimporting you can only bring one branch (if you bring more, try to merge them back and you are SOL) | 13:26 |
|
| MrRio: Actually, only one version of one branch. | 13:27 |
|
MrRio
| Ilari: Yeah that's fine, this project is currently at a maintenance level of development, with some major changes coming in the next few months | 13:27 |
| → fargiola` joined | 13:27 |
|
Ilari
| MrRio: Maybe archive the git-svn import in case it proves useful. | 13:28 |
|
MrRio
| Ilari: good plan | 13:28 |
| → Bass10 joined | 13:28 |
| → Ryback_ joined | 13:28 |
| ← wolog left | 13:30 |
| → wolog_ joined | 13:30 |
|
Ilari
| Then there is SVN braindamage like "partial branches" that git svn might not be able to handle properly at all. | 13:31 |
| ← danl left | 13:31 |
| ← hyperair left | 13:32 |
| ← wolog_ left | 13:32 |
| → wolog__ joined | 13:32 |
| ← fargiolas left | 13:32 |
| fargiola` → fargiolas | 13:32 |
| → hyperair joined | 13:33 |
| ← mw_ left | 13:33 |
| hal_lin_2 → halfline | 13:35 |
| → khmarbaise joined | 13:35 |
| → mnick joined | 13:35 |
| ← agile left | 13:36 |
|
Raydiation
| can i extend the information of registered users? | 13:36 |
|
| add a jabber adress for instance | 13:36 |
|
| plus can i share this information across applications? | 13:37 |
| → bremner_ joined | 13:38 |
| ← NET||abuse left | 13:39 |
|
Ilari
| Raydiation: Err? What that has to do with git? | 13:39 |
| ← obiwan_chinobi left | 13:39 |
|
Raydiation
| Ilari: ou wrong channel :) | 13:39 |
|
tiny
| Hello ... having problems with git repo while optimizing. Can't push either. http://pastebin.com/d49f7f431 | 13:39 |
| ← Raydiation left | 13:40 |
| ← bremner_ left | 13:40 |
| → rb____ joined | 13:41 |
|
Ilari
| tiny: Does 'git rev-list --all --objects' complain? | 13:41 |
|
tiny
| Ilari: yes | 13:41 |
|
| Ilari: error: Could not read 3c2e4b82ffa4827e65c4e7d5a2e6d2bc299c4257 | 13:42 |
|
| fatal: bad tree object 3c2e4b82ffa4827e65c4e7d5a2e6d2bc299c4257 | 13:42 |
| → AkumaStreak joined | 13:42 |
| ← shd_ left | 13:42 |
| ← khmarbaise left | 13:42 |
| ← hydrogen left | 13:43 |
|
tiny
| If there's a way to fix this I'd like to do it. If not I would like to start with a fresh pull and apply a patch of my branch. If so ... is it possible to keep commit history? | 13:43 |
|
Ilari
| tiny: Does 'git rev-list --all --objects | grep "3c2e4b82ffa4827e65c4e7d5a2e6d2bc299c4257"' yield anything? | 13:43 |
|
tiny
| Ilari: yes the above two lines ... | 13:44 |
| ← psynaptic left | 13:45 |
| → shd joined | 13:45 |
|
Ilari
| tiny: Well, if that object is part of upstream history, its possible to fix the repo. If not, the local changesets might not be recoverable... | 13:45 |
|
| tiny: Maybe run 'git fsck --full' to see if there's more than that one thing wrong. | 13:46 |
| → Adlai` joined | 13:46 |
| ← Adlai left | 13:47 |
|
tiny
| Ilari: ok ... this will take a while | 13:47 |
|
shruggar
| tiny: as I said, use git format-patch to make a patch which keeps commit history | 13:47 |
|
tiny
| shruggar: thank you | 13:47 |
|
Ilari
| tiny: The ability to preserve commit history would imply ability to fix the repo. | 13:47 |
| → froschi joined | 13:47 |
|
shruggar
| depends on how much is broken | 13:47 |
| → MisterN joined | 13:47 |
| → ryandotsmith joined | 13:47 |
|
tiny
| exactly | 13:47 |
| → [Po]lentino joined | 13:50 |
| ← dodo_the_last left | 13:52 |
| → hugoxrosa joined | 13:52 |
| → cannonball joined | 13:52 |
| Adlai` → Adlai | 13:53 |
| → zmbmartin joined | 13:55 |
| → AkumaStreak_ joined | 13:55 |
| offby1` → offby1 | 13:55 |
| ← klbate_ left | 13:56 |
| ← psankar left | 13:56 |
| → drizzd_ joined | 13:56 |
|
zmbmartin
| If using git for websites that I am working on is it better to ignore image files? | 13:56 |
| ← cilly left | 13:57 |
|
killerchicken_
| zmbmartin: imho, nope. It doesn't really make sense not to version them | 13:57 |
| → broheem joined | 13:57 |
|
hobo
| many sites keep media on a separate server, so they'd be under their own repository | 13:57 |
| → bcardarella joined | 13:58 |
|
dirker
| hi all, how can I get a list of commits no branch or tag is pointing to currently | 13:58 |
|
| commits lost in space so to say :-) | 13:58 |
|
zmbmartin
| ok I have been so far but the sites I have under git right now are fairly small. thanks killerchicken_ | 13:58 |
|
killerchicken_
| zmbmartin: I'd create a .gitattributes entry | 13:59 |
|
| and then not worry about them | 13:59 |
| → cilly joined | 13:59 |
| → RaceCondition joined | 13:59 |
|
parasti
| dirker: man git-fsck | 13:59 |
|
Gitbot
| dirker: the git-fsck manpage can be found at http://git.or.cz/man/git-fsck | 13:59 |
|
dirker
| parasti: thanks | 14:00 |
|
RaceCondition
| I'm trying to decide whether I should set pull --rebase as the default setting for all developers... might it cause issues that won't occur with regular pull? | 14:00 |
|
| i.e. something that other devs might have to deal with that they wouldn't with pull --no-rebase? | 14:00 |
|
hobo
| 10:00 < dirker> parasti: thanks | 14:00 |
|
| 10:00 < RaceCondition> I'm trying to decide whether I should set pull --rebase as the default setting for all developers... might it cause issues that won't occur with regular pull? | 14:00 |
|
| 10:00 < RaceCondition> i.e. something that other devs might have to deal with that they wouldn't with pull --no-rebase? | 14:01 |
| → coachz joined | 14:01 |
|
hobo
| Crap sorry about that, I hate putty >_> | 14:01 |
|
| and windows for that matter | 14:01 |
|
coachz
| putty rocks :-) | 14:01 |
| → intripoon joined | 14:02 |
|
Grum
| how would you even set --rebase as the default setting? | 14:02 |
|
| ugh google power -- git config branch.autosetuprebase always | 14:02 |
|
zmbmartin
| killerchicken_: I will have to read up on .gitattributes, as I am not familiar with it yet. Thanks | 14:02 |
| → name joined | 14:02 |
| → spearce joined | 14:03 |
|
sitaram
| man git-config and look for branch.autosetuprebase | 14:03 |
|
Gitbot
| sitaram: the git-config manpage can be found at http://git.or.cz/man/git-config | 14:03 |
| → sprasanna_ joined | 14:03 |
| ← ctusar left | 14:04 |
| → duncanmv joined | 14:05 |
| ← drizzd left | 14:06 |
|
duncanmv
| guys, I have repoA.git/ with some files and history. I have repoB.git with some files. Is it possible to take all repoA history and put it into repoB/subdir directory? | 14:06 |
|
wereHamster
| duncanmv: google 'git subtree merge' | 14:06 |
| → khmarbaise joined | 14:06 |
| ← roop left | 14:06 |
|
duncanmv
| wereHamster: thanks, I will look :-) | 14:07 |
| → offby1` joined | 14:07 |
|
wereHamster
| duncanmv: the other possibility is to use git submodules | 14:07 |
| ← Octalot left | 14:08 |
|
sitaram
| duncanmv: is this onetime, or do you expect to keep making changes to repoA both in the original place *and* in the repoB/subdir | 14:09 |
|
| if its onetime, dont bother with submodules | 14:09 |
|
duncanmv
| sitaram: no, we want to make a one time import and delete repoA | 14:09 |
| ← stuffcor1se left | 14:09 |
|
sitaram
| duncanmv: yeah then submodules dont buy you anything; you need subtree merge | 14:09 |
|
duncanmv
| I would never bother with submodules, they are a broken feature IMO | 14:09 |
| ← cilly left | 14:09 |
| → stuffcorpse joined | 14:10 |
| → cilly joined | 14:10 |
|
sitaram
| duncanmv: http://progit.org/book/ch6-7.html is nice | 14:10 |
|
| sitaram agrees about submodules -- could never understand them anyway :) | 14:10 |
| ← AkumaStreak left | 14:10 |
|
sitaram
| duncanmv: you'll like the first line of that page :) | 14:10 |
|
RaceCondition
| can I tell pull --rebase to fall back to --no-rebase/merge if any problems would occur that wouldn't occur with merge? | 14:11 |
|
| or is this the default behavior even? | 14:11 |
| → loincloth joined | 14:12 |
| ← sprasanna left | 14:12 |
| ← ph^ left | 14:13 |
| → crack_head joined | 14:14 |
| → ctusar_ joined | 14:15 |
|
offby1`
| no idea | 14:15 |
| → bugfux joined | 14:16 |
|
zmbmartin
| I am trying to learn git but am having a problem | 14:16 |
|
| I git rm a file but I only wanted it ignored | 14:17 |
|
| I added it to the ignore list but now it wont show in the branch that I want it to | 14:17 |
|
offby1`
| what do you mean by "won't show"? | 14:18 |
| ← offby1 left | 14:18 |
| offby1` → offby1 | 14:18 |
|
zmbmartin
| I have a settings file that changes depending on the comp so I did want it tracked | 14:18 |
|
| problem is I made a branch and removed it from the branch so it shows in the master but not in the branch | 14:19 |
| → doM^ joined | 14:19 |
|
doM^
| hi | 14:19 |
| → almostautomated joined | 14:19 |
|
offby1
| zmbmartin: so add it back to the branch. | 14:19 |
|
zmbmartin
| I did add it back but when I switch branches it goes away again when I go back to that branch | 14:19 |
|
doM^
| I was searching a way to only view the file under the section 'Changed but not updated' in git status | 14:20 |
|
zmbmartin
| I want the file in there but I want it ignored | 14:20 |
|
wereHamster
| zmbmartin: if a file is in one branch but not the other, git will delete it when switching from the first branch to the second | 14:21 |
|
coachz
| does .gitignore effect all branches or just the current one ? | 14:21 |
| → Octalot joined | 14:21 |
|
wereHamster
| coachz: just the current one, .git/info/excludes is global for the whole repository | 14:21 |
|
coachz
| nice | 14:21 |
| → agile joined | 14:22 |
| ← tiny left | 14:22 |
|
zmbmartin
| wereHamster: that is the problem I am having. so if I have it on the gitignore it will still track the file just not the changes? | 14:22 |
| trapni^3 → trapni | 14:22 |
|
wereHamster
| zmbmartin: no, gitignore simply causes git to ignore the files (not show in git status, ignore in git add -a ietc) | 14:23 |
| → petercoulton joined | 14:23 |
|
wereHamster
| also, gitignore has no effect on already tracked files | 14:23 |
| → tedoc2000 joined | 14:24 |
|
wereHamster
| maybe you want git update-index --assume-unchanged? | 14:24 |
| → agib joined | 14:25 |
|
neoeinstein
| If it's already in the index, it will still track it, even if it's in .gitignore. | 14:26 |
|
| You can use a fun hack via git update-index --assume-unchanged to ignore local modifications of files in your index. | 14:26 |
|
| But it's a brittle hack at times. | 14:26 |
| → Turias joined | 14:27 |
| ← krisfremen left | 14:28 |
|
zmbmartin
| ok I think I am starting to screw things up I just got this --> ! [rejected] master -> master (non-fast forward) | 14:28 |
|
wereHamster
| zmbmartin: faq non-ff | 14:28 |
|
Gitbot
| zmbmartin: Your push would lose changes on the remote. See http://git.or.cz/gitwiki/GitFaq#non-ff | 14:28 |
|
wereHamster
| zmbmartin: did you use git rebase or git commit --amend? | 14:28 |
| ← cilly left | 14:29 |
| → glauber_ joined | 14:29 |
| → cilly joined | 14:32 |
| → ericindc joined | 14:32 |
| → mw44118 joined | 14:33 |
| ← ryandotsmith left | 14:34 |
|
mw44118
| How do I see what bar.py looks like in branch foo? | 14:34 |
| Adlai → Adlai-AWAY | 14:34 |
|
zmbmartin
| so if I was tracking the settings.py file but no longer want that tracked how do I had git honor when I add it to gitignore but not remove it from the directory | 14:34 |
|
wereHamster
| mw44118: git show foo:bar.py | 14:34 |
|
PerlJam
| git show foo:bar.py | 14:34 |
| ← aatanasov left | 14:34 |
| ← hyperair left | 14:35 |
|
zmbmartin
| I added the settings.py to the ignore file but still when I make changes to it git status is showing it as modified | 14:35 |
|
wereHamster
| zmbmartin: you have to tell git to stop tracking it, otherwise gitignore has no effect: git rm --cached settings.py; git commit; | 14:35 |
| → hyperair joined | 14:35 |
|
zmbmartin
| so that is what I did wrong before, the --cached flag. | 14:36 |
|
wereHamster
| git rm --cached removes the file from the index, but leaves it in the working tree | 14:37 |
|
mw44118
| thanks! | 14:38 |
| ← broheem left | 14:39 |
|
zmbmartin
| Thanks very much wereHamster | 14:39 |
|
wwalker
| is there a way to tell git to always ignore local changes to a file? such as config/db_data.conf . I want to keep that file in the git master, but never want to commit, let alone push, changes to it. | 14:40 |
|
stepnem
| Is it possible to know if there are any remote changes to pull and act upon it? I'm currently doing 'git pull && git whatchanged -p', but I'd like to abort the command if there are no new commits sice the last pull | 14:41 |
|
| wwalker: if I understand you correctly, you don't in fact want to version control the file? Then just use the ignore facilities | 14:43 |
|
wwalker
| stepnem: no, I want to keep that file in the git master | 14:44 |
|
stepnem
| wwalker: what do you mean? | 14:44 |
|
wwalker
| but most devs' local changes should never be committed. | 14:44 |
|
stepnem
| if you're never going to commit it, what's the point of tracking it? | 14:44 |
|
wwalker
| stepnem: the file has 30 config values in it. 4 of them are changed to make a dev's local system tests work. | 14:45 |
|
Grum
| so you mean: config/db_data.conf.sample and everyone having their own version? | 14:45 |
| ← khmarbaise left | 14:45 |
| → tiny joined | 14:45 |
|
Grum
| and echo "config/db_data.conf" >> .gitignore | 14:45 |
|
wwalker
| Grum: that is one way to handle it and works for some cases. There are also times when one changes a local file for expediency (like to skip 4300 slow tests in the test suite) but don't ever want those local changes commit'd / push'd | 14:46 |
|
Grum
| then dont commit them? :D | 14:47 |
| ← crack_head left | 14:47 |
|
wwalker
| Grum: I use that a lot (default behavior in a rails app). | 14:47 |
| ← prusnak left | 14:47 |
|
wwalker
| It's a royal pain when there are 300 files changed to not be able to say commit -a | 14:47 |
|
tiny
| Hi again. Is there a way to tell git to accept patches that will not get upstream without conflicts? I'm working on a separate branch and there are conflicts if I edit files that are part of official repo. | 14:47 |
|
Grum
| blame the framework then for changing 300 files per tiny commit :( | 14:48 |
|
wwalker
| because of 1 or 2 files with local, non committable changes. | 14:48 |
|
| Grum: back to my question. can it be done? I'm slowly working to change the source base, but can't do that immediately (it's currently svn with 80 very active externals...<shiver>) | 14:49 |
|
Grum
| you want git add . to skip files that are tracked? | 14:50 |
|
| and it has to guess which ones by itself? | 14:50 |
| ← tedoc2000 left | 14:50 |
|
wwalker
| Grum: I'm asking if I can tell it which ones to skip, without removing them from the master on my next push. .gitignore only controls new files | 14:51 |
| ← hobodave left | 14:51 |
|
Grum
| .gitignore works on untracked files | 14:51 |
|
| and well, you can just 'unadd them' :) | 14:51 |
|
Ilari
| tiny: Of course, it's good idea to take a backup of corrupt repo before trying to do more than just take a peek at what's corrupted. | 14:51 |
|
wwalker
| Grum: if I "unadd" them will that affect the master in any way on my next push? | 14:51 |
|
Grum
| you can just manually unstage the items so they do not get recorded in the commit you are making | 14:52 |
|
wwalker
| is "unadd" == "git rm --cached config/with_local_only_changes" | 14:53 |
|
Grum
| so yes, if they are not in the commit they will not be pushed | 14:53 |
|
| nonono | 14:53 |
|
| unadd would be git reset HEAD <file> | 14:53 |
|
tiny
| Ilari: did backup, I have the history of changes (patches), started fresh with git clone, applying patches now ... but I hate the conflicts. | 14:53 |
|
wwalker
| Grum: ok,...reads man page | 14:53 |
|
Grum
| git rm --cached will remove the file from git but leave it on disk | 14:54 |
| → tfarina joined | 14:54 |
|
Grum
| ea it alters the staging area not to 'track' the file anymore | 14:54 |
| → crack_head joined | 14:54 |
|
Grum
| git reset HEAD <file> just tells the staging area that for the next commit you should take the file as it is in HEAD | 14:55 |
|
wwalker
| Grum: so I would run "git reset --mixed config/with_local_only_changes" before every commit? | 14:55 |
|
Grum
| no | 14:55 |
|
wwalker
| Grum: so I would run "git reset --mixed HEAD config/with_local_only_changes" before every commit? | 14:55 |
|
Grum
| you run get reset HEAD <file> | 14:55 |
|
| *git -- you dont have to use --mixed | 14:55 |
|
wwalker
| man page sounds like if I run "git reset HEAD" it will change the working tree file. | 14:56 |
| → naeu joined | 14:56 |
|
Grum
| no, git checkout HEAD <file> does that | 14:56 |
|
| from git status: | 14:57 |
|
| # (use "git reset HEAD <file>..." to unstage) | 14:57 |
|
| # (use "git checkout -- <file>..." to discard changes in working directory) | 14:57 |
| ← sde_antrix1 left | 14:58 |
| ← cilly left | 14:59 |
| → usomaki joined | 14:59 |
|
stepnem
| any idea on my question above? it would be nice if git-pull returned different exit status depending on whether it actually pulled something or not; or is there some other way short of parsing the text output? | 14:59 |
|
wwalker
| Grum: thanks. my git status doesn't output anything like that. what options did you use? | 14:59 |
| ← usomaki left | 14:59 |
| ← kpreid_ left | 14:59 |
|
Grum
| it does O.o | 15:00 |
| → kpreid_ joined | 15:00 |
| → tedoc2000 joined | 15:00 |
|
Grum
| mkdir test; cd test; git init; echo a > x; git add .; git commit -m"first"; echo aa >> x; git status; git add .; git status | 15:00 |
| → cilly joined | 15:01 |
| ← AkumaStreak_ left | 15:02 |
|
wwalker
| Grum: I was in a simple local working tree without any modified files (the tree in question is on the desktop at work) I see it now. | 15:02 |
| ← DrNick left | 15:03 |
| → RobertMeta joined | 15:04 |
| ← tim_jenssen left | 15:04 |
|
Grum
| i have to say, if 300 files change in a single commit something is odd | 15:04 |
|
duncanmv
| sitaram: uhm, works nice in a subdir, however I get errors on subtree merge in a prefix like subdir1/subdir2 | 15:04 |
|
mm_202
| is there a way to copy a file from a remote branch, but without checking it out first? | 15:05 |
|
Grum
| mm_202: try git archive perhaps? | 15:05 |
|
wwalker
| Grum: the code base is 1.5GB I suspect it can be shrunk by 3X. That refactoring will often require changes across multiple files. 300, probably very seldom. More than I want to type on the command line, very often. | 15:06 |
|
mm_202
| Grum: okay, I'll check it out. Thanks! | 15:06 |
|
Grum
| wwalker: what on earth is 1.5gb worth of code? O.o | 15:06 |
|
| you making google orso? | 15:07 |
| ← cilly left | 15:07 |
|
wwalker
| but it sounds like I can add a pre-commit and post-commit hook scripts to git reset the few files that should always be ignored. | 15:07 |
|
Grum
| or just unadd them manually? | 15:07 |
|
| or fix your setup by making the config files actually not tracked ? | 15:08 |
|
| or by providing ways of pointing at different configs conveniently? | 15:08 |
|
wwalker
| think like an enterprisy wireshark. it's not really like that, but similar. includes everything from kernel drivers to java report graphers. | 15:08 |
|
| like I said Grum, LOTS of refactoring on the horizon.... | 15:08 |
|
duncanmv
| anyone knows how to do subtree merge with a two level prefix? | 15:09 |
|
wwalker
| Grum: config files was a bad example. lots of these will be local modifications to test suites. | 15:09 |
|
Grum
| wwalker: what kind of project is it? | 15:09 |
|
wwalker
| one with an NDA :( | 15:10 |
|
Grum
| 1.5gb worth of code? O.o | 15:10 |
| → cilly joined | 15:10 |
| ← cilly left | 15:11 |
|
wwalker
| Grum: makes me dizzy too. | 15:11 |
|
sitaram
| duncanmv: sorry just came back "to life"; what sort of errors (I admit I haven't actually tried it or used it on a real case; just hapened to read that chapter today) | 15:11 |
|
Grum
| wwalker: its bigger than the biggest thing i've seen sofar :D | 15:12 |
|
duncanmv
| sitaram: solved, I found out that prefix needs to be empty ;-) | 15:12 |
|
sitaram
| aah! | 15:12 |
|
wwalker
| Grum: biggest project source tree I've worked on too. and I've been in the game for 20+ | 15:13 |
| ← jhelwig left | 15:13 |
|
Grum
| wwalker: and its all RoR ? O.o | 15:13 |
| → Sho_ joined | 15:14 |
| → DrNick joined | 15:14 |
|
wwalker
| no. python, C, C++, Java, ruby, and RoR | 15:14 |
| → cilly joined | 15:14 |
|
| sitaram didnt know RoR has been around long enough to collect COBOL-size software suites :) | 15:14 |
|
wwalker
| that I know of so far. | 15:14 |
|
sitaram
| aah | 15:14 |
|
Grum
| ehhe | 15:14 |
|
| and its all under a NDA? | 15:14 |
|
| meaning its not even connected to the internet? or 'yet to be displayed' ? :D | 15:15 |
|
wwalker
| RoR is slowly replacing the existing UI. Yup. | 15:15 |
| → ryandotsmith joined | 15:15 |
| → coldwaterlover joined | 15:15 |
| → malumalu joined | 15:16 |
|
Grum
| wwalker: without going in specifics, is it public somewhere? or supposed to become public? | 15:16 |
|
wwalker
| It's out there but internals of a company are NDA'd even though the product is available. I try to never attach one of my client's names to the problem I'm solving for them | 15:16 |
| → altrux joined | 15:17 |
| mm_202 → mm_work | 15:18 |
|
Grum
| ah i guess that is nice :D | 15:18 |
| ← name left | 15:19 |
|
wwalker
| requirement for staying in business long term. even clients that "fire" me (as a consultant, officially the consulting simply stops) know that their internal dirty laundry won't be told by me. | 15:20 |
|
| well, not associated with them. | 15:20 |
|
jast
| I think that's the only decent way to handle things. | 15:21 |
|
Grum
| indeed | 15:21 |
|
sitaram
| its the only legal way too, often :) | 15:21 |
|
| but it helps if you have a repotation for it, without requiring legalities! | 15:21 |
|
| reputation* | 15:21 |
| → WebDragon joined | 15:22 |
|
Grum
| so next time start with the: 'zomg i have 1.5gb sourcecode -- companyX product Y' and then just reconnect with another nick and appear like nothing happened! | 15:22 |
|
wwalker
| Grum: :) I've found that our community is too small to hide for long. | 15:23 |
|
Grum
| :p | 15:23 |
|
| we'll play dumb as well! | 15:23 |
|
wwalker
| sitaram: yes, I quite often start on a project just by agreeing to sign a reasonable NDA later and pre-date the effective date. | 15:24 |
| ← malumalu left | 15:24 |
|
sitaram
| wwalker: that means you already have a reputation for doing the right thing, because for that (short) duration they're exposed... good for you! | 15:24 |
|
wwalker
| Grum: thanks for the help | 15:24 |
| → rudi_s joined | 15:25 |
|
Grum
| yw, good luck :D | 15:26 |
| → jhelwig joined | 15:26 |
| ← wwalker left | 15:27 |
| ← Adlai-AWAY left | 15:28 |
| → Adlai-AWAY joined | 15:28 |
| → Lemao joined | 15:29 |
| ← coldwaterlover left | 15:29 |
| → stringo0 joined | 15:30 |
| → Adlai-AW` joined | 15:31 |
| ← HG` left | 15:31 |
| ← Akufen left | 15:32 |
| ← Adlai-AWAY left | 15:32 |
| ← doM^ left | 15:33 |
| → hobodave joined | 15:37 |
| ← Adlai-AW` left | 15:41 |
| → Adlai-AW` joined | 15:41 |
| → summatusmentis joined | 15:43 |
| → eMyller joined | 15:43 |
|
summatusmentis
| I screwed up, I was trying to update a dev branch, and ended up commiting changes that had already been made to the master repo. In trying to fix this, I deleted my branch I'd been doing dev work on, is there a way to get this back? | 15:44 |
| ← UUncia left | 15:45 |
| ← Lemao left | 15:45 |
|
broonie
| summatusmentis: git reflog may be of assistance | 15:45 |
|
sitaram
| summatusmentis: you deleted a branch? well the branch reflog gets deleted along with the branch :( but the HEAD reflog may still show you what you want... try "git reflog show HEAD -10" | 15:47 |
|
| (the -10 is to limit to the top 10 entried; adjust to taste) | 15:47 |
| → fernandor joined | 15:47 |
| joshthecoder_afk → joshthecoder | 15:48 |
|
shruggar
| sitaram, isn't there a way to list unreachable commits? | 15:48 |
|
sitaram
| shruggar: sure but there would be far too many. "git reflog --date=relative HEAD" is far better -- the relative timestamps (like "20 minutes ago") and the text accompanying the reflog give you a solid clue what is where | 15:49 |
| ← summatusmentis left | 15:49 |
| → summatusmentis joined | 15:49 |
|
summatusmentis
| I screwed up, I was trying to update a dev branch, and ended up commiting changes that had already been made to the master repo. In trying to fix this, I deleted my branch I'd been doing dev work on, is there a way to get this back? | 15:49 |
|
sitaram
| shruggar: in contrast, nothing distinguishes an unreachable commit made 2 months ago from one made 2 seconds ago | 15:49 |
| ← loincloth left | 15:49 |
| ← _patton left | 15:50 |
|
shruggar
| I suspect that a union of "all unreachable commits" and "the last howevermany reflog entries" would be the right answer... | 15:50 |
|
| union? intersection! | 15:50 |
| → selckin joined | 15:50 |
|
sitaram
| shruggar: actually I take back what I said. Unless the reflog expired, you wont even see it in unreachable. Intersection is null :) | 15:50 |
|
| shruggar dies | 15:51 |
|
sitaram
| shruggar: unless you specified one or more heads in the "git fsck --unreachable" command, then it finds stuff unreachable from there -- in which case of course even a named branch can show up as unreachable | 15:53 |
| ← ab3 left | 15:54 |
|
shruggar
| git fsck --unreachable $(git show-ref -s) ? | 15:54 |
|
sitaram
| or you say "git fsck --no-reflogs" (facepalm -- how did I forget that one!) | 15:54 |
|
shruggar
| ah, there you go then | 15:55 |
| ← priidu left | 15:55 |
|
shruggar
| so much dangling, so much I'm afraid to touch | 15:55 |
|
sitaram
| shruggar: but really, all this is moot in his scenario. You know the branch name, except you deleted it, so the best way is the reflog. Unless you deleted it more than 90 days ago, or you explicitly expired reflogs | 15:56 |
|
| try it... delete a branch and then try "git reflog show --date=relative HEAD | grep your_branch_name" | 15:56 |
| ← zmbmartin left | 15:57 |
| → coldwaterlover joined | 15:57 |
| ← ryandotsmith left | 15:57 |
|
shruggar
| I suppose I should be more trusting of the reflog's storing of branch names.. I never am because it does so in plain english | 15:58 |
| → klbate joined | 15:58 |
|
sitaram
| :) | 15:58 |
|
| dont worry | 15:58 |
| ← coldwaterlover left | 15:58 |
|
sitaram
| shruggar: besides, when fsck finds you 20 candidate commits (and God help you if you did a large rebase somewhere!) how would you determine which is the correct one? Just pretend reflog is giving you a head start on that exercise :) | 15:59 |
|
shruggar
| I think I just want the before and after ref names to be part of the "real" log instead of just the message (they aren't at all for commits and rebases, for example, just skimming right now) | 15:59 |
| → coldwaterlover joined | 15:59 |
|
sitaram
| shruggar: what's the "real" log? | 15:59 |
|
| the commit log? | 15:59 |
|
shruggar
| I don't know a good name for it. The non-english part | 15:59 |
| → jackdempsey joined | 16:00 |
|
doener
| shruggar: rebases happen on a detached HEAD, only when it finishes is the branch head updated. And IIRC that one says which ref was affected | 16:00 |
| ← [Po]lentino left | 16:00 |
|
shruggar
| the part that looks like <sha> <sha> <whodunnit> <when> <and-I-don't-mean-the-description> | 16:00 |
| ← Adlai-AW` left | 16:00 |
| → Adlai-AW` joined | 16:00 |
|
sitaram
| doener: you mean a complex rebase will not flood reflog? cool! | 16:01 |
|
doener
| sitaram: HEAD's will be flooded, but not the ref's | 16:01 |
|
sitaram
| shruggar: the description is in English but not human generated, so you can trust it | 16:01 |
|
shruggar
| doener, doesn't seem to, unless it's the wonderful "updating HEAD" message that seems to be repeated 47 times here | 16:01 |
|
sitaram
| doener: in this case we're looking at someone who deleted a branch accidentally and is trying to recover it. shruggar was considering "git fsck --unreachable" and I said that will give you lots of junk | 16:02 |
|
| sitaram loves reflog... | 16:02 |
|
shruggar
| What I tend to want from the reflog is: 1) where was I, 2) where am I, 3) what did I do to get there. And while all that information /tends/ to be there, none of it seems to /always/ be there | 16:03 |
|
doener
| shruggar: hm, indeed, there's no "checkout" message at the end (which I thought there was) | 16:03 |
|
summatusmentis
| is there a way to recover a deleted branch? | 16:04 |
| ← psoo left | 16:04 |
|
shruggar
| that's what we been talk'n 'bout he-ah! | 16:04 |
|
sitaram
| summatusmentis: I already told you: git reflog --relative-date HEAD | less and look for stuff | 16:04 |
|
| summatusmentis: paste if needed | 16:04 |
|
| summatusmentis: you asked the question twice, identically, didn't listen to either answer, and then asked again :) | 16:05 |
| ← elliottcable left | 16:05 |
| → enherit joined | 16:06 |
|
summatusmentis
| sitaram: I missed the context, and thought you were talking to someone else, I'm sorry | 16:06 |
| ← enherit left | 16:06 |
| → enherit joined | 16:06 |
| → jjuran joined | 16:06 |
|
shruggar
| git co branchname $( git reflog | grep branchname | head -1 | awk '{print $1}' ) ? :D | 16:06 |
|
sitaram
| 21:17:08 <sitaram > summatusmentis: you deleted a branch? well the branch reflog gets deleted along with the branch :( but the HEAD reflog may still show you what you want... try "git reflog show HEAD -10" | 16:06 |
|
shruggar
| git co -b branchname $( git reflog | grep branchname | head -1 | awk '{print $1}' ) ? :D | 16:06 |
|
sitaram
| 21:17:08 <sitaram > summatusmentis: you deleted a branch? well the branch reflog gets deleted along with the branch :( but the HEAD reflog may still show you what you want... try "git reflog show HEAD -10" | 16:06 |
| ← ntoll left | 16:06 |
|
summatusmentis
| sitaram: then my client is being crappy, and I didn't get either of those | 16:07 |
|
sitaram
| even though I addressed you by name? you need a better IRC client | 16:07 |
| ← jackdempsey left | 16:07 |
|
sitaram
| my sentiments exactly; what are you using? | 16:07 |
|
summatusmentis
| neither of them showed up, I must have a laggy connection | 16:07 |
|
| irssi | 16:07 |
|
sitaram
| oh thats what I use too; lag... then -- my apologies for being a little, er, sharp :) | 16:07 |
| → kjg joined | 16:08 |
|
summatusmentis
| no worries, my fault | 16:08 |
| joshthecoder → Kroll | 16:08 |
| → tim joined | 16:08 |
|
summatusmentis
| if I've found what I'm looking for, and it's a recursive merge, can I cherry pick that? | 16:08 |
| Kroll → joshthecoder | 16:09 |
| ← glauber_ left | 16:09 |
|
sitaram
| summatusmentis: why? you said you deleted a branch? Give that SHA the same name, and you're in business: git branch my_long_lost_branch SHA | 16:09 |
|
kjg
| hey, is it a known problem to get the git push warning message when pushing into a bare repo with git 1.6.3.3 or 1.6.3.1? | 16:10 |
|
summatusmentis
| oh, hrm, let me see if I can cherry-pick this commit from the log, and see if that does it | 16:10 |
|
sitaram
| kjg: a "warning" is never a "problem" :) | 16:10 |
|
kjg
| haha i suppose other than I don't like looking at it warning me about something that I shouldn't have to worry about | 16:10 |
| → cpg joined | 16:11 |
|
kjg
| does it warn on all pushes and not just pushes to non-bare repos? | 16:11 |
|
sitaram
| summatusmentis: don't do that... if you deleted a branch, undeleted it first, then do whatever you want. cherry-pick etc are not really a good idea most of the time, except as one-offs | 16:11 |
|
| kjg: any warning in git can be squelched by some appropriate config variable | 16:12 |
|
| kjg: the way you tell git "yeah I know, dont tell me OK?" is to set it :) | 16:12 |
| → dcurtis joined | 16:13 |
| ← froschi left | 16:13 |
| → jackdempsey joined | 16:13 |
|
dcurtis
| Is there a way to copy a file from one barnch to another easily with git? | 16:13 |
| → fualo joined | 16:14 |
|
kjg
| yeah, the warning message is very verbose. it says how squelch the warning, but unless i'm reading it wrong, it seems to indicate that if i squelch the warning that it will accept pushes to non-bare repos. | 16:14 |
|
summatusmentis
| sitaram: that doesn't seem to be working | 16:14 |
|
sitaram
| dcurtis: git checkout b1; git checkout b2 -- path/to/file | 16:15 |
|
| kjg: pastebin please? | 16:15 |
|
| summatusmentis: pastebin please? | 16:15 |
|
| kjg: sorry that was not for you; you can just say which config variable it is talking about... | 16:15 |
|
kjg
| sitaram: receive.denyCurrentBranch | 16:16 |
|
summatusmentis
| sitaram: of which? | 16:16 |
| → Luca_Peck joined | 16:16 |
|
summatusmentis
| sitaram: I've gotta run, will you be around way later? | 16:16 |
|
sitaram
| kjg: pushes to non-bare repos are always OK; as long as it is to some other (non-checked-out) branch | 16:16 |
|
| summatusmentis: maybe, how long? Its almost 10pm here and I may hit the hay soon but there'll be someone around dont worry | 16:17 |
|
kjg
| right, so I would think I shouldn't get a warning about pushing to a non-bare repo if it doesn't apply to me, it thought maybe it was a known issue that the warning got displayed all the tiem. | 16:17 |
|
summatusmentis
| sitaram: oh, I was thinking in 10 hours or so :) | 16:17 |
|
sitaram
| summatusmentis: make it 12 and you're on :) | 16:18 |
|
kjg
| I don't want to squelch it on the off change that I do push into a non-bare repo. The warning would be useful in that case | 16:18 |
| → bobesponja joined | 16:18 |
|
sitaram
| 11 | 16:18 |
|
kjg
| s/change/chance | 16:18 |
| → kazzbott joined | 16:18 |
|
kazzbott
| good morning! | 16:18 |
| ← bobesponja left | 16:18 |
| → prusnak joined | 16:19 |
| → mw joined | 16:19 |
| → Geralt joined | 16:19 |
|
sitaram
| kjg: I kind ofkjgset it to refuse, not warn, and you'll be fine for all cases | 16:19 |
|
| oops | 16:19 |
|
| kjg: set it to refuse, not warn, and you'll be fine for all cases | 16:20 |
| ← naith left | 16:20 |
|
sitaram
| kjg: and refuse will become the default at a later stage, so you're future proof :) | 16:20 |
|
kazzbott
| Would someone mind checking out a pastie? http://pastie.org/580158 | 16:20 |
| ← Jinzhu left | 16:20 |
|
kazzbott
| I forked a submodule and for some reason I can't deploy it, I get ERROR: Permission to tones95/active_merchant denied to tones95/hnd. | 16:20 |
|
kjg
| sitaram: ok cool. i'll do that. Do you disagree that it is misleading to show the warning for bare repos though? | 16:21 |
|
kazzbott
| but it works fine locally | 16:21 |
|
kjg
| s/misleading/confusing | 16:21 |
| → bobesponja joined | 16:21 |
|
sitaram
| if the remote was bare you should not see the warning. Did you see it on a bare repo? Thats a bug | 16:21 |
|
| kjg: ^ | 16:21 |
|
kjg
| yes! haha thats what i've been trying to say. | 16:22 |
| → ryandotsmith joined | 16:22 |
|
sitaram
| kjg: what version of git on either side? | 16:22 |
|
kjg
| local: 1.6.3.3 remote: 1.6.3.1 | 16:22 |
| ← FunkeeMonk left | 16:22 |
|
sitaram
| kjg: and does the warning start with "warning: updating the current branch"? | 16:22 |
|
kjg
| yes | 16:23 |
|
sitaram
| kjg: let me test... give me a minute | 16:23 |
| ← dcurtis left | 16:23 |
| ← Luca_Peck left | 16:24 |
|
kazzbott
| Anyone else having issues doing a pull from this public repository? git clone [email@hidden.address] | 16:24 |
| ← jackdempsey left | 16:25 |
| → Luca_Peck joined | 16:25 |
|
sitaram
| kjg: I dont see it here, but my versions are a bit newer... are you positive your remote is bare? | 16:25 |
|
wereHamster
| kazzbott: permission denied | 16:25 |
|
kjg
| $ git status | 16:26 |
|
| fatal: This operation must be run in a work tree | 16:26 |
|
wereHamster
| kazzbott: is that a private repository? | 16:26 |
|
kazzbott
| hmmm | 16:26 |
|
| it's public | 16:26 |
| → zalun joined | 16:26 |
|
kazzbott
| Privacy | 16:26 |
|
| This repo is viewable by everyone. | 16:26 |
|
wereHamster
| kazzbott: the public fetch url is git://github.com/tones95/active_merchant.git, not [email@hidden.address] | 16:27 |
|
kazzbott
| ohhh | 16:27 |
|
| hmm | 16:27 |
| ← zalun left | 16:28 |
|
sitaram
| kjg: ok that settles it I guess :) maybe you should send a mail to the list | 16:28 |
|
kjg
| well if it only happens in an old version, then i'm happy to upgrade. I just didn't see the fix in the change log | 16:29 |
| → loincloth joined | 16:29 |
|
sitaram
| kjg: but I cant reproduce it with 1.6.4 on both sides (and I dont have anything else anywhere) so not sure what the deal is; maybe it was fixed recently | 16:29 |
|
| kjg: I didn't either, offhand | 16:29 |
| → juanjoc joined | 16:29 |
| → lhz joined | 16:30 |
| ← tiny left | 16:31 |
| → EruditeHermit joined | 16:31 |
| → kennethlove joined | 16:32 |
|
EruditeHermit
| how does one set the merge conflicts tool? | 16:32 |
| → Theravadan joined | 16:33 |
| ← ben_h left | 16:33 |
|
sitaram
| git config merge.tool meld | 16:33 |
| → funkycat90210__ joined | 16:33 |
|
sitaram
| (example) | 16:33 |
| ← ia left | 16:34 |
| → gaffo joined | 16:36 |
| → MrGando joined | 16:37 |
|
MrGando
| Hello :) , I need some help with git, how can I see which files did I commited on an specific revision ? | 16:37 |
| → mutable_ joined | 16:38 |
|
coachz
| isn't that in the manual ? | 16:38 |
| ← shruggar left | 16:38 |
| → ia joined | 16:38 |
| → Bira joined | 16:38 |
|
MrGando
| coachz: maybe, but I can't find it , could you point me on what to search for ? | 16:38 |
|
sitaram
| MrGando: git log --stat is a good start | 16:38 |
| ← naeu left | 16:39 |
|
MrGando
| sitaram: thanks | 16:39 |
| → justin-george joined | 16:39 |
| ← Bira left | 16:40 |
| → jerbear joined | 16:42 |
|
tokkee
| oO | 16:42 |
|
ddollar
| gaffo: your irc client going nuts? | 16:43 |
|
sitaram
| is everyone else seeing a mini-flood | 16:43 |
|
spb
| yes | 16:43 |
|
PerlJam
| aye | 16:43 |
| ← Chaser left | 16:43 |
| ← gaffo left | 16:43 |
|
tokkee
| Yep. | 16:43 |
|
EruditeHermit
| sitaram: thanks =) | 16:43 |
|
tokkee
| root@… | 16:43 |
|
| tokkee shakes his head … | 16:43 |
|
sitaram
| EruditeHermit: you may want to add --global to that; typically that's a global setting, not per repo | 16:44 |
|
EruditeHermit
| does it take any text editor? | 16:44 |
|
sitaram
| tokkee: :) I see what you mean now. Full hostname too... | 16:44 |
|
| EruditeHermit: there's a defined list of them; man git-mergetool | 16:45 |
|
Gitbot
| EruditeHermit: the git-mergetool manpage can be found at http://git.or.cz/man/git-mergetool | 16:45 |
| → Bira joined | 16:45 |
|
sitaram
| EruditeHermit: you can make it work for any by setting other config variables or writing wrapper scripts etc; it's all in man git-config | 16:45 |
| → mmw joined | 16:45 |
|
Gitbot
| EruditeHermit: the git-config manpage can be found at http://git.or.cz/man/git-config | 16:45 |
|
gbacon
| ?ty fromListWith (+) . map (flip (,) 1) | 16:46 |
| ← cilly left | 16:46 |
| → kraymer joined | 16:46 |
| → krawek joined | 16:46 |
| ← mutable left | 16:48 |
| ← moh left | 16:48 |
| → AkumaStreak joined | 16:50 |
| → smotchkkiss joined | 16:53 |
| ← gitte left | 16:53 |
| ← Bira left | 16:53 |
| ← MisterN left | 16:53 |
| → bsy joined | 16:55 |
| → brain0 joined | 16:56 |
| → MisterN joined | 16:56 |
|
brain0
| hello. I have a git repository which I cloned from one location and want to push it to another. I cloned the "master" branch. Now I want to push the "master" and the "for-upstream" branch to the other location. so, I want it to pull master from the "upstream" remote when running "git pull" and when I run "git push --repo=publish" I want it to push the for-upstream AND the master branch to "publish" | 16:59 |
|
| is this possible? | 16:59 |
| → moh joined | 16:59 |
| → ramlev joined | 17:00 |
|
sitaram
| brain0: first, you can't clone a branch; you clone the whole repo, or you fetch a branch into your repo | 17:00 |
| → meanburrito920_ joined | 17:00 |
|
brain0
| I cloned the whole repository | 17:01 |
|
| then I created a new branch | 17:01 |
|
wereHamster
| brain0: you can fetch and push from/to different urls since git-1.6.4 | 17:01 |
|
sitaram
| brain0: git push defaults to "matching" (or you can make it do that explicitly by setting some config). So -- one time -- create matching branches on the other side, and sure git push will work. | 17:01 |
|
brain0
| I have 1.6.4 | 17:01 |
| → knittl joined | 17:01 |
|
brain0
| hmm, I set it to "tracking" | 17:01 |
|
wereHamster
| set remote.<name>.pushurl to the url you want to push to | 17:01 |
|
sitaram
| brain0: or do it explicitly (my preferred method these days) | 17:02 |
|
duncanmv
| thanks for all the help guys, you rock | 17:02 |
| ← duncanmv left | 17:02 |
|
brain0
| I am confused | 17:03 |
|
| let me make this more explicit | 17:03 |
| → Sigma joined | 17:03 |
| ← sunoano left | 17:04 |
|
brain0
| this is what I have right now: http://pastebin.com/d2198c975 | 17:04 |
|
| now I run git push --repo=publish | 17:04 |
|
| it will push the for-upstream branch, but obviously not the master branch | 17:04 |
| ← daaku left | 17:04 |
| → eMyller|busy joined | 17:04 |
| rylar_off → rylar | 17:05 |
| → murphl joined | 17:05 |
| → corni joined | 17:05 |
|
brain0
| what I thought would be great is if I run git push --repo=publish, then both master and for-upstream will be pushed to publish | 17:05 |
| → sunoano joined | 17:06 |
|
sitaram
| git config remote.publish.push "master for-upstream" # may work; try it | 17:06 |
|
| sitaram is not sure how a refspec consisting of two different branches is written; space separated? | 17:06 |
| → adeodatus joined | 17:06 |
| ← Octalot left | 17:07 |
| → ph^ joined | 17:07 |
|
brain0
| sitaram: hmm, nope: | 17:08 |
|
sitaram
| brain0: there has to be a way to do this; give me a few minutes | 17:09 |
|
brain0
| hmm, even if I say remote = publish on branch "master" it doesn't do anything | 17:10 |
| ← Hendu left | 17:10 |
|
brain0
| I could try wereHamster's suggestion but it seems unclean to me | 17:10 |
| ← MrGando left | 17:11 |
| ← knittl left | 17:11 |
| ← murph left | 17:12 |
| → knittl joined | 17:13 |
|
coachz
| To run git on my xp box i see "Git-1.6.4-preview20090730.exe". It says featured Beta. Is that what I should be running or is there a non-Beta ? | 17:13 |
|
sitaram
| they're all called beta | 17:14 |
|
coachz
| so that's the right one ? | 17:14 |
| ← DrNick left | 17:15 |
| ← Luca_Peck left | 17:16 |
|
brain0
| sitaram: for now, running "git push publish master" has done what I wanted, it's not nicely configured though | 17:18 |
|
sitaram
| brain0: well I always do explicit pushes anyway nowadays -- so that's not too bad actually | 17:18 |
|
brain0
| I love to be able to "git push" and it will push everything where I want it to be | 17:19 |
|
| that only works right if the repository I fetch from is the same one I push to | 17:20 |
| ← galderz left | 17:20 |
| ← kyxzme left | 17:20 |
|
meanburrito920_
| so I know that if I want to get the return status of a command, i can use $? but what variable contains the error message itself? | 17:20 |
| ← justin-george left | 17:20 |
| → ctusar joined | 17:21 |
|
sitaram
| meanburrito920_: there isn't one. Each program has its own convention for what the codes mean and you have to read that program's manual | 17:21 |
|
meanburrito920_
| sitaram, no, i mean whatever it prints to stdout | 17:22 |
|
| or stderr | 17:22 |
|
| rather | 17:22 |
| ← lu_zero_ left | 17:23 |
| ← kumbayo left | 17:23 |
| → kumbayo_ joined | 17:23 |
| ← corni left | 17:23 |
|
sitaram
| brain0: got it... | 17:24 |
|
| brain0: git config remote.b.push b1:b1; git config --add remote.b.push b2:b2 | 17:24 |
|
| brain0: then "git push b" :) | 17:24 |
| ← eMyller left | 17:25 |
| ← mutable_ left | 17:26 |
| ← fualo left | 17:27 |
|
coachz
| on windows install should i pick Use OpenSSH or Use Tortoise Plink and why please ? | 17:29 |
| ← sprasanna_ left | 17:29 |
|
sitaram
| coachz: msysgit I assume? if so, pick openssh. I've heard of various problems with the other ones. But I'm not an expert | 17:30 |
|
coachz
| correct | 17:30 |
|
| yeah i don't know what plink even is | 17:30 |
|
brain0
| sitaram: aaah, it seems to support several push = directives in one section | 17:30 |
|
| sitaram: thanks (although I can't test it anymore, as there is nothing to push) | 17:31 |
|
sitaram
| coachz: there are often reports of incompatibilities between the various types of ssh too so if you've got more than one kind installed they sort of fight :( | 17:31 |
|
| brain0: yep | 17:31 |
| → ppawel joined | 17:31 |
|
coachz
| i don't know if i have another, i have apache installed, mysql, php stuff | 17:31 |
| → jed_ joined | 17:32 |
| ← ramlev left | 17:32 |
| ← ctusar_ left | 17:33 |
|
stepnem
| :'( I can't believe there is no simple scriptable way to know if a local repository is up-to-date or not -- do I really have to parse the text output of 'git-pull' for that? | 17:33 |
| ← Theravadan left | 17:33 |
| → fualo joined | 17:33 |
| ← funkycat90210__ left | 17:33 |
|
jed_
| what is the best way to deal with config files you don't want to watch but were added to the repository? | 17:33 |
|
wshimmy
| stepnem: git diff origin/master? | 17:33 |
| → candybar joined | 17:34 |
| → tongueroo joined | 17:35 |
|
stepnem
| wshimmy: ah... that automatically fetches from the remote and diffs it? | 17:36 |
|
brain0
| you have to fetch yourself | 17:37 |
|
wshimmy
| stepnem: no, you have to fetch it first | 17:37 |
|
brain0
| the check the return value of git diff origin/master master | 17:37 |
|
wshimmy
| git doesn't hit the network without explicit orders to, in most (all?) cases | 17:37 |
|
stepnem
| hm... so there's no way to just *check* for changes to fetch/pull? | 17:37 |
|
| before fetching them? | 17:38 |
|
wshimmy
| no, but if you just fetch them it doesn't affect your local branches at all | 17:38 |
|
stepnem
| yes, I know | 17:38 |
|
sitaram
| stepnem: git ls-remote may help; at least if the hashes are not equal you know there's some difference, whether push or pull | 17:39 |
| → legendulo joined | 17:39 |
|
sitaram
| hits the network of course but very lightly | 17:39 |
| ← sparc left | 17:40 |
| ← jed_ left | 17:41 |
|
coachz
| are there any advantages to me picking tortioseplink during install? i already have tortoise svn installed so plink is there. | 17:41 |
| ← jaeckel left | 17:42 |
|
brain0
| sitaram: thanks for your help again (this is one of the few channels on IRC that is actually helpful) | 17:43 |
|
| and have a nice day | 17:43 |
|
coachz
| it's a great channel ! | 17:43 |
| ← zenwryly left | 17:43 |
|
brain0
| bye | 17:43 |
| ← brain0 left | 17:43 |
| ← wolog__ left | 17:43 |
| ← tono left | 17:45 |
| → MrMeek joined | 17:45 |
| ← WinterWeaver left | 17:46 |
|
stepnem
| sitaram: thank you! | 17:46 |
|
sitaram
| stepnem: did it work? | 17:47 |
|
stepnem
| sitaram: I'm only trying to figure it out, my understanding of git is still limited :| | 17:49 |
| ← ryandotsmith left | 17:49 |
|
sitaram
| ok :) | 17:49 |
|
troyt
| Quick question on fast-import: The 'merge' keyword - is it more to be used along the lines of merging one branch to another, or what? (I've got a SCM i'm importing from where I'll get what amounts to several cherry-picks in one 'commit', and wanted to get it to map into git as best as possible) | 17:50 |
| → khmarbaise joined | 17:52 |
| → dreiss joined | 17:53 |
| ← kraymer left | 17:54 |
| ← kumbayo_ left | 17:54 |
| ← legendulo left | 17:54 |
| ← markelikalderon left | 17:55 |
| ← adeodatus left | 17:55 |
| → owen1_ joined | 17:55 |
| → yann joined | 17:57 |
| → pacific-blue joined | 17:58 |
|
Ilari
| troyt: Presumably 'merge' means to do a merge in sense git understands merges. | 17:59 |
| → patmaddox joined | 17:59 |
| ← rb____ left | 17:59 |
|
pacific-blue
| When specifying the "git remote add origin ssh://user@server..." I must specify the full path to my user account. It seems to me it should default to the users home directory. Is there a way to specify it so it defaults to the home directory just like an rsync does? | 18:01 |
|
Ilari
| troyt: I.e. all commits on that branch that aren't on this branch become part of this branch. | 18:01 |
|
doener
| pacific-blue: user@server:path/relative/to/home | 18:01 |
| → markelikalderon joined | 18:01 |
| → qhoxie joined | 18:01 |
|
pacific-blue
| doener: so the key here is to specify a ':' after the user? | 18:02 |
|
sitaram
| pacific-blue: man git-clone and look for ssh: to see all possible syntaxes | 18:02 |
|
Gitbot
| pacific-blue: the git-clone manpage can be found at http://git.or.cz/man/git-clone | 18:02 |
|
doener
| pacific-blue: and not to use ssh://, the user@host:syntax comes from scp | 18:02 |
| → _Vi joined | 18:02 |
| → transplant joined | 18:03 |
|
transplant
| hi. anyone knows of any repo that's in http and not packed? I want to do some testing | 18:03 |
|
pacific-blue
| doener: thanks that worked perfectly. :) | 18:04 |
|
stepnem
| sitaram: umh, I'm confused: both the output of 'git ls-remote -h origin master' and the contents of .git/refs/heads/master don't change (and are different), even though I did a 'git pull'; I must be missing something :| | 18:04 |
| → JackWinter3 joined | 18:05 |
|
doener
| stepnem: "git pull" or "git pull <remote> <refspec>"? | 18:05 |
| → kumbayo_ joined | 18:05 |
|
stepnem
| just git pull | 18:06 |
|
| ah, sorry, I'm not on the master branch | 18:06 |
|
| *blush* | 18:06 |
|
doener
| well, just the remote configured for the branch matters | 18:07 |
| ← kazzbott left | 18:07 |
| → pdobrogost joined | 18:07 |
|
pdobrogost
| Hi all! | 18:07 |
|
stepnem
| doener: indeed, it's the same for the branch I'm on | 18:08 |
|
| [so I'm still confused, or even more] | 18:08 |
|
doener
| stepnem: and it's set to "origin"? | 18:08 |
| ← EruditeHermit left | 18:08 |
|
doener
| stepnem: git config --get branch.<name>.remote | 18:08 |
| → juan_arandaalvar joined | 18:08 |
| → sshc joined | 18:09 |
|
pdobrogost
| Need some help with git. Have local repository with remote-tracking branches. How do I now which of these remote-tracking branches my local branch synchronizes with? | 18:09 |
|
stepnem
| doener: yes, origin | 18:09 |
|
doener
| stepnem: and: git config --get remote.origin.fetch | 18:09 |
|
sshc
| how do I rename a branch without creating a new one and removing the old one? | 18:09 |
|
doener
| sshc: git branch -m | 18:09 |
| ← sitaram left | 18:10 |
|
doener
| pdobrogost: "git config --get branch.<name>.remote" and "git config --get branch.<name>.merge" show the relevant "git pull" defaults | 18:10 |
|
| pdobrogost: if you know which remote you care about, you can also do "git remote show <remote>" | 18:11 |
| → shingo joined | 18:11 |
| shingo → Guest89136 | 18:11 |
|
doener
| pdobrogost: which shows, besides other information, which branches have pull defaults, and what they are | 18:11 |
| ← RaceCondition left | 18:11 |
|
stepnem
| doener: +refs/heads/*:refs/remotes/origin/* | 18:11 |
|
doener
| stepnem: oh wait... you looked at refs/heads/master, not refs/remotes/origin/master | 18:12 |
|
| stepnem: you most likely just have local commits that don't exist in the remote repo, so obviously master references a different commit than origin/master | 18:12 |
|
| doener gotta go | 18:13 |
|
stepnem
| doener: yes, but I thought that after I pull from the origin, it should be updated to the same hash | 18:13 |
| ← Aikawa left | 18:13 |
|
stepnem
| doener: and no, I don't have any local commits | 18:13 |
| → panpainter joined | 18:14 |
| ← ^Einstein left | 18:14 |
|
coachz
| on windows, i don't see a .gitconfig file in my C:\Documents and Settings\$USER directory | 18:16 |
| → Lemao joined | 18:16 |
| ← GarethAdams left | 18:17 |
| ← patmaddox left | 18:17 |
| → patmaddox joined | 18:17 |
|
coachz
| but i do see it here: C:\Program Files\Git\etc | 18:17 |
| ← dpino left | 18:17 |
|
coachz
| just gitconfig not .gitconfig | 18:17 |
| → marvil07 joined | 18:18 |
|
stepnem
| doener: oh, sorry, I was just confused -- now it shows the same hash as expected | 18:19 |
|
pdobrogost
| doener: after git branch -r I have origin/4.5 origin/HEAD -> origin/master origin/master origin/master-stable | 18:20 |
| ← JackWinter2 left | 18:20 |
|
stepnem
| coachz: presumably you haven't made any personal config changes yet? | 18:21 |
|
pdobrogost
| doener: I want to follow master-stable. what should I do? | 18:21 |
|
stepnem
| but I don't use windows, so not sure | 18:21 |
|
coachz
| stepnem, i just made some form dos in c:\ and it wrote the config to c:\ | 18:22 |
|
| hmm | 18:22 |
|
| if i write to my home dir, will git find it ? | 18:22 |
|
| even from home it wrote the new file to c:\ | 18:23 |
|
| so now i have .gitconfig in c:\ | 18:24 |
| → ryandotsmith joined | 18:24 |
|
stepnem
| coachz: there are repo-specific `config' files in each .git directory, and then there's a global .gitconfig, in the user's home directory on Unix | 18:24 |
|
coachz
| doesn't seem like the right place for it since the book says it goes in home file:///C:/My%20Web%20Sites/Pro%20Git%20Book/progit.org/book/ch1-5.html | 18:24 |
| ← ppawel left | 18:24 |
|
coachz
| i'm on windows xp though | 18:24 |
|
| i have just done a new install of windows git and have no repos yet | 18:25 |
| ← jjuran left | 18:25 |
| → SolarWar joined | 18:26 |
|
coachz
| when i run this from C:\Documents and Settings\$USER it writes to c:\.gitconfig git config --global user.name "John Doe" | 18:26 |
|
| | 18:26 |
|
pdobrogost
| doener: ping | 18:26 |
| → dodo_the_last joined | 18:29 |
| → gma joined | 18:29 |
|
gma
| how easy is it to undelete a branch? | 18:30 |
| → thiago_home joined | 18:30 |
| ← Evanlec left | 18:30 |
| ← dreiss left | 18:30 |
|
coachz
| read this page git checkout -b new_branch_name HEAD@{1} http://andrzejonsoftware.blogspot.com/2008/06/git-working-with-branches.html | 18:31 |
|
| coachz total noob fwiw | 18:31 |
|
gma
| coachz: cheers. think I may just have found the relevant sha with the reflog | 18:31 |
|
| phew | 18:31 |
|
coachz
| yay | 18:32 |
|
gma
| yep, it's all good. that'll teach me to tidy up after myself... | 18:32 |
|
coachz
| one thing i read about git is that it basically always adds so you can't really delete and can always go back | 18:32 |
|
gma
| coachz: yeah. the reflog is a nice piece of work. | 18:32 |
| → Suhail joined | 18:32 |
|
coachz
| what's a reflog | 18:32 |
|
gma
| coachz: try "git reflog" | 18:33 |
|
Suhail
| In git how do I get rid of 2 commits to a branch, if I haven't pushed them yet | 18:33 |
|
coachz
| i guess i'll need a repo first :-) | 18:33 |
|
gma
| coachz: it'll show you the sha every time you switch branches. I went back far enough to find the last time I switched onto that branch, then did "giti checkout -b mybranch abcd1234" | 18:33 |
|
stdorb
| coachz: like a log of where you did your time travel to. | 18:33 |
| ← Guest89136 left | 18:33 |
|
coachz
| nice | 18:33 |
|
gma
| Suhail: git reset --hard HEAD^^ | 18:33 |
|
| Suhail: so long as you don't really want 'em | 18:34 |
|
stdorb
| and then they are still available through the reflog ;) | 18:34 |
|
coachz
| this is the quote in the Pro Git book: When you do actions in Git, nearly all of them only add data to the Git database. It is very difficult to get the system to do anything that is not undoable or to make it erase data in any way. | 18:34 |
|
gma
| coachz: yeah, that's true | 18:35 |
|
coachz
| smart | 18:35 |
| ← ryandotsmith left | 18:35 |
|
gma
| coachz: if you do "git reset --hard HEAD^" you throw a commit away | 18:35 |
| ← marvil07 left | 18:35 |
|
thiago_home
| not really | 18:35 |
|
| the commit is still there | 18:35 |
| ← transplant left | 18:35 |
|
gma
| coachz: then if you type "git reflog" you'll see the sha of your old HEAD, and can then type "git reset --hard abcd1234" to go back to where you were | 18:35 |
| → jigfox joined | 18:36 |
| → patmaddo_ joined | 18:36 |
|
coachz
| fun stuff | 18:36 |
|
gma
| coachz: eventually though it'll get garbage collected, so it won't stay there forever | 18:36 |
|
coachz
| k | 18:36 |
| → Evanlec joined | 18:36 |
|
coachz
| i'm just doing a new windows install so i have to make my ssh key now | 18:36 |
|
gma
| though you may have to run git-gc to do the collecting, I'm not totally clear on that | 18:36 |
| → dschulz joined | 18:37 |
| ← jigfox left | 18:38 |
| ← Lemao left | 18:39 |
| → Dashkal joined | 18:39 |
| ← lohrun left | 18:41 |
|
coachz
| hmm, ssh-keygen put the .ssh dir in my c:\ root | 18:41 |
| → Akufen joined | 18:41 |
| ← gma left | 18:41 |
|
coachz
| and my .gitconfig is there too | 18:41 |
| SRabbelie1 → SRabbelier | 18:41 |
|
coachz
| for some reason it's not putting them in my home dir | 18:41 |
|
thiago_home
| probably $HOME is empty | 18:41 |
|
coachz
| ahh | 18:42 |
|
| env shows HOME=/c whatever that means HOMEDRIVE=C: HOMEPATH = \ | 18:42 |
|
| seems odd for xp | 18:42 |
| ← _Vi left | 18:43 |
|
coachz
| and HOME system var is set to C:\ | 18:43 |
|
| so i'll change that to be right | 18:43 |
|
| and start over | 18:43 |
| → jigfox_ joined | 18:43 |
| → Bira joined | 18:43 |
|
Ilari
| coachz: Just copy the files to proper place after changing the variables? | 18:44 |
|
coachz
| ok | 18:44 |
| → ryandotsmith joined | 18:44 |
| → dreiss joined | 18:48 |
| → transplant joined | 18:48 |
| ← jigfox_ left | 18:50 |
| rylar → rylar_off | 18:50 |
| → eMyller joined | 18:50 |
| → jigfox joined | 18:50 |
| → Guest89136 joined | 18:51 |
| ← owen1_ left | 18:51 |
| → DasEi joined | 18:51 |
|
transplant
| any news on allowing branches to point to tag objects? | 18:51 |
| → g3d joined | 18:53 |
| → dandean joined | 18:53 |
| → lohrun joined | 18:53 |
| patmaddo_ → patmaddox_ | 18:54 |
| ← patmaddox left | 18:54 |
| → montylounge joined | 18:54 |
| patmaddox_ → patmaddox | 18:54 |
| → justin-george joined | 18:55 |
| ← Adlai-AW` left | 18:56 |
| ← WebDragon left | 18:56 |
| → Adlai joined | 18:56 |
|
dandean
| dumb GitHub-related question: when editing a file with their web-editor, git pull doesn't pull change down to local files. Is git pull the wrong command? | 18:57 |
| → WebDragon joined | 18:59 |
| ← pacific-blue left | 19:03 |
| cpg → cpg|biab | 19:03 |
| ← khmarbaise left | 19:04 |
| → wolog joined | 19:04 |
|
meanburrito920_
| dandean, i would suggest asking on #github | 19:05 |
|
| does anyone know how to limit who is allowed to push to a repo (for a bare repo on a server that many users have access to) | 19:06 |
|
dandean
| I'm doing that as well. | 19:06 |
|
meanburrito920_
| dandean, ah :) | 19:06 |
|
| git pull seems like it would be correct. does github have an updated sha for the edit you made? did it register as a commit? | 19:07 |
|
Nafai
| meanburrito920_: There is an example here under "Enforcing a user-based ACL system" http://progit.org/book/ch7-4.html | 19:07 |
|
| If I'm understanding correctly what you are asking | 19:07 |
| → galderz joined | 19:08 |
| ← montylounge left | 19:08 |
| ← bentob0x left | 19:09 |
|
dandean
| meanburrito920_: I'll look into that. thanks! | 19:10 |
| ← markelikalderon left | 19:10 |
| ← eMyller|busy left | 19:10 |
| ← jrmuizel left | 19:13 |
| ← DasEi left | 19:14 |
| ← saurabhverma left | 19:14 |
| → tiny joined | 19:15 |
| → Gof joined | 19:16 |
|
Gof
| there is the wonderfull command 'git grep' , is there a command like 'git sed' ? | 19:16 |
| → DasEi joined | 19:16 |
| → lu_zero_ joined | 19:16 |
|
stdorb
| in either case you would want perl instead of sed if you're going to do regexp substitutions | 19:16 |
| → Derander joined | 19:17 |
|
meanburrito920_
| Gof, that sounds dangerous :) imagine what kind of screwups could happen... | 19:17 |
|
Gof
| meanburrito920_: refactoring, you know | 19:18 |
|
meanburrito920_
| true enough. but why would you bother with previous revisions? why not just use sed as normal? | 19:18 |
|
Gof
| ok, i'm doing find -name \*.cpp -or -name \*.h | xargs sed -i s/foo/bar/g that will work :-) | 19:18 |
|
meanburrito920_
| i think you need the s//g | 19:18 |
|
| statement to be in quotes | 19:18 |
|
| also, the -i needs an argument for what the backup file extension will be | 19:19 |
|
Gof
| meanburrito920_: it is just to have access to all source files. I always use git grep on main because it is faster | 19:19 |
|
| HEAD i mean | 19:19 |
|
meanburrito920_
| Gof, right, but grep and sed will work on all the source files in your working copy, which is all you should really be messing with | 19:20 |
| → jrmuizel joined | 19:21 |
|
Gof
| meanburrito920_: agreeed | 19:21 |
| → porcnick joined | 19:23 |
|
coachz
| if i'm developing on windows and running the app on linux do i need "git config core.autocrlf false" | 19:23 |
|
transplant
| error: untracked working tree file 'xxx' would be overwritten by merge. | 19:23 |
|
| ? | 19:23 |
| → mcdebugger joined | 19:24 |
|
meanburrito920_
| coachz, turn it on for the windows box, and off for the linux box | 19:24 |
|
coachz
| thanks | 19:24 |
| → mjf joined | 19:24 |
| ← mjf left | 19:24 |
| → camwest joined | 19:25 |
| → spaes joined | 19:25 |
| → sgrimm joined | 19:26 |
| → mjf joined | 19:26 |
| ← Adlai left | 19:27 |
| → Adlai joined | 19:27 |
| → Octalot joined | 19:29 |
|
coachz
| on my new windows repo, i did git init, then git add ., then just to try to unstage them i did git reset and i got fatal: Failed to resolve 'HEAD' as a valid ref. | 19:29 |
|
thiago_home
| unstaqge what? | 19:30 |
| → kyxzme joined | 19:30 |
|
coachz
| ahh | 19:30 |
|
| add didnt stage anything :-) | 19:30 |
|
| doh | 19:30 |
| ← g3d left | 19:30 |
|
| coachz buries his head in the pro git book in shame and continues reading | 19:30 |
|
meanburrito920_
| coachz, actually, the reason why was because HEAD didn't exist, because it is created on the first commit | 19:31 |
| → malumalu joined | 19:31 |
|
coachz
| cool, i just did git commit -a -m "first commit" and then did git reset and it worked :-) | 19:32 |
| ← Adlai left | 19:32 |
| → Adlai joined | 19:32 |
|
thiago_home
| of course it did :-) | 19:32 |
|
coachz
| so with commit, did i just stage them or are they committed locally ? | 19:32 |
|
thiago_home
| when you use Git properly, it works | 19:32 |
|
meanburrito920_
| :D | 19:32 |
|
| coachz, stage what? | 19:33 |
|
thiago_home
| coachz: they're committed locally | 19:33 |
|
coachz
| well, i just created my local repo on my xp box | 19:33 |
|
| git init | 19:33 |
|
| then added the files git add . | 19:33 |
|
| so that added them to the index (staged) ? | 19:33 |
|
meanburrito920_
| then if you commit the files are commited, not staged | 19:33 |
|
coachz
| makes sense | 19:33 |
|
meanburrito920_
| :) | 19:34 |
|
coachz
| but to git reset, you must have done one commit | 19:34 |
|
meanburrito920_
| staging a file is git add /file/ | 19:34 |
|
| right | 19:34 |
|
coachz
| so you can't unstage until you do one commit | 19:34 |
|
meanburrito920_
| becuase it has to have something to reset to, right? | 19:34 |
|
| :) | 19:34 |
|
coachz
| yes | 19:34 |
|
| :-) | 19:34 |
|
| i like it ! | 19:34 |
| ← transplant left | 19:35 |
| → Sordran joined | 19:35 |
| ← asksol left | 19:36 |
|
| coachz has 3 million dollar houses being auctioned off across the street in an hour. oh the joy of foreclosures, i bet they go for 500k | 19:38 |
| ← Adlai left | 19:38 |
| → Adlai joined | 19:38 |
|
coachz
| not mine | 19:39 |
|
meanburrito920_
| haha | 19:39 |
| → markelikalderon joined | 19:39 |
|
| thiago_home checks his pockets for 500k in loose change | 19:39 |
|
nick_h
| i've read the manpage for git-diff, and the "specifying revisions" part of git-rev-parse. however, i can't seem to get git-diff to do what i want | 19:39 |
|
coachz
| one house has no reserve | 19:39 |
|
meanburrito920_
| nick_h, which is? | 19:39 |
|
| coachz, where do you live? | 19:40 |
|
coachz
| charleston, sc | 19:40 |
|
meanburrito920_
| theres million dollar homes in south carolina? | 19:40 |
|
nick_h
| if i have commits 422bc927d and a05c9bfe, how do i display the differences between them? i thought this would achieve that: git diff 422bc927d a05c9bfe | 19:40 |
|
coachz
| tons of em | 19:40 |
|
| those are the average houses | 19:40 |
|
thiago_home
| nick_h: that's how you do it | 19:40 |
|
meanburrito920_
| nick_h, put two periods in between them | 19:40 |
|
coachz
| starter house is 250k, basic nice house is 450k | 19:40 |
|
meanburrito920_
| git diff 422bc927d..a05c9bfe | 19:41 |
|
| coachz, yeah, i live in ca and the house prices here are going crazy | 19:41 |
| ← markelikalderon left | 19:42 |
|
coachz
| yeah ca is like wild | 19:42 |
|
nick_h
| meanburrito920_, thiago_home: ack, brain fart. i was in the wrong directory =/ thanks, guys! | 19:43 |
|
coachz
| rookie mistake .....minus 5 points :-) | 19:44 |
| ← Adlai left | 19:45 |
| → Adlai joined | 19:45 |
|
meanburrito920_
| coachz, minus 5 points from you :) | 19:45 |
| ← dschulz left | 19:46 |
|
coachz
| i'm at -100000000 | 19:46 |
| → hobodave_ joined | 19:46 |
| ← ryandotsmith left | 19:46 |
|
meanburrito920_
| coachz, no, not that bad | 19:46 |
|
| more like -9999999 | 19:46 |
|
coachz
| ha | 19:46 |
|
meanburrito920_
| jk | 19:46 |
|
| :P | 19:46 |
| ← galderz left | 19:47 |
| ← dandean left | 19:47 |
| ← Suhail left | 19:47 |
|
coachz
| i'm teaching an 86 year old man to do web design and he forgets everything i teach him everyday so we just start over everyday, talk about fun | 19:47 |
|
| he's bored | 19:47 |
|
meanburrito920_
| apparently. | 19:47 |
| ← tiny left | 19:49 |
| → markelikalderon joined | 19:49 |
| → alezandro joined | 19:51 |
|
alezandro
| hi all, i accidentally pushed to a server and created a new branch, how can I delete it? tried "git branch -D origin/my_bad_branch" but no luck | 19:53 |
| ← Sordran left | 19:53 |
| → ppawel joined | 19:53 |
|
alezandro
| "git branch -a" shows it as remotes/origin/my_bad_branch | 19:53 |
|
coachz
| git branch -D branchname is for unmerged branches right ? | 19:54 |
| → ntoll joined | 19:55 |
| RobertMeta → MetaCosm | 19:55 |
| ← hobodave left | 19:55 |
| hobodave_ → hobodae | 19:55 |
| → dwave joined | 19:55 |
| hobodae → hobodave | 19:55 |
|
Bira
| alezandro: git push origin :my_bad_branch | 19:55 |
|
alezandro
| Bira: worked perfectly, thanks | 19:56 |
|
| would've never figured that out | 19:56 |
|
coachz
| so how does push delete ? | 19:57 |
|
Bira
| "git help push" will show you a few of the less intuitive options that the command supports. | 19:57 |
|
| I think the idea here is that you're pushing "nothing" on top of a remote branch. | 19:57 |
|
coachz
| ahh | 19:57 |
| → Suhail joined | 19:59 |
| ← cloudhead left | 19:59 |
| ← mnick left | 19:59 |
| → ryandotsmith joined | 20:00 |
| → psynaptic joined | 20:02 |
| → Theravadan joined | 20:03 |
| → funkycat90210_ joined | 20:03 |
| → __iron joined | 20:05 |
|
coachz
| what do i put in .gitignore to ignore all _notes directories but not files | 20:05 |
| → dzwell joined | 20:06 |
| ← ilteris_ left | 20:06 |
|
davegb3
| coachz: i think it's just _notes/ | 20:06 |
|
coachz
| thanks davegb3 | 20:06 |
|
dzwell
| could anyone remind me of the proper place to put comments when submitting a patch? (not the commit message, but other comments related to the e-mail) | 20:07 |
|
| is it between the diff stat and the "---"? | 20:07 |
| ← Bira left | 20:13 |
|
charon
| dzwell: yes | 20:13 |
|
| actually the diffstat has nothing to do with it, it's simply that everything between '---' and the first line starting 'diff ...' is ignored | 20:14 |
|
| (so the diffstat is a special case of such comments) | 20:14 |
| ← coldwaterlover left | 20:16 |
| → saurabhverma joined | 20:16 |
| ← Geralt left | 20:17 |
| → Geralt joined | 20:17 |
|
coachz
| git diff tells me the differences between files that are staged and unstaged yes ? | 20:19 |
|
meanburrito920_
| n | 20:20 |
|
| no | 20:20 |
|
coachz
| hrm | 20:20 |
|
meanburrito920_
| it tells you the difference between HEAD and the working copy | 20:20 |
| ← simNIX left | 20:20 |
|
meanburrito920_
| although that may be what you meant | 20:20 |
| ← iron left | 20:20 |
|
charon
| no | 20:20 |
|
thiago_home
| git diff, without any arguments, gives you the difference between staged and the working copy | 20:20 |
|
| the staged files may be different from HEAD | 20:20 |
|
charon
| ... bah, i'm too slow at typing. thiago wins | 20:20 |
|
dzwell
| charon: thanks! | 20:21 |
|
meanburrito920_
| really? so staged is not diffed? | 20:21 |
| → ilteris joined | 20:21 |
|
meanburrito920_
| wow, i never knew that | 20:21 |
|
| always more to learn, i guess :) | 20:21 |
|
coachz
| so what is working copy? is that staged, unstaged ? | 20:21 |
|
| coachz ducks | 20:21 |
|
meanburrito920_
| coachz, the working copy is the physical files on the file system | 20:22 |
|
coachz
| ok | 20:22 |
|
| that's clear | 20:22 |
|
thiago_home
| there's the checkout (the working copy), the staging area (the index) and the commits | 20:22 |
| → g0blin joined | 20:22 |
|
coachz
| the Pro Git books says git diff tells you What have you changed but not yet staged? And what have you staged that you are about to commit? | 20:22 |
|
meanburrito920_
| thiago_home, but git diff includes HEAD for the files that are not staged, correct? | 20:23 |
|
coachz
| kinda confusing to a noob | 20:23 |
|
thiago_home
| files that aren't staged aren't tracked | 20:23 |
|
| if they are tracked, they are staged | 20:23 |
|
coachz
| git add filename makes then tracked and stage if i'm right | 20:23 |
| cpg|biab → cpg | 20:24 |
|
thiago_home
| yes | 20:24 |
| ← kjg left | 20:24 |
| → coldwaterlover joined | 20:25 |
|
meanburrito920_
| ah, so i was getting hung up on semantics | 20:25 |
| → porcnick_ joined | 20:25 |
|
coachz
| there's about 15 cars next door for the auction so i'm gonna check it out bbl guys and thanks for being patient with noobs :-) ......still reading :-) | 20:26 |
|
meanburrito920_
| thiago_home, so any tracked files are considered staged? | 20:26 |
| → koltroll joined | 20:27 |
|
meanburrito920_
| so what do you call it when you add a file to be committed? | 20:27 |
|
_rane
| staging? | 20:27 |
|
thiago_home
| staging | 20:28 |
|
meanburrito920_
| but you said that all tracked files are already staged | 20:28 |
|
thiago_home
| going to be committed = staged | 20:28 |
|
| yes | 20:28 |
|
meanburrito920_
| that makes no sense | 20:28 |
|
thiago_home
| sure it does :-) | 20:28 |
|
meanburrito920_
| what if i have a file that is tracked by the repo, but I'm not going to commit it for that commit? | 20:29 |
|
charon
| meanburrito920_: you're thinking in *changes*. we're thinking in *files*. the stage (= index = cache) is the set of files/file contents that will be in the next commit | 20:29 |
|
meanburrito920_
| it shows up in git status as being tracked | 20:29 |
|
charon
| meanburrito920_: so even if you do not stage the *changes*, you still have the (old) file contents staged, so that they end up in the next commit "unchanged" | 20:29 |
|
| (note that git only talks about "changes" after the fact, i.e., it generates them from the tree snapshots, not vice versa) | 20:29 |
|
thiago_home
| does it make sense now? | 20:30 |
|
meanburrito920_
| charon, ooh. ok, that makes sense. | 20:30 |
| → DrNick joined | 20:30 |
| → neynenmo joined | 20:30 |
|
meanburrito920_
| i didnt realize that changed files had their last unchanged version staged | 20:31 |
|
| by default | 20:31 |
|
thiago_home
| yes | 20:31 |
|
charon
| that last thing about changes also goes for "unstaged/uncommitted changes" btw. by definition, unstaged changes are the diff between worktree and index (git diff) and the staged-but-uncommitted changes are the diff between index and HEAD (git diff --cached) | 20:32 |
|
thiago_home
| when you check out a commit, the contents of that commit are staged | 20:32 |
|
| if "git status" shows no changes, that the commit matches the staging are (the index), which matches the working copy | 20:32 |
| ← neynenmo left | 20:32 |
|
thiago_home
| if it shows a file changed but not staged, it means the commit matches the staging area, but the working copy differs | 20:33 |
|
| if it shows the file changed and staged, then the staging area and the working copy match, but the commit differs | 20:33 |
|
| it's also possible to have all 3 differ. It happens if you use git add -p, for example. | 20:33 |
| ← ericvw left | 20:33 |
| ← malumalu left | 20:34 |
|
jaalto
| I use external too git-buildpackage (Debian), which magically imports source archive to branches 'upstream' and 'pristine-tar' and then merges the chnages to 'master'. Well, I want to go back to state *before* all that took place. I know the previous 'master' commit it where I want to go, but I'd like to reset all other branches as well to the state of that (can I use DATE somehow)? What's that correct approach? | 20:34 |
|
davegb3
| thiago_home, charon: just want to say that explanation was brilliant... that really helps me understand the staging area - i thought only new changed files got copied in. makes perfect sense now. | 20:34 |
|
thiago_home
| davegb3: it is confusing for new users | 20:35 |
|
jaalto
| commit it =< commit id | 20:35 |
| ← porcnick_ left | 20:35 |
| → porcnick_ joined | 20:36 |
|
jaalto
| I think I just need to 'for BRANCH in list-of-branches; do git reset --hard HEAD~1 ; done', but what do you think? | 20:37 |
|
cxreg
| you would need to check the branches out first | 20:38 |
| ← mmw left | 20:38 |
|
cxreg
| (which then changes the meaning of HEAD) | 20:38 |
|
jaalto
| cxreg: Yes, naturally, but the general concepts? I can't use some git reflog trickery? | 20:38 |
|
cxreg
| you could git update-ref refs/heads/whatever directly | 20:39 |
| ← mm_work left | 20:39 |
| → saurabhverma1 joined | 20:39 |
|
cxreg
| that's a plumbing command | 20:39 |
| → Chaser_ joined | 20:39 |
| ← mw left | 20:40 |
|
jaalto
| cxreg: still per branch basis? | 20:40 |
|
cxreg
| a branch is a ref, so yes | 20:40 |
|
| branch "pristine-tar" is refs/heads/pristine-tar | 20:40 |
|
| try "git for-each-ref" to see what i mean | 20:40 |
| ← porcnick left | 20:40 |
|
jaalto
| cxreg: No chance to say "reset everything to the stae of <date>"? | 20:41 |
|
cxreg
| everything? | 20:41 |
|
| no\ | 20:41 |
|
wereHamster
| jaalto: if you know that @{1} of each branch points to the commit just before the last update, then you can use for-each-ref/update-ref to loop through all branches and update them | 20:41 |
|
jaalto
| cxreg: Eveything, yes. As of before the "magick import" | 20:41 |
| ← plediii_ left | 20:41 |
| ← jtaby left | 20:41 |
|
wereHamster
| jaalto: you could also use @{yesterday} or another date instead of @{1} | 20:42 |
|
jaalto
| wereHamster: ah, that was it. What's the format for day, hour, min? | 20:42 |
| → mw joined | 20:42 |
| ← Suhail left | 20:43 |
| ← vmiklos left | 20:43 |
| → EruditeHermit joined | 20:43 |
| → ilteris_ joined | 20:44 |
|
wereHamster
| jaalto: man git-rev-parse -> specifying revisions | 20:44 |
|
Gitbot
| jaalto: the git-rev-parse manpage can be found at http://git.or.cz/man/git-rev-parse | 20:44 |
|
wereHamster
| fourth bullet point | 20:44 |
| → mmw joined | 20:45 |
|
| jaalto checking wereHamster's manual | 20:45 |
| → Suhail joined | 20:45 |
|
jaalto
| wereHamster: chnage spaces to dots on shell cmd line? as in: {1979-02-26.18:30:00} ? | 20:46 |
|
charon
| or just quote them from the shell | 20:47 |
|
wereHamster
| that, or quote the whole command | 20:47 |
|
| charon reset to HEAD@{teatime} | 20:47 |
|
jaalto
| wereHamster: Ok, thanks. Let's see. | 20:47 |
| ← icwiener left | 20:48 |
| ← Gof left | 20:50 |
| ← bdiego left | 20:51 |
| ← cemerick left | 20:52 |
| ← __iron left | 20:54 |
| → Thiago__ joined | 20:54 |
|
jaalto
| wereHamster: Works fine, thanks again. | 20:54 |
|
EruditeHermit
| what is the recommended mergetool? | 20:54 |
| → __iron joined | 20:54 |
|
jaalto
| cxreg: Do you have experience with pristone-tar? | 20:55 |
|
| tine | 20:55 |
| ← saurabhverma left | 20:57 |
| → _Vi joined | 20:57 |
| ← Ryback_ left | 20:57 |
| → usomaki joined | 20:58 |
|
usomaki
| hi | 20:58 |
| → vmiklos joined | 20:59 |
| ← jerbear left | 21:01 |
|
cxreg
| jaalto: no | 21:02 |
| ← ilteris left | 21:02 |
| ← dzwell left | 21:02 |
|
cxreg
| i didn't even know there was a git-buildpackage | 21:03 |
| → schmrz1 joined | 21:04 |
|
schmrz1
| Hello Everyone. I have created a bare repo in /var/www/, pushed to it from a local repo and now when I try to clone from the bare repo I get "warning: remote HEAD refers to nonexistent ref, unable to checkout." | 21:04 |
| schmrz1 → schmrz | 21:05 |
|
schmrz
| I would appreciate any help. Thanks | 21:05 |
| ← lohrun left | 21:05 |
|
wereHamster
| schmrz: can you post the output of git ls-remote <url> to a pastebin? | 21:07 |
|
schmrz
| From which repo? | 21:07 |
|
| The local one, or the bare one? | 21:07 |
|
cxreg
| on the local one, do "git ls-remote <remotename>" | 21:07 |
|
wereHamster
| you don't have to be in a repo, but <url> should point to the bare repo in /var/www | 21:08 |
| cpg → cpg|brb | 21:08 |
| → quoin- joined | 21:08 |
|
schmrz
| will do | 21:09 |
| ← tfarina left | 21:09 |
| ← Chaser_ left | 21:10 |
|
schmrz
| 4bf3c197ffeab68b3df0f532be0f1575aa9abab9 HEAD | 21:10 |
|
| 4bf3c197ffeab68b3df0f532be0f1575aa9abab9 refs/heads/master | 21:10 |
|
| wereHamster, cxreg, this is it. | 21:10 |
| → porcnick joined | 21:11 |
|
Ilari
| schmrz: git --version ? | 21:11 |
|
wereHamster
| schmrz: when you try to clone the repository, which url do you use? http://, ssh://, git:// or from the local filesystem? | 21:12 |
|
schmrz
| 1.6.0.4 | 21:12 |
|
| wereHamster: http | 21:12 |
|
wereHamster
| schmrz: you probably need to run git update-server-info in the bare repository | 21:13 |
|
schmrz
| will do that now. | 21:13 |
| ← hpa left | 21:13 |
|
wereHamster
| (and enable the post-receive hook to do it automatically after each push) | 21:13 |
| ← porcnick left | 21:13 |
| ← porcnick_ left | 21:13 |
| → porcnick joined | 21:14 |
| ← DasEi left | 21:14 |
|
cxreg
| or simply use git-daemon? | 21:15 |
|
| why does anyone even bother with http | 21:15 |
|
schmrz
| For some reason my friend can foward port 9418, but he can forward port 80... | 21:15 |
|
| Don't ask me... | 21:15 |
| ← koltroll left | 21:15 |
|
cxreg
| heh | 21:16 |
|
Adlai
| schmrz: which one of those should be a "can't"? | 21:16 |
|
schmrz
| can't for 9418 :) | 21:16 |
|
Adlai
| does git:// always run on 9418? | 21:16 |
| ← seangrov` left | 21:16 |
|
schmrz
| Adlai: no but he needs to have port 80 available for http | 21:17 |
| → an0maly joined | 21:17 |
| ← bugfux left | 21:17 |
|
wereHamster
| it's the default port, but you can change that with --port=X | 21:17 |
| → bugfux joined | 21:18 |
| ← g0blin left | 21:19 |
| ← loincloth left | 21:21 |
| → RaceCondition joined | 21:24 |
| ← schmrz left | 21:24 |
| → WebDragon|away joined | 21:24 |
| ← RaceCondition left | 21:25 |
| ← robinr left | 21:26 |
| ← WebDragon left | 21:26 |
| WebDragon|away → WebDragon | 21:26 |
| ← rudi_s left | 21:31 |
| → Tobin joined | 21:31 |
| ← EruditeHermit left | 21:32 |
| ← kumbayo_ left | 21:33 |
| → RaceCondition joined | 21:34 |
|
smotchkkiss
| is it difficult to setup your own git server? | 21:35 |
| ← Geralt left | 21:35 |
| ← Sigma left | 21:36 |
| → [1]intripoon joined | 21:36 |
| → Chaser_ joined | 21:37 |
| ← quoin- left | 21:37 |
|
Ilari
| smotchkkiss: Depends mainly on how co-operative SSHD is and also how substle mistakes one makes... | 21:38 |
| → jceb81 joined | 21:38 |
|
jayne
| is there a way to show differences (git diff) that don't match one or a few regular expressions? | 21:39 |
| ← camwest left | 21:39 |
| ← saurabhverma1 left | 21:39 |
|
jayne
| in this case, a function was renamed, and it's used all over the bloody place, so I want to see differences that _aren't_ the rename | 21:40 |
|
Ilari
| smotchkkiss: There are instructions for setting it up. Some mistakes can be maddeningly difficult to track down. | 21:40 |
|
hobodave
| is it me or does github have daily outages? | 21:40 |
|
smotchkkiss
| Ilari: thank you | 21:40 |
|
| i will look into it i guess | 21:40 |
|
Ilari
| smotchkkiss: And SSHD being so paranoid doesn't help anything debugging those... | 21:41 |
| → DrNick2 joined | 21:42 |
| ← DrNick left | 21:43 |
| DrNick2 → DrNick | 21:43 |
| ← spaceonline left | 21:45 |
| → elliottcable joined | 21:46 |
| → coldwate1lover joined | 21:46 |
| ← coldwaterlover left | 21:47 |
|
RaceCondition
| why does git remote show remotename hang when remotename is down? | 21:47 |
| ← pdobrogost left | 21:47 |
| → ^Einstein joined | 21:48 |
| ← ntoll left | 21:49 |
| cpg|brb → cpg | 21:50 |
|
Ilari
| RaceCondition: IIRC, add -n option so it doesn't try to contact it? | 21:53 |
| ← Tobin left | 21:53 |
|
RaceCondition
| Ilari: OK, but why does it by default? | 21:53 |
| ← intripoon left | 21:53 |
| WebDragon → WebDragon|away | 21:54 |
| ← spaes left | 21:54 |
|
meanburrito920_
| does anyone know why a pre-recieve hook would not be called? | 21:54 |
| ← ppawel left | 21:55 |
| ← lhz left | 21:55 |
| ← _Vi left | 21:56 |
| ← fernandor left | 21:57 |
| → fernandor joined | 22:01 |
| → plediii joined | 22:01 |
| ← ryandotsmith left | 22:03 |
| ← tim left | 22:03 |
|
meanburrito920_
| I have a pre-receive hook in my bare repo. I push to my bare repo and the pre-recieve hook is never called. is there a config setting I need to enable this hook? | 22:03 |
|
Ilari
| meanburrito920_: Not enabled? Pushing via some dumb protocol (like http://)? | 22:03 |
|
meanburrito920_
| I also noticed that this hook does not appear under the hook samples | 22:03 |
| → tim_jenssen joined | 22:03 |
|
meanburrito920_
| Ilari, no, on the local file system | 22:03 |
|
Ilari
| meanburrito920_: What 'ls -l' says about that hook? | 22:03 |
|
cxreg
| meanburrito920_: it must be +x ;) | 22:03 |
|
| that's the "setting" | 22:04 |
|
meanburrito920_
| that would be it :) | 22:04 |
|
| thanks | 22:04 |
| ← nitrate left | 22:04 |
| → lil-murph joined | 22:04 |
| → nitrate joined | 22:05 |
| ← lorandi left | 22:05 |
| → RayMorgan joined | 22:05 |
| ← [1]intripoon left | 22:05 |
| → khmarbaise joined | 22:06 |
| → ryandotsmith joined | 22:06 |
| ← AkumaStreak left | 22:07 |
|
coachz
| $ git commit | 22:07 |
|
| error: There was a problem with the editor 'pspad'. | 22:07 |
|
| Please supply the message using either -m or -F option. | 22:07 |
|
smotchkkiss
| coachz: i used to use pspad | 22:07 |
|
coachz
| i set an EDITOR env var to my path to pspad.exe | 22:07 |
|
| in xp | 22:07 |
|
smotchkkiss
| yea | 22:07 |
|
coachz
| env | 22:07 |
| → robinr joined | 22:07 |
|
coachz
| EDITOR=C:\Program Files\PSPad editor\PSPad.exe | 22:07 |
| → AkumaStreak joined | 22:08 |
|
Ilari
| smotchkkiss: And as hint about setting git server. Use some Unix if at all possible. But if one has to set it up on windows, install cygwin sshd and cygwin git. | 22:08 |
| → ajonat joined | 22:08 |
|
smotchkkiss
| Ilari: it'd be on CentOS | 22:08 |
|
coachz
| so how come it can't find my editor ? | 22:09 |
| → jjuran joined | 22:09 |
|
smotchkkiss
| coachz: do you need quotes around that path? | 22:09 |
| ← bcardarella left | 22:09 |
|
coachz
| none of the others have them | 22:09 |
|
smotchkkiss
| coachz: ok i'm not sure then | 22:09 |
| ← AkumaStreak left | 22:10 |
|
coachz
| i have core.editor=pspad | 22:10 |
|
| should that be pspad.exe ? | 22:10 |
| ← khmarbaise left | 22:10 |
|
meanburrito920_
| coachz, shouldnt that be pspad.exe | 22:10 |
|
| haha | 22:10 |
|
| too slow | 22:10 |
|
coachz
| i try it | 22:10 |
| ← ctusar left | 22:11 |
| → khmarbaise joined | 22:11 |
| ← Evanlec left | 22:11 |
| ← bugfux left | 22:12 |
| ← candybar left | 22:12 |
| ← Thiago__ left | 22:13 |
|
coachz
| nope, didn't work | 22:13 |
|
| core.editor=pspad.exe | 22:13 |
|
| in global .gitconfig | 22:13 |
| ← murphl left | 22:14 |
|
Ilari
| coachz: Maybe try 'pspad.exe' from the prompt? Does that work? | 22:14 |
|
coachz
| not because it's not in the path, just in the env var | 22:14 |
|
| maybe i need a command line option in gitconfig | 22:14 |
|
RayMorgan
| Hello, is there anyway to create a branch that is always kept up to date with another branch? (other than just symlinking .git/refs/heads/foo -> .git/refs/heads/) | 22:14 |
| ← knittl left | 22:15 |
|
RayMorgan
| .git/refs/heads/bar** | 22:15 |
| → psytek joined | 22:15 |
| ← hugoxrosa left | 22:15 |
| ← thiago_home left | 22:15 |
|
davegb3
| coachz: i did this in windows for notepad++ as the editor, and i couldn't get any combination of quotes to work - in the end i used a batch file to launch the absolute path, and put the batch file in a dir with no spaces (like c:\windows) | 22:15 |
|
funkycat90210_
| when I do a git diff, not all modified files show up. Why is that? | 22:16 |
|
coachz
| this didn't work either EDITOR=C:\Program Files\PSPad editor\PSPad.exe %1 | 22:16 |
|
| do i need %1 ? | 22:17 |
|
Ilari
| coachz: If whatever you put into that option doesn't work on command line, it's probably not going to work as editor setting. | 22:17 |
|
coachz
| well an env var is different than a path | 22:17 |
| → Evanlec joined | 22:17 |
|
Ilari
| coachz: Leave out the %1 | 22:17 |
|
coachz
| the instructions for git didn't say to add it to the path | 22:17 |
|
| i tried before without %1 | 22:17 |
|
| i'm just grasping | 22:17 |
|
Ilari
| coachz: Does 'C:\Program Files\PSPad editor\PSPad.exe' from command line work? | 22:18 |
|
coachz
| yeah | 22:18 |
|
| i'll add to path now and try | 22:18 |
| ← smotchkkiss left | 22:18 |
| fpcfan → fpcfan-away | 22:19 |
| ← fernandor left | 22:19 |
|
coachz
| adding to path didn't help either | 22:20 |
| → mw_ joined | 22:20 |
|
coachz
| i'm supposed to be lost asking rebase questions, not setting up a stupid editor | 22:21 |
| ← john39091 left | 22:22 |
| → john3909 joined | 22:23 |
|
Ilari
| coachz: Maybe the space in path causes trouble? | 22:23 |
|
coachz
| let me try with notepad first | 22:24 |
| → jnareb joined | 22:24 |
| ← MrMeek left | 22:24 |
| → cloudhead joined | 22:26 |
|
coachz
| that works | 22:26 |
|
| %SystemRoot%\system32\notepad.exe | 22:26 |
|
| just that in the EDITOR env | 22:26 |
| → Hideki joined | 22:26 |
|
jnareb
| Grrr... I hate not-blogs (looks like a blog, but doesn't have comments) like http://blog.zacharyvoase.com/post/147813314/why-mercurial-git-or-how-i-learned-to-stop-censoring | 22:26 |
|
coachz
| and core.editor notepad without the exe | 22:26 |
| → JEEBcz joined | 22:27 |
| ← usomaki left | 22:27 |
|
jnareb
| Ever heard about operating system written in higher-level, dynamic language? | 22:27 |
| ← mmw left | 22:28 |
|
coachz
| so i put pspad in c:\pspad\pspad.exe and it runs fine from there, change the env var for EDITOR to that and core.editor to pspad and it doesn't run | 22:29 |
|
| $ git commit | 22:29 |
|
| error: There was a problem with the editor 'pspad'. | 22:29 |
|
| Please supply the message using either -m or -F option. | 22:29 |
|
SRabbelier
| jnareb: ping | 22:29 |
|
Ilari
| coachz: If you have core.editor set to 'pspad', does 'pspad' (as such) from command line work? | 22:30 |
|
cxreg
| coachz: path issue? | 22:30 |
| ← ph^ left | 22:30 |
|
coachz
| yeah, looks like git is to blame and i need to run it from a batch file as mentioned earlier http://stackoverflow.com/questions/10564/how-can-i-set-up-an-editor-to-work-with-git-on-windows | 22:30 |
|
SRabbelier
| jnareb: that blogpost is.... wrong, to say the least :P | 22:30 |
|
Ilari
| Cpp??? | 22:31 |
|
jnareb
| SRabbelier: yep. And no comments means no way to (try) to correct them (like fogetting to exclude contrib/ from software metric, at least) | 22:31 |
|
cxreg
| SRabbelier: the "5 features" post is wrong too | 22:31 |
|
SRabbelier
| jnareb: write him an email :P | 22:31 |
|
| jnareb: and/or poke on irc | 22:32 |
|
Ilari
| Wonder what files it detects as CPP and Python. AFAIK, there's not supposed to be any. | 22:32 |
|
cxreg
| i submitted a correction to that one weeks ago, and was completely ignored | 22:32 |
|
jnareb
| cxreg: well, perhaps with exception of hg-serve, and "git init directory" (which is in master, he, he , he) | 22:32 |
|
cxreg
| no doubt the author has no interest in a fair comparison | 22:32 |
|
| pardon me, your bias is showing :p | 22:32 |
| ← khmarbaise left | 22:32 |
|
jnareb
| cxreg: alleged-blog? supposedly has comments, but can't post them? | 22:32 |
|
cxreg
| they're moderated | 22:33 |
|
jnareb
| Ilari: contrib/ is not excluded | 22:33 |
|
SRabbelier
| jnareb: hg-serve doesn't seem very useful to me tbh, look at the usage stats of git-instaweb, why would a git-instaserve be used more :P | 22:33 |
|
jnareb
| cxreg: moderated is not censored... | 22:33 |
|
| SRabbelier: hg-serve == git-instaweb + git-daemon; I think the instadaemon part might be more important | 22:34 |
| → naeu joined | 22:34 |
|
jnareb
| SRabbelier: and usage stats for instaweb aren't that bad, I think | 22:34 |
|
Ilari
| In version I have, I can find three contrib python scripts. But no idea what that CPP was for? | 22:34 |
|
SRabbelier
| jnareb: didn't the survey say that like, most people have never used it? | 22:35 |
| → ben_h joined | 22:35 |
|
cxreg
| oh, heh. it looks like the author removed the part i objected to, with no indication that a correction was made | 22:35 |
| ← mw left | 22:35 |
|
SRabbelier
| omg | 22:35 |
|
| the five features | 22:35 |
|
| Sensible defaults part | 22:35 |
|
| the part about incremental commits | 22:35 |
|
| that's just so retarded | 22:35 |
|
| just because _you_ don't understand something (because you haven't bothered to try and learn how to use it), doesn't mean it's useless | 22:36 |
| → _Vi joined | 22:36 |
|
wereHamster
| at least he admitted that it's not a fair comparison | 22:36 |
|
jnareb
| Ilari: CPP (C Pre-Processor ?) is probably misdetection | 22:37 |
|
SRabbelier
| he did | 22:37 |
| → JEEB__ joined | 22:37 |
|
SRabbelier
| oh, btw, did the meaning of 'HEAD~' change since 1.5.4 and 1.6.4? | 22:37 |
|
| it seems that in 1.6.4 'HEAD~' and 'HEAD~1' are the same | 22:37 |
|
| but that in 1.5.4 'HEAD~' and 'HEAD' are identical | 22:38 |
|
wereHamster
| probably a bug in 1.54, because HEAD~ is supposed to mean HEAD~1 | 22:38 |
| ← kpreid_ left | 22:38 |
|
jnareb
| SRabbelier: in 1.6.3.3 is the same | 22:38 |
| ← coldwate1lover left | 22:38 |
| → coldwaterlover joined | 22:38 |
|
jnareb
| SRabbelier: I mean HEAD~ == HEAD~1 | 22:38 |
|
SRabbelier
| jnareb: right | 22:38 |
|
| annoying bug then | 22:38 |
|
| SRabbelier mutters and wishes distro's would update to 1.6.x already | 22:39 |
| ← Chaser_ left | 22:39 |
|
Q|
| SRabbelier: Jaunty has 1.6.0.4 | 22:39 |
|
jnareb
| "Quick Local References" i.e. 'hg checkout 18' for '# 18:a432bc' in Mercurial... I don't think that it is very useful at least in succesfull project, where it would be rather 'hg checkout 6280'... or was it 6820 :-) | 22:41 |
| → Geralt joined | 22:41 |
|
coachz
| how obvious ! git config --global core.editor "'C:\Program Files\PSPad editor\PSPad.exe' -m" | 22:41 |
|
| that works | 22:41 |
|
SRabbelier
| Q|: sweet, good thing I'm on Hardy then :( | 22:41 |
|
coachz
| no batch file needed | 22:41 |
|
SRabbelier
| jnareb: so true ^_^ | 22:42 |
| ← Geralt left | 22:42 |
|
SRabbelier
| jnareb: sides, it creates ambiguity | 22:42 |
|
| jnareb: does 6280 mean r6280 or is it an abbreviation | 22:42 |
| → MrUnleaded joined | 22:42 |
|
Q|
| SRabbelier: :D Maybe you could use a backport? I don't think Jaunty is really worth the update, except for it's fast boot up, maybe. | 22:42 |
|
jnareb
| SRabbelier: well, author admits that 'These numbers don't travel across clones' | 22:43 |
|
coachz
| does that help anyone else use their fav editor ? git config --global core.editor "'C:\Program Files\PSPad editor\PSPad.exe' -m" | 22:43 |
| ← JEEB left | 22:43 |
|
Q|
| SRabbelier: But on the other hand there's simply TO much drawbacks, like that pulseaudio thing. Gnah | 22:43 |
|
SRabbelier
| Q|: nah, I compiled my own | 22:43 |
|
| Q|: it's just annoying that I have to | 22:43 |
|
Q|
| SRabbelier: ^^ | 22:43 |
|
| SRabbelier: That's the price I guess ;) | 22:43 |
|
jnareb
| errr... you means is 6280 shortened shortened SHA-1 or number? | 22:43 |
|
SRabbelier
| jnareb: yes | 22:43 |
|
jnareb
| I guess that there is some order of precedence, like for git: branches, tags, and tags named deadbeef ;-) | 22:44 |
| ← jrmuizel left | 22:44 |
|
SRabbelier
| jnareb: hehhe, that's just asking for trouble ^_^ | 22:44 |
| ← mjf left | 22:44 |
| ← naeu left | 22:45 |
|
jnareb
| but there at least you know that you are shooting in the direction of foot with such names, and how to resolve ambiguity... | 22:45 |
| ← cbreak left | 22:45 |
| → gerberb joined | 22:45 |
|
jnareb
| refs/heads/deadbeef | 22:46 |
|
stdorb
| s/.*/bbq/ | 22:46 |
|
MrUnleaded
| if one were to start making something similar to git-svn to import from one SCM to git....are there any existing tools to help with that? | 22:46 |
|
SRabbelier
| jnareb: how about we add a `git push --delete somebranch` ? | 22:47 |
|
jnareb
| MrUnleaded: git-fast-import | 22:47 |
|
SRabbelier
| jnareb: as sugar for 'git push :somebranch' ? | 22:47 |
|
| MrUnleaded: but wait, there's more | 22:47 |
|
| MrUnleaded: what SCM are you speaking of, there are many such efforts already? | 22:47 |
|
jnareb
| SRabbelier: I think that was proposed already, and Junio or Linus are for that. Now to find suck^W volunteer who submits patch ;-) | 22:47 |
|
SRabbelier
| MrUnleaded: p4, hg, csv to name a few | 22:47 |
|
| jnareb: sure, I'll do it | 22:48 |
|
jnareb
| SRabbelier: _csv_ ? | 22:48 |
|
SRabbelier
| jnareb: I'll resend my 'fast-import options' patch in about a week too | 22:48 |
|
jnareb
| ;-))))) | 22:48 |
|
| SRabbelier: I rather liked this patch | 22:48 |
|
jaalto
| Can I undo a "git stash apply". I mistakenly ran in wrong branch? | 22:48 |
|
SRabbelier
| jnareb: I'm quite sure there's git<->csv bridges :P | 22:48 |
|
| jnareb is working on AJAX-y interactive blame | 22:49 |
| → fernandor joined | 22:49 |
| → AkumaStreak joined | 22:49 |
|
MrUnleaded
| SRabbelier: well actually i have been having troubles using a TFS server the TFS has an SVN interface but it doesnt play nicely with git svn so I wanted to see if maybe i could find a way to either import via TFS or maybe analyze whats going on with git-svn/svn communication | 22:49 |
|
SRabbelier
| jaalto: if you don't have any important changes "git reset --hard" should work just fine | 22:49 |
|
davegb3
| jaalto: or just re-stash it? "git stash" | 22:49 |
|
jnareb
| jaalto: or stash again ;-) | 22:49 |
|
jaalto
| SRabbelier: Ok, but doesn't "stash apply" move stash pointer backward. I mean, can I still re-apply in another branch? | 22:50 |
|
SRabbelier
| jnareb: that would create two stash entries | 22:50 |
|
| jaalto: no, you're confused with 'git stash pop' | 22:50 |
| ← fernandor left | 22:50 |
|
SRabbelier
| MrUnleaded: mhhh, I dunno about TFS, I think there's a MVSS one maybe | 22:50 |
|
| MrUnleaded: but TFS I don't recall | 22:51 |
| → djgera joined | 22:51 |
|
jnareb
| MrUnleaded: I don't think there is TFS importer for git. Perforce and ClearCase, yes. See also http://git.or.cz/gitwiki/InterfacesFrontendsAndTools for (incomplete) list of various importers. | 22:51 |
|
jaalto
| SRabbelier: I see now that "stash list" has it still. Good. | 22:51 |
| ← ryandotsmith left | 22:51 |
|
MrUnleaded
| ok thanks | 22:51 |
| → cbreak joined | 22:52 |
|
SRabbelier
| MrUnleaded: btw, writing an exporter is extremely easy :D | 22:52 |
|
| MrUnleaded: you can get something basic working in about a weekend | 22:52 |
|
| MrUnleaded: so if it's important to you, give it a shot | 22:52 |
|
| MrUnleaded: see http://www.kernel.org/pub/software/scm/git/docs/git-fast-import.html for the format | 22:52 |
| ← JEEBcz left | 22:53 |
|
MrUnleaded
| SRabbelier: ok thanks | 22:53 |
|
jnareb
| SRabbelier, MrUnleaded: the problem might be with fast _extracting_ data from TFS. Is there any language binding / library for it? | 22:53 |
| JEEB__ → JEEB | 22:53 |
|
stdorb
| TFS = ? | 22:54 |
|
MrUnleaded
| microsofts attempt at a SCM | 22:55 |
|
SRabbelier
| jnareb: true enough | 22:56 |
|
jnareb
| stdorb: TFS == MS Team Foundation Server. Something MS actually use themselves, as opposed to the mockery that is MS Visual SourceSafe... | 22:56 |
| ← ben_h left | 22:56 |
| → ben_h joined | 22:57 |
| ← juanjoc left | 22:58 |
| → drizzd joined | 22:58 |
|
coachz
| VSS is a toy | 22:58 |
|
Nafai
| VSS is awful | 22:59 |
| ← bgerber left | 22:59 |
|
cxreg
| jnareb: i'd rather use csv as version control than cvs | 22:59 |
|
stdorb
| haha | 23:00 |
|
coachz
| but it corrupts at no extra charge | 23:00 |
| → kpreid_ joined | 23:00 |
|
stdorb
| cxreg: that could almost come from Linus itself :p | 23:00 |
| ← cannonball left | 23:00 |
|
Fissure
| i realized a while ago that i feel about itunes the same way linus feels about cvs | 23:01 |
|
SRabbelier
| Fissure: how's that? | 23:01 |
|
coachz
| like you're being screwed | 23:02 |
|
Fissure
| well, not *quite*, but i feel like lots of player authors want to be just like itunes and wind up cloning all the bad things about it along with the good | 23:02 |
|
coachz
| i dragged a video iso file onto vlc player today and it played it, blew me away | 23:02 |
|
| even the menus worked with the mouse | 23:02 |
|
Fissure
| like, why the hell is album art downloads put as a higher priority than actually playing music properly instead of introducing random skips? | 23:03 |
|
coachz
| haha | 23:03 |
|
| you mean like why does windows 7 start skipping like crazy when you plug in an external sata drive during playback? hahahaha | 23:03 |
|
| they never learn | 23:04 |
|
Fissure
| i'm talking about linux players, actually | 23:04 |
| → fernandor joined | 23:04 |
|
coachz
| but the just don't prioritize the playback of media properly | 23:04 |
|
Fissure
| try listening to dark side of the moon; the half-second breaks between tracks somewhat kills the effect | 23:04 |
|
coachz
| no kidding | 23:04 |
| davegb3 → davegb3|away | 23:04 |
|
coachz
| but it makes rap sound normal | 23:04 |
| davegb3|away → davegb3|away| | 23:04 |
|
Fissure
| eh? | 23:04 |
|
coachz
| instead of "yo baby" you get "yo yo yo yo yo baby" | 23:05 |
|
| and it sounds the same | 23:05 |
| ← fernandor left | 23:05 |
| ← parasti left | 23:06 |
|
jnareb
| http://xkcd.com/411/ (well, it is about techno, but same difference) | 23:07 |
| ← boto left | 23:08 |
|
Fissure
| ha, wasn't talking about that kind of skipping | 23:08 |
| → montylounge joined | 23:08 |
| → bcardarella joined | 23:08 |
|
Fissure
| can't remember actually having that happen on linux | 23:08 |
| ← drizzd_ left | 23:08 |
| → gma joined | 23:09 |
| ← wshimmy left | 23:10 |
| ← summatusmentis left | 23:10 |
|
jnareb
| Let's somebody remind me why we allow Perl but forbid Python (in git core, not in contrib)? | 23:11 |
| → summatusmentis joined | 23:11 |
|
stdorb
| python seems slower :p | 23:12 |
|
SRabbelier
| jnareb: cos... perl is old... and... linus likes old? | 23:12 |
|
| SRabbelier has no clue | 23:12 |
| ← agile left | 23:13 |
| → Rolenun joined | 23:13 |
|
SRabbelier
| jnareb: oh, and because Dscho doesn't like it :P | 23:13 |
| ← montylounge left | 23:13 |
|
coachz
| my pspad editor is working for commit messages....yay | 23:13 |
|
jnareb
| well, that might have been different in 2005, when Git started: portability and having Python installed | 23:13 |
|
stdorb
| in 2005? My system did not require a python interpreter (distro config scripts perl or something) | 23:13 |
| ← jigfox left | 23:13 |
|
jnareb
| and because Git is not mercurial, eh... :-PPPPP | 23:14 |
|
stdorb
| merc has strange terminology. | 23:14 |
|
SRabbelier
| jnareb: maybe because we want to not have too many dependencies? | 23:14 |
|
stdorb
| CVS has files, dirs, commits, tags, SVN has them too, Git has blobs, trees, commits, tags and Hg has , uhm remind me, manifests and something | 23:15 |
| → wshimmy joined | 23:15 |
|
jnareb
| what's one more dependency ;-) besides, we can^Wcould get rid of Perl ;-PPPPPP | 23:16 |
|
SRabbelier
| jnareb: yesplease.jpg | 23:16 |
|
stdorb
| make it in C | 23:16 |
|
jnareb
| stdorb: Mercurial has manifests (like trees, but not hirearchical) and changerevs (like commits). It doesn't have tag objects (and lightwieght tags have very... hmmm... 'interesting' implementation) | 23:17 |
|
SRabbelier
| git-add--interactive.perl git-difftool.perl git-relink.perl git-send-email.perl git-svn.perl | 23:17 |
|
| jnareb: wha'ts relink even do? | 23:17 |
|
jnareb
| SRabbelier: and gitweb.perl | 23:18 |
| ← summatusmentis left | 23:18 |
|
SRabbelier
| jnareb: you don't seriously want to rewrite that though? | 23:18 |
| → summatusmentis joined | 23:18 |
|
stdorb
| jnareb: that's what I meant. It's too different from Linus's thinking (which, eventually, led to Git) | 23:19 |
| → jrmuizel joined | 23:19 |
|
jnareb
| SRabbelier: relink looks like relic from the times of unpacked repositories (and "git clone --local" hardlinking) | 23:19 |
|
coachz
| one day i would like to know enough to give a talk on git and i would teach commits by having a guy come in with a flash camera and take snapshots and yell commit each time and then leave the room....hehe | 23:19 |
|
jnareb
| SRabbelier: instead of redoing "git clone --local" you can git-relink... (or use alternates) | 23:19 |
|
SRabbelier
| jnareb: ok, so no-one ever uses that :P | 23:20 |
|
| jnareb: that leaves 'add -i', which I <3 :P | 23:20 |
|
| so want to keep that :P | 23:20 |
|
jnareb
| SRabbelier: let me check... | 23:20 |
| ← Turias left | 23:20 |
|
stdorb
| Git now has so much porcelain that the cupboard on the wall runs risk to crash down. | 23:20 |
|
SRabbelier
| and send-email could be easily rewritten in python too | 23:20 |
| → Tapnzout joined | 23:20 |
|
SRabbelier
| stdorb: true :) | 23:20 |
| → d0k_ joined | 23:21 |
| → agenteo joined | 23:22 |
| ← stringo0 left | 23:22 |
| ← Tapout left | 23:22 |
|
jnareb
| SRabbelier: 5 often, 11 sometimes, 70 rarely / 2406 in this year survey: http://www.survs.com/shareResults?survey=2PIMZGU0&rndm=678J66QRA2 | 23:22 |
| → danggun joined | 23:22 |
| → Tapout joined | 23:23 |
|
jnareb
| SRabbelier: I guess that 'add -i' would get rewritten in C as soon as API stabilizes and features freeze | 23:23 |
|
SRabbelier
| jnareb: which one? | 23:23 |
| ← summatusmentis left | 23:23 |
| → montylounge joined | 23:23 |
|
stdorb
| how long is the survey still open? | 23:23 |
|
danggun
| Hey everyone. I accidentally deleted a directory from master while also making changes in master. What's the best way to handle this? Should I commit the changes and then cherrypick (?) from the previous commit? | 23:23 |
|
jnareb
| errr... that was about git-relink (question 17 = 16 cont) | 23:23 |
|
SRabbelier
| danggun: 'git checkout path/to/deleted/directory'? | 23:24 |
|
| err | 23:24 |
|
| danggun: 'git checkout -- path/to/deleted/directory'? | 23:24 |
|
| (you need the --) | 23:24 |
|
jnareb
| stdorb: survey is open till 15 September (1 month and a bit) | 23:24 |
| ← RaceCondition left | 23:24 |
|
SRabbelier
| jnareb: oh, the relink one, right | 23:24 |
| ← jjuran left | 23:24 |
|
stdorb
| jnareb: question 2 should not have been a freeform text | 23:24 |
| ← MisterN left | 23:24 |
|
Hideki
| is the survey result considered to be "publicized" info, or just internal to IRC? | 23:24 |
|
danggun
| Sweet! But I'm curious. Now all the directories in that tree have a 0 value instead of 4096. What does that mean? | 23:25 |
|
SRabbelier
| Hideki: there's no such thing as "internal to IRC" | 23:25 |
|
danggun
| I do have all my fiels and they have data but the directories say 0. | 23:25 |
|
| files* | 23:25 |
|
jnareb
| hmmm... looks like git-relink is no less rare than git-cvsserver and git-imap-send... | 23:26 |
|
Hideki
| SRabbelier: I know what you mean, what I meant is if someone will be mad if I write some remarks about it on my blog, etc. | 23:26 |
| ← jrmuizel left | 23:26 |
| ← prusnak left | 23:26 |
|
jnareb
| Hideki: you mean http://www.survs.com/shareResults?survey=2PIMZGU0&rndm=678J66QRA2 URL? this is ongoind on-the-fly analysis of current results | 23:26 |
|
SRabbelier
| Hideki: no, we won't :) | 23:26 |
| almostautomated → almostautomated| | 23:26 |
|
SRabbelier
| Hideki: as jnareb said though, survey is still open | 23:26 |
|
coachz
| i created a repo, added all the files and committed them. at this point all my files are considered tracked right ? and I will have no files staged right ? | 23:27 |
| ← Tapnzout left | 23:27 |
|
Hideki
| ok, I will hold off until survey's over :-) | 23:27 |
| → qrush joined | 23:27 |
|
jnareb
| Hideki: but please if you provide some analysis of survey, or partial survey results, post on git mailing list an announcement at least (git@vger.kernel.org, doesn't require to be subscribed), and add link to http://git.or.cz/gitwiki/GitSurvey2009 wiki page, please | 23:28 |
| ← d0k left | 23:28 |
|
Hideki
| I'm mainly advocating git to Japanese speaking demography and I'm always looking for some materials :-) | 23:28 |
|
| jnareb: will do :-) | 23:28 |
|
jnareb
| Hideki: even if it is not in English | 23:28 |
|
stdorb
| We will assimilate and translate your review. Resistance is futile... :p | 23:29 |
| ← mithro left | 23:29 |
|
jnareb
| Hideki: Junio C Hamano, git maintainer, IIRC is publishing some Git book in Japaneese (c.f. http://gitster.livejournal.com) | 23:29 |
| → summatusmentis joined | 23:29 |
| → plediii_ joined | 23:30 |
|
jnareb
| Hideki: after survey ends I would publish CSV and Excel (XLS) export of data, similar to http://git.or.cz/gitwiki/GitSurvey2008 | 23:30 |
|
jaalto
| I'd like to ignore STDOUT, but send STDERR to a filter: "command > /dev/null | post-process-stderr" What do I need? | 23:31 |
|
Hideki
| jnareb: yeah, I think there were fairly big coverage of git in the magazine, unfortunately, I'm catering to Japanese demography from the US, so I don't have a copy :-( | 23:31 |
| → stianhj joined | 23:32 |
| ← klbate left | 23:32 |
|
almostautomated|
| Hi all! Could someone help me troubleshoot a patch issue I'm having with alpine? The patch works fine if I save locally and apply it, if I import and then directly export it, yet if I send it to myself it wont apply. :/ | 23:32 |
|
| http://git.pastebin.com/d3fef76d | 23:32 |
|
| The highlighted line needs @@ added to the front because of pastebin's substitution of @@ for a highlighted line | 23:32 |
|
| ohhh, that is the version that worked locally... I'll grab the sent to self | 23:33 |
|
Hideki
| jnareb: interesting thing I found about the survey, the answering survey itself was quite informative; for trying out commands I've never used before :-) | 23:33 |
|
jnareb
| jaalto: nothing, it should work (perhaps '> /dev/null' --> '1> /dev/null') | 23:34 |
| → plediii__ joined | 23:34 |
| ← summatusmentis left | 23:35 |
|
Ilari
| almostautomated|: Diff the pre- and post-send versions of patch and see what's the difference is? | 23:35 |
|
| jnareb suddenly remembers that he should take the survey he created (with help of git users)... | 23:35 |
| → summatusmentis joined | 23:35 |
|
SRabbelier
| jnareb: lol, you didn't answer it yet? | 23:35 |
|
coachz
| i created a repo, added all the files and committed them. at this point all my files are considered tracked right ? and I will have no files staged right ? | 23:35 |
| ← MrUnleaded left | 23:36 |
|
jnareb
| SRabbelier: nope, I forgot | 23:36 |
|
| well, I try to prepare for free-form essay questions, but... | 23:36 |
|
| coachz: after "git commit" or "git commit -a | 23:37 |
|
| coachz: you should not have any staged changes, yes | 23:37 |
|
coachz
| just git commit cuz i already added all the fiels | 23:37 |
|
| files | 23:37 |
|
| so how do i now remove a file from being tracked without deleting it from my working dir | 23:38 |
| ← crack_head left | 23:38 |
|
jnareb
| coachz: "git rm --cached <file>" I think is what you want (and then commit removal, of course) | 23:38 |
| → plediii___ joined | 23:39 |
|
coachz
| doesn't that remove it from staging | 23:39 |
|
| but i dont have anything staged | 23:39 |
|
jnareb
| coachz: this removes it from index (stages removal) | 23:40 |
|
coachz
| but if i don't have anything in my index how can it be removed | 23:40 |
|
almostautomated|
| Ilari: it is showing differences... when I pipe the diff to a file and then cat -E it I'm seeing a '$' marker on each line marked as a difference... | 23:40 |
|
jnareb
| 'nothing staged' deoepnds on the definition of staged, if it is for example staged == version in index / staging area is != version in working directory | 23:41 |
|
coachz
| i guess i just don't get it then | 23:41 |
|
jnareb
| coachz: after commit you have in index what you have in commit == what you have tracked in working directory | 23:42 |
|
coachz
| i created a repo, added all the files and committed them. at this point all my files are considered tracked right ? and I will have no files staged right ? | 23:42 |
|
jnareb
| coachz: after commit working area == index == HEAD | 23:42 |
|
coachz
| after commit, doesn't the index / staged area become empty ? | 23:42 |
|
| ahhh | 23:42 |
| → plediii____ joined | 23:42 |
|
jnareb
| coachz: no, it becomes same as commit (HEAD) | 23:42 |
| → azeroth-work joined | 23:42 |
|
jnareb
| staged file <=> file with version in index different | 23:43 |
|
coachz
| so to remove it from tracking i would remove it from staged as you mentioned cool | 23:43 |
| → summatus1entis joined | 23:44 |
| ← summatusmentis left | 23:44 |
|
coachz
| thanks for helping a noob out jnareb ! | 23:44 |
| ← Tuomas left | 23:45 |
|
jnareb
| coachz: you are welcome | 23:45 |
| ← plediii left | 23:46 |
|
Hideki
| are there any hooks executed for when executing 'git status" | 23:47 |
| ← juan_arandaalvar left | 23:47 |
|
Fissure
| nope | 23:47 |
|
| considering it's a non-mutating operation, i don't know why you'd want one | 23:48 |
|
Hideki
| Fissure: ok, well, I'm just trying to ponder some cross-platform filename conversion, because, Linux uses UTF-8 for Japanese file names, and Windows uses cp920 or something (basically Shift-JIS, I believe) | 23:48 |
|
| and git stores these index in byte-stream | 23:49 |
| ← plediii_ left | 23:49 |
| ← DavidKlein left | 23:49 |
| ← agenteo left | 23:49 |
|
jnareb
| Hideki: i18n.commitEncoding ? | 23:50 |
|
| Hideki: file namse are stored as byte stream | 23:50 |
|
| Hideki: with no encoding information | 23:50 |
|
Hideki
| jnareb: yeah, so I thought it had to be converted at front-end, but i18n.commitEncoding does that? | 23:51 |
| ← Guest89136 left | 23:51 |
|
Hideki
| Windows filename <--> Shift-JIS to/from UTF <--> git <--> repository <--> git <--> UTF to/from Shift-JIS <--> Linux filename | 23:51 |
| ← coldwaterlover left | 23:52 |
| ← drizzd left | 23:52 |
|
almostautomated|
| Ilari: duh, I gues cat -E _would_ show the '$' symbols. Here's the pastebin diff of the local vs sent to self:: http://git.pastebin.com/pastebin.php?diff=d48129789 | 23:52 |
|
jnareb
| Hideki: errr... no, i18n.commitEncoding is about commit encoding. Git treats file names (and file contents) as bag of bytes, and doesn't store encoding information anywhere. Which means that you are f*** if you work on filesystems with different filename encoding (and non-ASCII filenames). | 23:52 |
|
stdorb
| it would be much easier if you just used UTF on Linux | 23:52 |
|
kibombo
| if i want to start cloning and committing from a git repo, how do i do that? | 23:53 |
|
| from and to | 23:53 |
|
stdorb
| kibombo: you just clone | 23:53 |
|
kibombo
| git clone <git-url> | 23:53 |
|
| then what? | 23:53 |
| ← hyperair left | 23:53 |
| ← jceb81 left | 23:53 |
|
kibombo
| git init? | 23:53 |
|
stdorb
| then you start vi :p | 23:53 |
|
kibombo
| or git push origin master | 23:53 |
|
Hideki
| stdorb: well, it's more of it'd be much easier if Windows uses UTF :-) I am in fact using UTF on Linux | 23:54 |
|
wereHamster
| kibombo: it would probably be best if you first read one of the tutorials on http://git-scm.com/ | 23:54 |
|
jnareb
| Hideki: there are some beginnings of code to deal with filesystem encoding issues, IIRC currently only for case-preserving case-insensitive filesystems, but planned also for MacOS X nonstandard NDF decomposition of Unicode | 23:54 |
|
stdorb
| Hideki: last time I checked, Windows was using UTF-16 for its filesystem stuffage on my side | 23:54 |
| ← plediii__ left | 23:54 |
|
coachz
| git clone <git-url> brings the repo down so you don't need to do git init right guys ? | 23:54 |
|
kibombo
| well, after moving a file into the dir, i know you do git add <file> ; git status; git commit -a -m "comment"; then what?... git push origin master? | 23:54 |
|
stdorb
| coachz: git-clone = git-init + git remote add + git fetch + git checkout ... | 23:54 |
| → smotchkkiss joined | 23:55 |
|
Hideki
| stdorb: internally, yes, but they can't lose it on the front-end because of compatibility issue, I think | 23:55 |
|
kibombo
| wereHamster: i've read some tutorials on git already | 23:55 |
|
stdorb
| kibombo: The manual page, quick! | 23:55 |
|
coachz
| stdorb, nice | 23:55 |
|
stdorb
| Hideki: frontend? | 23:55 |
|
jnareb
| Hideki: and there was idea (but not accepted or no implementation) of pre-add hook | 23:55 |
|
Hideki
| stdorb: cp932, is the actual encoding they use... | 23:55 |
|
kibombo
| my problem is.. | 23:55 |
|
Fissure
| kibombo: that should work, though you should just be able to 'git push' | 23:55 |
|
kibombo
| fatal: protocol error: expected sha/ref, got | 23:55 |
| → crack_head joined | 23:55 |
|
wereHamster
| kibombo: what command did you run? | 23:55 |
|
kibombo
| git push | 23:55 |
|
Fissure
| kibombo: what kind of url did you clone? | 23:55 |
|
kibombo
| git push origin master does the same | 23:55 |
| ← ryanakca left | 23:56 |
|
Hideki
| stdorb: cp for code page, I think | 23:56 |
|
stdorb
| well yeah but codepage becomes pretty irrelevant if you use CJK in filenames | 23:56 |
|
kibombo
| git://gitorious.org/project/sub.git | 23:56 |
| ← summatus1entis left | 23:56 |
| → summatusmentis joined | 23:56 |
|
kibombo
| Fissure ^ | 23:56 |
|
Fissure
| kibombo: you can't push to git:// | 23:56 |
|
wereHamster
| kibombo: you can't push through git://, you have to use ssh:// | 23:56 |
|
stdorb
| and since I can store Unicode chars in Windows filenames, there's no codepage crap I am bound to. Sort of | 23:56 |
|
kibombo
| so..? | 23:56 |
|
Fissure
| well, you *can* but only if it's enabled and people would be crazy to do that on a publicly-accessible server | 23:56 |
|
Hideki
| jnareb: I see, yeah it seems to be quite weird one, as it won't be problem if you are pushing/pulling across same OSes | 23:57 |
|
kibombo
| do i have to rename remote or something? | 23:57 |
|
wereHamster
| kibombo: if you got to the project homepage on gitorious, there's the 'Push URL' | 23:57 |
|
Fissure
| kibombo: you can just edit the url in .git/config | 23:57 |
|
Hideki
| stdorb: looking at how exactly it handles, empirically this has been a problem | 23:57 |
|
stdorb
| I may need to inspect how cygwin deals with Unicode filenames tho | 23:57 |
| → ProperNoun joined | 23:57 |
|
wereHamster
| kibombo: in your local repository, run: git config remote.origin.url <the-push-url-from-gitorious> | 23:57 |
|
kibombo
| the push url given is git://gitorious.org/project/sub.git | 23:58 |
|
Fissure
| that's... not right | 23:58 |
| ← plediii___ left | 23:58 |
| ← bcardarella left | 23:58 |
|
kibombo
| i meant... [email@hidden.address] | 23:58 |
|
| there | 23:58 |
|
jnareb
| Hideki: or if all filesystems use UTF-8 (in sane way) | 23:59 |
| ← gma left | 23:59 |
|
wereHamster
| kibombo: see, totally different URLs ;) | 23:59 |
|
jnareb
| Hideki: or you don't use non-portable filenames | 23:59 |
|
kibombo
| there it goes :) | 23:59 |