| 2007-01-06 |
| → xjjk joined | 00:19 |
|
tko
| I just saw a fairly long thread about umask.. any reason the user's current umask setting isn't used? | 00:38 |
| → xjjk-T42p joined | 00:47 |
|
clee
| if I have a given commit ID, and I want to reset the working copy to whatever the contents of the tree were as of that commit ID, how do I do that? | 01:05 |
|
| git checkout doesn't seem to be my friend | 01:05 |
| → GeertB joined | 01:19 |
| → DrNick joined | 01:38 |
|
anholt
| clee: git checkout -b temp-branch <sha1> | 01:40 |
|
| (lack of a git-seek <sha1> is a serious ui failing, I agree) | 01:40 |
| → Romster joined | 01:41 |
|
merlyn
| what would git-seek do? | 01:41 |
|
anholt
| like git-checkout -b temp-branch <sha1>, but with the temp-branch invisible to you. probably not let you commit until you branched properly. | 01:43 |
|
clee
| davej suggested I could do: | 01:48 |
|
| rm -rf * | 01:48 |
|
| git-read-tree $id | 01:48 |
|
| git checkout | 01:48 |
|
| aha | 01:56 |
|
| looks like it's actually: | 01:56 |
|
| git-read-tree $id | 01:56 |
|
| git checkout-index -a | 01:56 |
|
| ah, davej is a dirty liar | 02:00 |
|
| (that doesn't actually work, for those of you following along at home) | 02:03 |
|
| clee tries anholt's method | 02:03 |
|
anholt
| clee: I use it a lot when starting a bisect: git branch -d archaeology; git checkout -b archaeology <commit-of-interest> | 02:03 |
|
clee
| uh. | 02:05 |
|
| that doesn't appear to work here, either. | 02:05 |
|
| oh. wait. | 02:05 |
|
| because I did git read-tree. | 02:05 |
|
| right. | 02:05 |
|
| anholt: hm. that doesn't really seem to work either, unless the entire repo is more screwed than I thought. | 02:07 |
|
anholt
| git diff HEAD and git status -a -v show nothing, right? | 02:08 |
|
| if not, git-reset --hard HEAD to get back to sanity | 02:08 |
|
| any series of commands beginning with rm -rf * just doesn't sound like a good idea to me. | 02:08 |
|
clee
| hahahaha | 02:11 |
|
| hm. what about just doing git reset --soft commitish? | 02:12 |
| dwmw2_gone → dwmw2_PVG | 02:12 |
|
clee
| or just 'git reset --hard commitish'? | 02:14 |
|
| that seems to be doing something similar to what I had expected | 02:14 |
|
| no, never mind. it still hates me | 02:15 |
|
| clee sighs. | 02:15 |
|
Romster
| fighting with git can get frustrating :/ | 02:15 |
|
clee
| yeah. | 02:16 |
|
| clee shrugs | 02:16 |
|
clee
| it' sokay | 02:16 |
|
| er, it's okay | 02:16 |
| → kmacleod joined | 02:17 |
|
clee
| so how does git-bisect do it? | 02:20 |
|
anholt
| clee: git reset --hard commitish would reset your branch, which is probably not what you want -- that's why I make a new branch to do stuff. | 02:23 |
|
clee
| hrm. | 02:23 |
|
| so when I did git-read-tree e0bea0885e37aef8d2f9f1e3f769311ab080d86a && git-checkout-index -a | 02:24 |
|
| I got the same results as when I did 'git-checkout -b nonexistent-branch-name e0bea0885e37aef8d2f9f1e3f769311ab080d86a' | 02:24 |
|
| namely, a very small selection of the contents of the full repo | 02:24 |
|
| (KDE has a dozen different folders, such as kdelibs, kdebase, kdeartwork, etc - the only one that showed up, in both cases, was kde-i18n; the only file that was changed in that commit was a file deep in the kde-i18n folder.) | 02:25 |
| → xjjk-T42p joined | 02:55 |
| → tchan joined | 03:51 |
| → mndrix joined | 04:40 |
| → rkaway3 joined | 05:15 |
| xjjk-T42p → xjjk | 05:42 |
| → beu joined | 06:11 |
| → jeffpc joined | 06:16 |
|
dwmw2_PVG
| hm | 06:26 |
|
| git-pull from inside china is not fun | 06:26 |
|
| would be good if when a TCP connection stalled or timed out, it would pick up where it left off | 06:26 |
|
| rather than having to start again from scratch | 06:27 |
| → xjjk_ joined | 06:42 |
| → xjjk joined | 06:44 |
| → xjjk joined | 07:02 |
| → devogon joined | 08:05 |
|
dwmw2_PVG
| hm. It is a little suboptimal, to say the least, that when 'git-pull origin' fails, after a couple of hours downloading, due to a single dirty file in the working tree, it doesn't actually _save_ anything so a second 'git-pull origin' is going to take another couple of hours | 08:32 |
|
Romster
| sounds bad, slow net speed or huge repo | 08:42 |
|
dwmw2_PVG
| both | 08:43 |
|
| a kernel tree which hasn't been updated for a couple of months, and I'm in China | 08:43 |
|
Romster
| give a approxx | 08:43 |
|
dwmw2_PVG
| slow and unreliable network | 08:43 |
|
Romster
| ouch | 08:43 |
|
dwmw2_PVG
| Unpacking 36625 objects | 08:43 |
|
| 23% (8469/36625) done | 08:43 |
|
Romster
| is atm with so many cables broken and needing repairs | 08:43 |
|
dwmw2_PVG
| seems to be going faster this time | 08:43 |
|
| this one is pulling by ssh from master.kernel.org instead of git://git2.kernel.org/ | 08:44 |
|
Romster
| any reason to use git head? | 08:44 |
|
dwmw2_PVG
| what else would I hack on? :) | 08:45 |
|
Romster
| true but what part do you hack :) | 08:46 |
|
| just cerious | 08:46 |
|
| i use a few patches on the kernel atm, but they arn't upwards compatable wonder if i should get into the source more. | 08:46 |
|
dwmw2_PVG
| I hack any of it that offends me | 08:46 |
|
| currently OLPC stuff | 08:47 |
|
| that being what I'm here for | 08:47 |
|
Romster
| ah ok | 08:47 |
|
| offends, meaning parts that don't function how you like it too | 08:47 |
|
dwmw2_PVG
| indeed | 08:48 |
|
Romster
| hope they finish fixing them cables its congesting up australia :/ | 08:51 |
| → orospakr joined | 08:59 |
|
dwmw2_PVG
| Unpacking 36625 objects | 09:06 |
|
| Disconnecting: Timeout, server not responding. | 09:06 |
|
| ought | 09:06 |
|
| er | 09:06 |
|
| ouch | 09:06 |
|
| another hour wasted | 09:06 |
|
cehteh
| dwmw2_PVG: cant you rsync the source first? | 09:19 |
|
dwmw2_PVG
| don't packs screw that up? | 09:20 |
|
cehteh
| in what way? | 09:20 |
|
| i dunno what you exactly try to do .. but if rsync on the server is available then it should do the trick at least getting you a copy of the server's repo | 09:21 |
|
| later you can branch/merge/clone locally from it | 09:22 |
|
dwmw2_PVG
| I have a kernel tree from November 15th | 09:22 |
|
| I was trying to update it to HEAD | 09:22 |
| → lyakh joined | 09:22 |
|
cehteh
| does kernel.org pack incrementally? i think yes ... and then rsync should work perfectly | 09:23 |
|
| dont forget the -P option | 09:23 |
|
dwmw2_PVG
| my local repository is packed. | 09:24 |
|
| I could clone this revision on a machine with decent bandwith. Then make another clone, using that repo as alternate object directory, and pull HEAD from it. | 09:25 |
|
| that way I'll end up with a single pack which contains all the objects I want | 09:25 |
|
cehteh
| thats just local stuff .. as i understand your primary problem is to get the remote repo or? | 09:28 |
|
| i admit it would be nice if git can resume aborted downloads and stores partially loaded things somewhere .. dunno how well thats possible | 09:29 |
|
| but when you rsync the remote repo, then all other operations become local operations and wont fail | 09:29 |
| → Oejet joined | 09:31 |
| → Guyou joined | 09:32 |
|
Guyou
| hi | 09:32 |
|
| I need expert help | 09:32 |
|
| on my repo, I have 2 branches | 09:33 |
|
| the master and second | 09:33 |
|
| but, using gitk, second is not tied with master | 09:33 |
|
dwmw2_PVG
| cehteh: yes, that's local stuff which I can do on kernel.org itself. Then I just have to download the pack file | 09:33 |
|
Guyou
| I think I made something wrong when creating it | 09:33 |
|
| how can I tied second to master? | 09:34 |
|
| Saying differently: how can I add a parent to a commit? | 09:35 |
| dwmw2_PVG → dwmw2_gone | 09:35 |
|
cehteh
| create a new branch from master and merge second into it | 09:36 |
|
| Guyou: i am rather interested, how did you setup a branch without a parent? :) | 09:36 |
|
| cehteh would like that sometimes and misses a nice ui for that | 09:37 |
|
Guyou
| cehteh, I don't know | 09:37 |
|
cehteh
| hehe | 09:37 |
|
| ok | 09:37 |
|
Guyou
| perhaps a wrong interpretation of what gitk is showing | 09:37 |
|
cehteh
| maybe | 09:37 |
|
Guyou
| humh... merge creates a tie at the "end" of the branch | 09:43 |
|
| I wish to create a tie at begining of second branch | 09:43 |
| → z3ro joined | 09:44 |
|
Guyou
| I think I found | 10:00 |
|
| git-rebase duplicates the branch | 10:01 |
| dwmw2_gone → dwmw2_PVG | 10:10 |
| → robinr joined | 10:48 |
|
Oejet
| Guyou: If you want to put the earliest commit of branch second onto the latest commit of branch master, then yes that is what git-rebase does. | 10:51 |
|
| Well, it does a bit more. See 'man git-rebase | 10:53 |
|
tko
| I'm trying to turn an evolving branch (git-svn mirror) into a series of patches with stgit (combining and reordering commits etc.) and I'm wondering if there's a way to see which commits I haven't yet processed with stgit? | 11:43 |
| → nud joined | 11:44 |
| → z3ro joined | 11:49 |
| → chris2 joined | 11:51 |
| → lyakh joined | 12:33 |
| → jwatt joined | 12:35 |
| → ferdy joined | 13:16 |
| → benlau joined | 13:26 |
| → Oejet joined | 14:28 |
| → dwmw2_gone joined | 14:29 |
| xl0_msk → xl0 | 14:36 |
| → kanru joined | 14:53 |
| → z3ro joined | 16:55 |
| → z3ro joined | 17:17 |
| → jeffpc joined | 17:35 |
|
tko
| can I undo stg float somehow? there are conflicts because I didn't mean to move the patch into the position it's going :-/ | 17:49 |
| → GeertB joined | 17:49 |
|
tko
| umm, and same with push.. if I push a conflicting patch, I can't pop it again without destroying (i.e. refresing) the patch? | 18:01 |
|
robinr
| stg push --undo | 18:01 |
| → DrNick2 joined | 18:01 |
|
tko
| :-] | 18:02 |
|
robinr
| not sure the whole float operation can be undone | 18:02 |
|
tko
| thanks, it helped | 18:02 |
|
robinr
| I didn't write code to do it | 18:02 |
|
| (though I wrote the float command) | 18:03 |
|
tko
| push --undo undoes the push, now I can twiddle with the series to get the patch where I meant it to be | 18:03 |
| DrNick2 → DrNick | 18:04 |
| → jwatt joined | 18:32 |
|
jeffpc
| $ git-pull | 18:59 |
|
| Cannot get the repository state from git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git | 18:59 |
|
| hrm | 18:59 |
|
| seems like next is broken-ish | 18:59 |
|
| :) | 18:59 |
|
hpa
| Like "next"? | 19:20 |
| → jwatt joined | 19:35 |
| → Eludias joined | 20:15 |
| → Alex joined | 20:17 |
| → devogon joined | 20:19 |
|
anders_
| Is there a way to get the upstream sha of a changeset printed by "git cherry"? | 20:34 |
| → jwatt joined | 21:43 |
| → robfitz joined | 21:52 |
| → dwmw2_gone joined | 22:02 |
| → rofro joined | 22:09 |
| → rofro joined | 22:16 |
| → rofrol joined | 22:16 |
| → rofro joined | 22:17 |
| → GeertB joined | 22:39 |
| → hub joined | 22:40 |
|
hub
| how do I cancel a git-am? | 22:40 |
|
| I haven't done the git-commit yet | 22:40 |
|
| s/cancel/undo/ | 22:40 |
| → GeertB joined | 22:50 |
|
hub
| how to I restore a mistakenly rm'ed file from the current repository | 22:54 |
|
| I mean in my checkout I did "rm" and it is marked as deleted in git-status | 22:54 |
|
nud
| git-checkout file ? | 22:56 |
|
hub
| *sigh* | 22:56 |
|
| I feel dumb | 22:57 |
|
| hub need a git-for-dummies | 22:57 |
| → Romster joined | 22:57 |
| → ludd joined | 23:52 |