| 2010-06-26 |
| ← timyhac left | 00:00 |
| ← Paraselene_ left | 00:04 |
| ← vincent left | 00:06 |
| → chuck joined | 00:07 |
| ← corni left | 00:09 |
| → Paraselene_ joined | 00:10 |
|
ThiefMaster
| how would i create a branch which is not based on the current HEAD but a certain commit and contains all the commits following the base? | 00:11 |
| ← SlickT10 left | 00:12 |
|
ThiefMaster
| i.e. i basically want to undo 'git branch -d somemergedbranch' | 00:12 |
| ← andresj left | 00:12 |
| ← carrus85 left | 00:12 |
| → eletuchy joined | 00:17 |
| → jlebar joined | 00:19 |
|
jlebar
| Can I rebase a branch on top of another branch? Does that even make sense? | 00:19 |
| ← justin-george left | 00:19 |
|
ToxicFrog
| ThiefMaster: 'git branch somemergedbranch startpoint' | 00:19 |
| ← Alagar left | 00:21 |
| ← adamv left | 00:21 |
|
ThiefMaster
| ToxicFrog: already got that far, how to merge the following commits without git considering them a merge? | 00:21 |
| ← hakunin left | 00:23 |
| ← engla|swe left | 00:24 |
| ← ignatp left | 00:24 |
| ← dreiss left | 00:27 |
| → Elfix joined | 00:31 |
| → consolers joined | 00:33 |
| ← mjf left | 00:35 |
|
ThiefMaster
| nvm, rebase did the job | 00:38 |
| ← beatak left | 00:40 |
| → chrislerum joined | 00:41 |
| ← mastro left | 00:41 |
| → mastro joined | 00:45 |
| ← jlebar left | 00:46 |
| → jrmuizel joined | 00:50 |
| → robinbowes joined | 00:52 |
| ← mastro left | 00:53 |
| ← lispy left | 00:53 |
| → MicahElliott joined | 00:54 |
| ← Adman65 left | 00:55 |
| ← jrmuizel left | 00:56 |
| → Textmode joined | 00:57 |
| → mastro joined | 01:05 |
| ← mw____ left | 01:08 |
|
sjuxax
| I'm trying to do a subtree merge here according to http://www.kernel.org/pub/software/scm/git/docs/howto/using-merge-subtree.html. I'm on git read-tree; every time I try to execute the file, if the file already exists, I get an error that says untracked file would be overwritten by merge, and if the file doesn't exist, I get an error that says invalid path. What am I doing wrong? | 01:08 |
| → sh1m joined | 01:09 |
| → rayners joined | 01:11 |
| ← sh1mmer left | 01:12 |
| sh1m → sh1mmer | 01:12 |
| → drdr joined | 01:14 |
| → Vampire0_ joined | 01:14 |
| ← chrislerum left | 01:15 |
| → fractal_heart joined | 01:15 |
| ← mastro left | 01:17 |
| → thomas_b joined | 01:17 |
| → redondos joined | 01:18 |
| → mastro joined | 01:18 |
| → chrislerum joined | 01:22 |
| → _VVSiz_ joined | 01:27 |
| ← name left | 01:30 |
| → skmidry_ joined | 01:30 |
| ← airborn left | 01:33 |
| ← Joeconyers left | 01:34 |
| ← Tuller left | 01:39 |
| → skmidry joined | 01:44 |
| ← skmidry_ left | 01:44 |
| ← eletuchy left | 01:46 |
| → yaotti_aw joined | 01:48 |
| ← skmidry left | 01:49 |
| ← yaotti_aw left | 01:50 |
| ← ChUrP1 left | 01:50 |
| ← drdr left | 01:51 |
| → jtibu joined | 01:56 |
| ← aliceinwire left | 01:57 |
| ← sjuxax left | 01:57 |
| → Elfe_ joined | 01:58 |
| → skmidry joined | 02:01 |
| → alsuren joined | 02:04 |
| ← jtibu left | 02:05 |
| ← MicahElliott left | 02:08 |
| → yaotti_aw joined | 02:12 |
| ← yaotti_aw left | 02:12 |
| → yaotti_aw joined | 02:12 |
| ← yaotti_aw left | 02:13 |
| → yaotti_aw joined | 02:13 |
| ← yaotti_aw left | 02:19 |
| → cytrinox_ joined | 02:20 |
| → yaotti_aw joined | 02:21 |
| ← yaotti_aw left | 02:21 |
| → yaotti_aw joined | 02:21 |
| yaotti_aw → yaotti | 02:22 |
|
byang
| hi | 02:22 |
|
| how can I add a new file part by part to the index? | 02:23 |
|
| seem add -p <new file> does not work, it report a 'No change' ... | 02:23 |
| cytrinox_ → cytrinox | 02:24 |
|
gebi
| git gui (to get an overview about your changes) | 02:24 |
| → nairb774 joined | 02:25 |
| ← alsuren left | 02:25 |
|
byang
| Now, I just add a new empty file to the index first and then add -p the real file. :) | 02:26 |
|
| but the way is really ugly | 02:26 |
|
| gebi: git gui? | 02:26 |
| → jrmuizel joined | 02:27 |
| ← zenazn left | 02:28 |
| → Elfe joined | 02:28 |
|
gebi
| seems strange that add -p doesn't pick up changes, git gui shows you the whole situation about your changes | 02:28 |
|
DrNick
| new files only have one hunk | 02:31 |
| ← Elfe_ left | 02:31 |
|
DrNick
| so interactively choosing whether or not you want to add that hunk is a bit stupid | 02:31 |
|
byang
| DrNick: yes, new file only has one trunk, but I shold add it splittly. I think that is what the 'e' option in -p does. | 02:33 |
| ← chrislerum left | 02:35 |
| ← hobodave left | 02:36 |
| ← yaotti left | 02:36 |
| → yaotti_aw joined | 02:37 |
| yaotti_aw → yaotti | 02:37 |
| ← fractal_heart left | 02:39 |
| ← jrmuizel left | 02:39 |
| ← madewokherd left | 02:40 |
| → zenazn joined | 02:41 |
| → maronnax joined | 02:42 |
| → madewokherd joined | 02:44 |
| → Philwelch joined | 02:49 |
| ← spearce left | 02:51 |
| → timj joined | 02:52 |
| ← zenazn left | 02:52 |
| → MicahElliott joined | 02:54 |
| ← timj left | 02:57 |
| → candybar joined | 03:02 |
| ← masterkorp left | 03:02 |
| ← maronnax left | 03:05 |
| → hakunin joined | 03:05 |
| → timj joined | 03:09 |
| → maronnax joined | 03:09 |
| → Bass10 joined | 03:10 |
| → justin-george joined | 03:10 |
| → OFICINA7 joined | 03:12 |
| ← justin-george left | 03:15 |
| → masterkorp joined | 03:21 |
| → jrmuizel joined | 03:23 |
| → coderdad joined | 03:24 |
| → ige joined | 03:27 |
| → krawek joined | 03:29 |
| ← Eaven left | 03:34 |
| ← krawek left | 03:34 |
| → krawek joined | 03:35 |
| ← krawek left | 03:38 |
| → krawek joined | 03:39 |
| yaotti → yaotti_aw | 03:39 |
| → harinath joined | 03:41 |
| ← Bass10 left | 03:43 |
| ← coderdad left | 03:58 |
| → kpreid_ joined | 04:01 |
| ← consolers left | 04:02 |
| → anathematic joined | 04:03 |
| ← krawek left | 04:04 |
| → sagsousuke joined | 04:08 |
| ← zimbres left | 04:11 |
| → zimbres joined | 04:12 |
| → ignatp joined | 04:12 |
| → nareshov joined | 04:15 |
| ← scarabx left | 04:17 |
| → krawek joined | 04:18 |
| → dreiss joined | 04:18 |
| ← zimbres left | 04:21 |
| → phantomcircuit joined | 04:34 |
| ← anathematic left | 04:37 |
| ← jrmuizel left | 04:39 |
| → markabur joined | 04:42 |
| ← dreiss left | 04:47 |
| ← harinath left | 04:47 |
| → skmidry_ joined | 04:48 |
| ← nareshov left | 04:49 |
| ← skmidry left | 04:50 |
| ← MicahElliott left | 04:50 |
| → skmidry__ joined | 04:51 |
| ← skmidry_ left | 04:53 |
| → jrmuizel joined | 04:54 |
|
maronnax
| I have repositories for libraryFoo and for programBar and want to include libraryFoo in programBar, particularly as its own self-contained branch of the original repo, however I can't seem to figure this out. Is there a best way to do this? | 04:58 |
| → harinath joined | 05:01 |
| ← jrmuizel left | 05:02 |
| → nareshov joined | 05:04 |
| ← phantomcircuit left | 05:06 |
| → jrmuizel joined | 05:06 |
| ← jrmuizel left | 05:06 |
| → kar8nga joined | 05:11 |
|
selckin
| sounds like a bad idea | 05:17 |
| → phantomcircuit joined | 05:18 |
| → VK7HSE joined | 05:20 |
| ← sagsousuke left | 05:21 |
| ← ignatp left | 05:24 |
| → lucid joined | 05:25 |
| ← kar8nga left | 05:30 |
| → MicahElliott joined | 05:34 |
| → orafu joined | 05:42 |
| → disappearedng joined | 05:46 |
| → keyvan joined | 05:47 |
| → marcial5 joined | 05:57 |
| → mindworx joined | 05:59 |
| ← mindworx left | 06:00 |
| → SplinterOfChaos joined | 06:00 |
|
SplinterOfChaos
| Is there a way to completely replace one branch with another? | 06:00 |
| → lhz joined | 06:00 |
|
selckin
| just delete it? | 06:00 |
|
mmattice
| rename them both? | 06:01 |
|
SplinterOfChaos
| I need to replace the master branch. Can i really delete or rename that? | 06:01 |
|
selckin
| sure | 06:01 |
| → mithro joined | 06:01 |
|
AAA_awright
| Delete the source, then rename, and push... I think that will still cause problems with pulling it's functionally the same as a rebase | 06:02 |
|
| er, delete the target, if you can't rename over it | 06:02 |
|
| hmm I forget how I did it now | 06:02 |
|
marcial5
| Hello to all! I was using github as my remote repo and now i want to use a private account with unfuddle. what i would like to do is migrate my existing repo there instead of just committing the last state of my repo(wich is what i've just done). Can i change the settings and the key of my repo and make it point to unfudddle so i can push the entire repo? Thanks in advance! | 06:03 |
|
SplinterOfChaos
| Wow, it worked! | 06:03 |
| ← programble left | 06:03 |
|
selckin
| marcial5: just add it as a remote, and push your branches to it | 06:04 |
|
marcial5
| and the keys? | 06:04 |
|
| thy've changed | 06:04 |
|
selckin
| why do they mather, | 06:04 |
|
marcial5
| i'll tell you later if they do (not sure at all) | 06:05 |
|
| thnks | 06:05 |
|
| So i just clone like this lines... | 06:06 |
|
| [remote "origin"] url = [email@hidden.address] fetch = +refs/heads/*:refs/remotes/origin/* | 06:07 |
|
| to make more like [remote "my new remoto"] url = [email@hidden.address] | 06:07 |
|
| and what about .... ? fetch = +refs/heads/*:refs/remotes/origin/* do i leave it so? | 06:08 |
| ← adamm left | 06:09 |
| → icefox joined | 06:15 |
| ← madewokherd left | 06:18 |
|
marcial5
| it worked!! didn't need to be afraid! smooth as silk! | 06:21 |
|
| now... if i want to make the origin this new repo so i can forget the 'old' one at github? | 06:22 |
| ← Philwelch left | 06:22 |
|
selckin
| i would just make a clone of the new one to be sure its all good (i'm paranodi that way) | 06:23 |
|
marcial5
| gitk only shows the refs at remotes/origin and those are the old ones!! | 06:23 |
|
| that'll make | 06:23 |
| ← icefox left | 06:26 |
| → coppro joined | 06:27 |
| → Titosemi joined | 06:27 |
|
marcial5
| what i mean is that although i've just pushed the entire master branch to unfuddle, on the .git/refs/remotes dir, it only has a folder with origin, and not (as i would expect) another one to unfuddle. mmmm...suspicious | 06:27 |
|
selckin
| git remote add fuddle git+ssh://bla && git push fuddle master | 06:29 |
|
| should do it probably | 06:29 |
|
marcial5
| thats what i just done! i added manually the remote by editing | 06:31 |
|
| i did push fiddle | 06:31 |
|
| and everything is there | 06:31 |
| → segher joined | 06:31 |
| ← phantomcircuit left | 06:31 |
|
marcial5
| but no ref to ufeddleng on local .git/refs/remotes dir | 06:31 |
|
selckin
| then just make a new clone from fiddle imo | 06:31 |
|
marcial5
| oooooook i think that will do | 06:32 |
|
| thnks | 06:32 |
| → DavidKlein joined | 06:32 |
| ← DavidKlein left | 06:32 |
| → smorg joined | 06:32 |
|
marcial5
| lets leave the hacking to hackers | 06:32 |
| ← masterkorp left | 06:33 |
| ← kenneth_reitz left | 06:38 |
| → drizzd joined | 06:41 |
| → tvw joined | 06:42 |
| → icefox joined | 06:43 |
| → Vadtec joined | 06:45 |
| ← icefox left | 06:45 |
|
Vadtec
| im trying to get the cia.py script to run on my remote repo (bare), but it doesnt appear that post-commit is getting called, i am running git-daemon in verbose mode, and connecting via ssh:// and git:// as well, how can i see if post-commit is being called or not? | 06:47 |
|
| or, how can i see any output from post-commit? | 06:47 |
|
| the cia.py for cia.vc that is | 06:47 |
| → frank_ joined | 06:51 |
| ← bambule left | 06:51 |
|
drizzd
| Vadtec: is it executable? | 06:51 |
| ← mithro left | 06:52 |
| → hobodave joined | 06:52 |
|
Vadtec
| drizzd: yes, everything is +x | 06:52 |
|
drizzd
| umh, post-commit only gets called locally, of course | 06:54 |
|
Vadtec
| drizzd: ok, does post-receive get called on the remote repo? (I assume yes) | 06:55 |
| → Jaxan joined | 06:55 |
|
drizzd
| Vadtec: yes, but the ciabot.py documentation suggests using the "update" hook | 06:55 |
|
| are you using the one in contrib/ciabot? | 06:56 |
| → disappearedng_ joined | 06:56 |
| → poseid joined | 06:56 |
|
Vadtec
| drizzd: http://git.kernel.org/?p=git/git.git;a=blob_plain;f=contrib/ciabot/ciabot.py;hb=refs/heads/master | 06:56 |
|
| thats the one im using | 06:56 |
|
drizzd
| ok, that's the one I'm looking at too | 06:57 |
|
Vadtec
| OH | 06:57 |
|
| ok, i see what i read wrong | 06:57 |
|
| it says either post-commit *or* post-update | 06:58 |
| → doener joined | 06:58 |
|
Vadtec
| i didnt realize it matters on remote repos | 06:58 |
|
| im migrating from svn to git, so....yeah, that | 06:58 |
|
drizzd
| it doesn't say post-update | 06:59 |
|
Vadtec
| # This script is meant to be run either in a post-commit hook or in an | 06:59 |
|
| # update hook. | 06:59 |
|
| language is unclear | 06:59 |
|
drizzd
| but I'm not sure why it would need the update hook | 06:59 |
|
Vadtec
| you just said post-commit isnt called on remote repos | 07:00 |
|
drizzd
| you're right, that's probably suggesting that it's ok to run it in the post-update hook | 07:00 |
|
| Vadtec: there is the "update" and the "post-update" hook | 07:00 |
| ← disappearedng left | 07:00 |
|
Vadtec
| which is better, post-update? | 07:00 |
| ← keyvan left | 07:01 |
|
drizzd
| Vadtec: feels more intuitive to me, since you only need to run it after you successfully pushed | 07:01 |
| ← Jaxan left | 07:01 |
|
| Vadtec is giving it a try as we speak | 07:01 |
|
drizzd
| that would also be more in line with the behavior of post-commit locally | 07:02 |
|
Vadtec
| well, i just got some output...let me fix a typo and see what i get | 07:04 |
| ← poseid left | 07:04 |
| → poseid joined | 07:06 |
| ← poseid left | 07:07 |
|
Vadtec
| drizzd: many thanks, that fixed the issue | 07:07 |
|
| now to get rid of that tiny url stuff... | 07:08 |
| → project2501a joined | 07:08 |
| ← disappearedng_ left | 07:09 |
|
Vadtec
| drizzd: thanks again | 07:15 |
| ← Vadtec left | 07:15 |
| ← OFICINA7 left | 07:15 |
| → timyhac joined | 07:21 |
| ← ige left | 07:21 |
| yaotti_aw → yaotti | 07:21 |
| → gmarselis__ joined | 07:22 |
| → disappearedng_ joined | 07:23 |
| ← MicahElliott left | 07:24 |
| → thiago_home joined | 07:26 |
| ← project2501a left | 07:26 |
| → sjohnson joined | 07:27 |
| ← VK7HSE left | 07:29 |
| → giskard joined | 07:29 |
| → masterkorp joined | 07:31 |
| → rox` joined | 07:32 |
| → VK7HSE joined | 07:32 |
| ← maronnax left | 07:34 |
| ← giskard left | 07:36 |
| → radioman-lt joined | 07:37 |
| → raichoo joined | 07:38 |
| → bodom joined | 07:39 |
|
bodom
| Hi! I have multiple projects and each of them got it's git repository. Now I want a folder (i.e. /lib) to be shared between some repositories. Is there a way to do that in git? | 07:41 |
| ← rayners left | 07:42 |
| ← krawek left | 07:43 |
| → aliceinwire joined | 07:45 |
|
cbreak
| bodom: maybe submodules do what you want | 07:46 |
|
| but they have their limitations | 07:46 |
|
| bodom: man git-submodules | 07:46 |
|
| or was it man git-submodule? | 07:46 |
|
Gitbot
| cbreak: the git-submodule manpage can be found at http://git.or.cz/man/git-submodule | 07:46 |
|
bodom
| cbreak: ty | 07:47 |
| → priidu joined | 07:47 |
|
cbreak
| just a warning: submodules are evil | 07:47 |
|
| strong binding | 07:47 |
|
| so no automatic updates | 07:47 |
| → Ratler joined | 07:49 |
|
mmattice
| which can be good | 07:49 |
| ← Ratler left | 07:49 |
| → Ratler joined | 07:50 |
|
DrNick
| I don't understand why you'd want it any other way | 07:51 |
| ← gmarselis__ left | 07:51 |
| → icwiener joined | 07:51 |
|
DrNick
| if the projects are so strongly coupled that one has to be contained within the other, then why wouldn't you want a specific version pinned | 07:52 |
| → jayne joined | 07:52 |
|
coppro
| if they are maintained in parallel | 07:53 |
|
drizzd
| DrNick: yes, but even if a new version is added, your submodule will not get updated. It's always like having a dirty working copy. | 07:53 |
|
SplinterOfChaos
| DrNick: I dunno, updates can mean optimizations, design changes, etc. If i change the interface to a library i write, i want to ensure i make this change in any file using that library. | 07:53 |
|
| Then again, is it really /that/ hard to just update the submodules before working? | 07:54 |
|
DrNick
| drizzd: well, yeah. you'd need to explicitly update the submodule, and then run your regression test suite in the containing repository to make sure it still works | 07:54 |
|
drizzd
| DrNick: yes, but I already told git that I want a new version when I did pull/checkout | 07:54 |
|
| but now I have to remember to run submodule update every time | 07:54 |
|
SplinterOfChaos
| drizzd: Write a script? | 07:55 |
| → werdan7 joined | 07:55 |
|
drizzd
| SplinterOfChaos: how is a script going to be any help? | 07:55 |
| → amitprakash joined | 07:55 |
|
amitprakash
| how do i look at what changed in the last git commit | 07:56 |
|
SplinterOfChaos
| drizzd: You won't have to remember.Write a generic script to start working, have it include updating the submodules. | 07:56 |
|
drizzd
| I want to use git, not a wrapper for each git command | 07:56 |
|
| I don't use git once a day and then work, I use git all the time | 07:57 |
| → unreal joined | 07:57 |
|
SplinterOfChaos
| The script would only need be run once, not every time you use git. | 07:57 |
|
drizzd
| it has to be run every time I use rebase, merge, pull, checkout, or any other command that can change the submodule version | 07:58 |
|
coppro
| could you not write hooks to do that? | 07:58 |
|
drizzd
| amitprakash: git log -p -1 | 08:01 |
|
amitprakash
| drizzd, yeah thanks .. figured it out :D | 08:01 |
| → project2501a joined | 08:01 |
| → gmarselis__ joined | 08:03 |
| ← project2501a left | 08:07 |
|
cbreak
| amitprakash: man git-show, man git-log | 08:07 |
|
Gitbot
| amitprakash: the git-show manpage can be found at http://git.or.cz/man/git-show | 08:07 |
| → mithro joined | 08:07 |
| → alsuren joined | 08:08 |
| → project2501a joined | 08:08 |
| ← gmarselis__ left | 08:09 |
| → gmarselis__ joined | 08:09 |
| → issyl0 joined | 08:10 |
|
issyl0
| Hello. I'm trying to get gitweb working but, even following the install instructions it doesn't seem to want to work. It seems like a great thing to use compared to just a big repository full of files, especially as it's web based with commit history and everything. Can anyone help? Running Linux, Debian on my server, Ubuntu on my laptop. | 08:12 |
| → pallaert joined | 08:13 |
| ← project2501a left | 08:13 |
| ← gmarselis__ left | 08:14 |
| ← issyl0 left | 08:17 |
| → consolers joined | 08:17 |
| ← henkboom left | 08:20 |
| → henkboom joined | 08:21 |
| → psoo joined | 08:24 |
| → pantsman joined | 08:27 |
| ← unreal left | 08:27 |
| → unreal joined | 08:29 |
| ← mithro left | 08:31 |
| → MarkBao joined | 08:36 |
| → darwin_ joined | 08:37 |
| → fmardini joined | 08:37 |
| coppro → Cu | 08:37 |
| ← consolers left | 08:44 |
| → eletuchy joined | 08:45 |
| → Acorn joined | 08:46 |
| ← aliceinwire left | 08:46 |
| → project2501a joined | 08:52 |
| → oriba joined | 08:53 |
| → g3d joined | 08:55 |
| → resmo joined | 08:57 |
| → Ambiguity joined | 08:58 |
| → aliceinwire joined | 08:58 |
| ← gebi left | 08:58 |
| ← icwiener left | 08:58 |
| ← harinath left | 08:59 |
| ← markabur left | 09:00 |
| → alip joined | 09:03 |
| → oriba_ joined | 09:05 |
| → rgr joined | 09:08 |
| ← oriba left | 09:08 |
| → harinath joined | 09:15 |
| → bababfds joined | 09:17 |
| → fr0sty joined | 09:19 |
| ← harinath left | 09:20 |
| → simplechat joined | 09:25 |
| ← hobodave left | 09:26 |
| ← darwin_ left | 09:26 |
| → darwin_ joined | 09:28 |
| → Falc joined | 09:30 |
| → engla|swe joined | 09:30 |
| → ziro` joined | 09:31 |
| → elijahbal joined | 09:33 |
|
elijahbal
| hello | 09:33 |
|
| I would like to change the initial commit in a git repository. | 09:34 |
|
| I have a source tree already modified from the original, and I would like to put the original as the first commit. | 09:34 |
|
| Do you know how to do that ? | 09:34 |
| ← eletuchy left | 09:34 |
|
elijahbal
| Thank you very much | 09:34 |
| → harinath joined | 09:35 |
| ← henkboom left | 09:35 |
|
selckin
| rebase -i ? | 09:36 |
|
elijahbal
| thanks | 09:37 |
| → aziz joined | 09:37 |
|
doener
| won't work for root commits | 09:37 |
|
selckin
| :-( | 09:38 |
| → henkboom joined | 09:38 |
|
doener
| elijahbal: I didn't quite understand what you want to do... You modified something and now you want the pre-modification state to become a root commit? Did you previously commit that "original" state? | 09:39 |
| → AlexP joined | 09:40 |
|
elijahbal
| no | 09:40 |
|
| I initiated the git repository with a modified source tree. | 09:41 |
|
doener
| Well, you'll need some way to get hold of the original state, git can't create that out of thin air | 09:41 |
|
elijahbal
| Ok | 09:41 |
|
| np | 09:41 |
|
doener
| maybe you have a tarball of it? | 09:41 |
| → [Po]lentino joined | 09:42 |
| → squi joined | 09:44 |
|
squi
| i heard before that git clone is not a good idea? how should i do an initial checkout, if not using clone? | 09:44 |
|
jast
| squi: whoever told you that sounds a bit confused. clone is meant to be the main tool for that. | 09:44 |
|
squi
| ok | 09:45 |
|
| maybe i misunderstood or something | 09:45 |
|
| now | 09:45 |
|
| how can i tell git not to change line endings? | 09:46 |
|
jast
| hard to tell in retrospect :) | 09:46 |
|
squi
| or beter yet | 09:46 |
|
| how can i tell it to completely and utterly ignore whitespace changes? i am so sick of getting so many conflicts due to that | 09:46 |
|
selckin
| git won't change line endings unless you told it too (like default broken windows installer do) | 09:46 |
|
squi
| ok | 09:46 |
|
selckin
| that's a diffrend problem | 09:46 |
| → d0k joined | 09:46 |
|
squi
| i mean | 09:46 |
|
| i jsut did a fresh clone | 09:47 |
|
| and i already got hundreds of modifications | 09:47 |
|
| i dont like that. | 09:47 |
|
jast
| are you using msysgit on windows? | 09:47 |
|
squi
| yes | 09:47 |
|
jast
| git config --global --unset core.autocrlf should do the trick | 09:47 |
|
| note that if the repository uses LF line endings, you'll probably want to use an editor that uses those, too | 09:47 |
| → apsysoev joined | 09:48 |
|
jast
| or, alternatively, enable safecrlf along with autcrlf | 09:48 |
|
| that tends to make the conversion much less intrusive | 09:48 |
|
squi
| jakob i dont even know where the problem is... we all use the same windows IDE (vs 2010) | 09:48 |
|
jast
| in general, if directly after a clone everything is listed as modified, it means that CRLF endings are used in the repository | 09:48 |
|
| and autocrlf is meant for repositories in which LF is used | 09:49 |
|
squi
| i don't understand at all how i can have hundreds of modifications just upon checkout | 09:49 |
| ← alsuren left | 09:49 |
|
jast
| so that sounds like if you use the command I provided above, you'll be fine | 09:49 |
|
squi
| ok thanks ill try it | 09:49 |
|
| i just gave up my local changes because i didnt even know what i changed anymore | 09:49 |
|
| and it seemt too tedious to find them in hundreds of conflicts | 09:50 |
|
jast
| yeah, of course | 09:50 |
|
| had you turned off autocrlf before giving up, everything would probably be fine now :) | 09:50 |
|
| ah well, what's done is done | 09:51 |
|
squi
| still playing around with it | 09:52 |
|
| ok this is odd | 09:52 |
|
| i did the change that you recommended | 09:53 |
|
| but i still have modified files upon fresh clone | 09:53 |
|
elijahbal
| doener: yes exactly | 09:53 |
|
| I have a tarball of the original source tree, and I want to make it the first commit. | 09:53 |
|
jast
| squi: just to make sure that the command worked, what does "git config core.autocrlf" say? | 09:54 |
| ← henkboom left | 09:54 |
| aliceinwire → durarara | 09:55 |
|
squi
| haha | 09:56 |
|
| it says true | 09:56 |
|
| ok let me try again | 09:56 |
|
| yep | 09:56 |
|
| your command doesn't change it :D | 09:56 |
|
| now thats odd | 09:57 |
| → henkboom joined | 09:57 |
|
jast
| squi: how about "git config --global core.autocrlf"? | 09:59 |
|
doener
| elijahbal: ok, then simply: git add -A .; git commit -m tmp; rm -rf | 09:59 |
|
| oops... | 10:00 |
| → nadim joined | 10:00 |
|
squi
| still true jast | 10:00 |
|
| ah | 10:01 |
|
doener
| git add -A .; git commit -m tmp; rm -rf *; tar xf /path/to/tarball; git add -A .; git commit --amend; git read-tree -u --reset HEAD@{1}; git reset | 10:01 |
| → adymitruk joined | 10:01 |
|
doener
| elijahbal: like that ;-) | 10:01 |
|
squi
| jast simply add a "fale" then it works :) | 10:01 |
|
| --unset probably sets it to the default value, which funnily is true | 10:01 |
| → DavidKlein joined | 10:01 |
|
jast
| hmm, --unset worked for me | 10:01 |
| ← DavidKlein left | 10:02 |
|
jast
| I guess they patched the default value right in the code or something | 10:02 |
|
doener
| elijahbal: assuming that you didn't commit anything yet | 10:02 |
|
jast
| but he said he already had his own history, didn't he? | 10:03 |
|
doener
| elijahbal: basically that monster makes a commit of your current state so you can restore it later, then you put in the initial state, commit that, replacing the previous commit, and restore the modified state | 10:03 |
|
| jast: he said "initiated the repo with a modified source tree". I took that as just "git init", but yeah, you might be right there | 10:04 |
|
elijahbal
| jast: yes I have my own historx | 10:04 |
| durarara → aliceinwire | 10:05 |
|
jast
| so, which convoluted solution would you like... A or B? | 10:05 |
|
elijahbal
| something like : git init . in the initial source tree. | 10:05 |
|
jast
| git init doesn't actually commit anything | 10:05 |
| aliceinwire → durarara | 10:05 |
|
doener
| elijahbal: did you ever run "git commit" in that repo? | 10:05 |
| → parasti joined | 10:06 |
| → oriba__ joined | 10:06 |
|
elijahbal
| git init ; git add * ; git commit -a -m "first commit" ; cp -rf ../current_source_tree/* . ; git add * ; git commit -a -m "revision" | 10:06 |
|
| it makes the trick, but is it the correct way ? | 10:06 |
|
squi
| hum | 10:06 |
|
jast
| if you had only one commit, it should be fine | 10:07 |
|
elijahbal
| No I had many commits | 10:07 |
| → kipras joined | 10:07 |
|
squi
| jast checking out again, it still has modified files and the autocrl property has also been restored | 10:07 |
|
elijahbal
| That's the problem, I want to keep the history. | 10:07 |
|
squi
| i think it was never that hard to change a config value | 10:07 |
|
jast
| that's, uh, weird... | 10:07 |
|
squi
| indeed it is | 10:07 |
|
jast
| elijahbal: well, solution A or B? they are both a bit convoluted, so you don't need to know anything about them to decide ;) | 10:07 |
|
squi
| aha | 10:07 |
|
| i think i know what it si | 10:08 |
|
| apparently every config value has a local and global setting and i didnt set it gloibally | 10:08 |
|
jast
| oh well | 10:08 |
|
squi
| k finally worked | 10:09 |
| ← oriba_ left | 10:09 |
| → chrislerum joined | 10:10 |
|
doener
| elijahbal: any merge commits in your history? | 10:12 |
| → Titosemi_ joined | 10:15 |
| ← harinath left | 10:15 |
|
squi
| how can i checkout a specific version of a repository? | 10:15 |
| → Chris64 joined | 10:16 |
|
Chris64
| hi all | 10:16 |
|
elijahbal
| not doener. It's only a linear tree | 10:16 |
|
| without branches. | 10:17 |
|
Chris64
| is it possible to combine the usage of TortoiseGIT and git commandline tools? | 10:17 |
| ← Titosemi left | 10:17 |
| Titosemi_ → Titosemi | 10:17 |
| ← oriba__ left | 10:18 |
|
doener
| elijahbal: which git version? | 10:18 |
|
elijahbal
| last version | 10:18 |
| → tizbac joined | 10:20 |
| → gebi joined | 10:21 |
|
doener
| git checkout --orphan new_history; git rm -rf .; git clean -xdf; tar xf /path/to/original.tar; git add -A .; git commit -m "Initial commit"; git rebase --onto HEAD --root master | 10:21 |
| ← Mage left | 10:22 |
|
doener
| that should do... but make sure you have everything committed | 10:22 |
|
| (you might of course want to do that in a copy of the repo...) | 10:22 |
| → harinath joined | 10:32 |
| → Zephyrus joined | 10:32 |
| ← gebi left | 10:32 |
| → bentob0x joined | 10:33 |
| ← adymitruk left | 10:34 |
| ← squi left | 10:38 |
| → malumalu joined | 10:38 |
| → mbroeker joined | 10:39 |
| → ige joined | 10:39 |
| → nuoHep joined | 10:39 |
| ← frank_ left | 10:42 |
| ← henkboom left | 10:43 |
| → henkboom joined | 10:46 |
| → happypolla joined | 10:46 |
| → frank_ joined | 10:47 |
| ← unreal left | 10:50 |
| → unreal joined | 10:52 |
| ← VK7HSE left | 10:55 |
| ← raichoo left | 10:55 |
| → raichoo joined | 10:57 |
| ← psoo left | 10:58 |
| → HG` joined | 11:00 |
| ← engla|swe left | 11:02 |
| ← henkboom left | 11:03 |
| → henkboom joined | 11:04 |
| ← amitprakash left | 11:04 |
| → codeshepherd joined | 11:05 |
| ← HG` left | 11:06 |
| ← codeshepherd left | 11:09 |
| → froschi joined | 11:12 |
| ← raichoo left | 11:13 |
| → codeshepherd joined | 11:14 |
| → name joined | 11:15 |
| → ChUrP joined | 11:15 |
| ← bentob0x left | 11:15 |
| → EddieRingle joined | 11:17 |
| ← EddieRingle left | 11:18 |
| → keyvan joined | 11:21 |
| → locklace joined | 11:26 |
| → Tommy[D]_ joined | 11:29 |
| ← project2501a left | 11:36 |
| ← codeshepherd left | 11:38 |
| ← ziro` left | 11:38 |
| ← durarara left | 11:44 |
| → stamina joined | 11:44 |
| → DavidKlein joined | 11:46 |
| → Theaxiom joined | 11:48 |
|
Theaxiom
| I have a file that is tracked by git, it is webroot/index.php and when I add webroot/index.php to .gitignore or .git/info/exclude it still shows changes in git diff | 11:49 |
|
| can anyone tell me what I am doing wrong? | 11:49 |
| → rkreis joined | 11:51 |
|
rkreis
| hi there | 11:51 |
|
| is it bad when i push commits to another git repository and then use git svn dcommit? it rewrites the commits | 11:52 |
|
Theaxiom
| I figured it out | 11:54 |
|
| git rm --cached webroot/index.php | 11:54 |
| → codeshepherd joined | 11:56 |
| ← happypolla left | 11:58 |
| → babafds joined | 11:59 |
| → project2501a joined | 11:59 |
| ← bababfds left | 11:59 |
|
drizzd
| rkreis: yes, publishing via both git and git-svn doesn't really work | 12:00 |
|
rkreis
| i see | 12:00 |
|
| i tried something like that, and it ended up being a huge mess | 12:01 |
|
drizzd
| the only useful thing you can do is to set up a git mirror for the svn repo | 12:01 |
|
| but you can't push to that directly | 12:01 |
|
rkreis
| so, to clarify, i can't have two git repos pulling/pushing from each other and have one of them update/commit to or from a svn repo? | 12:01 |
|
drizzd
| rkreis: that's correct | 12:02 |
| ← project2501a left | 12:02 |
|
rkreis
| so in that case, changes can only flow between the two git repos after they've been commited to the svn repo? | 12:03 |
| → hakunin_ joined | 12:03 |
| ← hakunin left | 12:03 |
|
drizzd
| svn basically forces you to use a centralized server, the svn server | 12:03 |
|
rkreis
| that's a shame | 12:04 |
|
| thanks for clarifying | 12:04 |
|
| so the best idea would be to only use git-svn and never pull or push between git repos in that case? | 12:05 |
| → tar- joined | 12:08 |
|
Chris64
| why is this impossible? | 12:08 |
|
rkreis
| git svn dcommit rewrites my commits, and when i published them before, they essentially get duplicated | 12:08 |
|
selckin
| can share betwean repos till you commit to svn, then start a new branch based on svn :/ | 12:09 |
|
rkreis
| i think git svn rebase makes it even worse | 12:09 |
|
jast
| git svn dcommit implicitly uses git svn rebase | 12:10 |
|
rkreis
| i see | 12:10 |
| ← paja left | 12:10 |
|
jast
| the problem is that if you don't linearize history, things get ambiguous with versions of svn that don't support merge tickets | 12:11 |
| → engla|swe joined | 12:11 |
|
jast
| and git-svn's support for merge tickets is limited AFAIK | 12:11 |
| → jstemmer joined | 12:11 |
|
rkreis
| i'll probably drop git-svn | 12:11 |
|
jast
| git-svn is really only useful if you only use it for communicating with the subversion repository | 12:12 |
|
| also if you are extremely careful about trading changes in other ways | 12:12 |
|
rkreis
| can i merge svn commits into a published git repo? | 12:12 |
|
jast
| sure | 12:12 |
|
rkreis
| do you mind if i tell you about the whole scenario? | 12:13 |
|
jast
| not at all | 12:13 |
|
rkreis
| that's nice | 12:13 |
|
jast
| I might leave in a couple of minutes, but I'm sure someone else can pick up the ball | 12:13 |
|
rkreis
| we have three git repos, they push and pull changes between each other | 12:13 |
| → Jaxan joined | 12:14 |
|
rkreis
| but we also need an svn repository that's somehow kept in sync with it | 12:14 |
|
| at the moment, one of thosse git repositories uses git-svn dcommit and rebase, but that doesn't work | 12:14 |
| → hyperboreean joined | 12:14 |
| ← nadim left | 12:15 |
| ← thiago_home left | 12:15 |
| → nadim joined | 12:15 |
|
rkreis
| my idea is pulling the svn commits into the git repositories, so i keep all the history there, and just commit the git working tree to svn every week or so | 12:15 |
|
| does that sound horrible? | 12:15 |
| → thiago_home joined | 12:15 |
| → psil joined | 12:16 |
|
rkreis
| i wouldn't want all the git repos to use git-svn, what i really want is an svn mirror where you can also commit things that somehow find their way back into git | 12:16 |
| → dsop joined | 12:16 |
| → tghw_ joined | 12:16 |
|
rkreis
| git-svnserver would be great, but it doesn't exist? | 12:16 |
| → pielgrzym joined | 12:16 |
|
jast
| no, it doesn't | 12:16 |
|
| currently there is work in progress for a different svn interface for git | 12:17 |
|
| as part of google's summer of code | 12:17 |
|
rkreis
| that sounds interesting, will it allow this? | 12:17 |
|
jast
| I don't know, to be honest | 12:17 |
|
| it's not in a state where you could actually do anything with it yet | 12:18 |
|
rkreis
| will git svn fetch and git merge import changes from svn without duplicating commits or rewriting git repos? | 12:18 |
| → corni joined | 12:18 |
| ← phlowx left | 12:18 |
|
jast
| one thing you could do, anyway, is to use some completely different mechanism to push the current state of things to subversion every now and then | 12:18 |
|
| one yucky but sometimes used solution is to make one clone of the git repository a svn working copy as well, and add new files/commit to svn every now and then | 12:19 |
| ← navap left | 12:19 |
| → navap_ joined | 12:19 |
|
rkreis
| yes, that's what i meant by "just commit the git working tree to svn every week or so | 12:19 |
|
jast
| which would mean that the SVN repo wouldn't have the exact history as the git repo does, but the same content | 12:19 |
|
| yeah | 12:19 |
| → Grum joined | 12:19 |
|
rkreis
| i will do just that | 12:19 |
|
jast
| if that's enough for you, at this point it's probably the easiest solution | 12:19 |
|
rkreis
| at least the whole history is in the git repos | 12:19 |
|
jast
| and there should be many ways to get a one-off patch from svn into git | 12:19 |
| → unixtippse joined | 12:20 |
| ← tar- left | 12:20 |
| ← froschi left | 12:20 |
| ← alip left | 12:20 |
| ← orafu left | 12:20 |
| ← Jordan_U left | 12:20 |
| ← stepnem left | 12:20 |
| ← [[sroracle]] left | 12:20 |
| ← Theaxiom left | 12:20 |
|
rkreis
| is git svn fetch followed by git merge sane in this case? | 12:20 |
| → LotR joined | 12:20 |
| → xou joined | 12:20 |
| → codejunky joined | 12:21 |
| → defn_ joined | 12:23 |
| → Blackguard joined | 12:23 |
|
jast
| personally I'd fetch and then cherry-pick individual commits | 12:24 |
|
| merge will probably do insane things | 12:24 |
|
| anyway, leaving now. | 12:24 |
| → airborn joined | 12:25 |
| → FoxFurry1 joined | 12:25 |
| → jksz_ joined | 12:26 |
| → project2501a joined | 12:26 |
| → tar- joined | 12:26 |
| → froschi joined | 12:26 |
| → alip joined | 12:26 |
| → orafu joined | 12:26 |
| → Jordan_U joined | 12:26 |
| → stepnem joined | 12:26 |
| → [[sroracle]] joined | 12:26 |
| → frakturfreak joined | 12:26 |
| → Morasique joined | 12:26 |
| → [bobrik] joined | 12:26 |
| → chrowe joined | 12:26 |
| → teknotus joined | 12:26 |
| → ivan joined | 12:26 |
| → _iksik joined | 12:26 |
| → SRabbelier joined | 12:26 |
| → Ahri joined | 12:26 |
| → rvsjoen joined | 12:26 |
| → mstormo joined | 12:26 |
| → electrogeek joined | 12:26 |
| → trochala joined | 12:26 |
| → hachi joined | 12:26 |
| → ruskie joined | 12:26 |
| → xrogaan joined | 12:26 |
| → odin_ joined | 12:26 |
| ← stepnem left | 12:26 |
| ← tar- left | 12:26 |
| → neutrino joined | 12:26 |
|
rkreis
| thanks a lot, jast and the others | 12:26 |
| ← d0k left | 12:27 |
| ← mstormo left | 12:27 |
| ← apsysoev left | 12:27 |
| → stepnem joined | 12:28 |
| → eMBee joined | 12:30 |
| → mstormo joined | 12:32 |
| → d0k joined | 12:33 |
| → bavbat joined | 12:33 |
| → Tabmow joined | 12:33 |
| → poseid joined | 12:34 |
| ← aziz left | 12:37 |
| → aless joined | 12:39 |
| ← disappearedng_ left | 12:41 |
| ← mastro left | 12:42 |
| neutrino → tar- | 12:42 |
| ← poseid left | 12:42 |
| ← engla|swe left | 12:43 |
| → disappearedng joined | 12:44 |
| ← darwin_ left | 12:44 |
| → dr_win joined | 12:45 |
| ← rox` left | 12:46 |
| ← dr_win left | 12:47 |
| → dr_win joined | 12:47 |
| ← masterkorp left | 12:51 |
| → rox` joined | 12:51 |
| → mastro joined | 12:54 |
| ← Falc left | 12:56 |
| ← codeshepherd left | 13:00 |
| ← keyvan left | 13:00 |
| → raichoo joined | 13:02 |
| → OSInet joined | 13:02 |
| ← ige left | 13:04 |
| ← [bobrik] left | 13:04 |
| → codeshepherd joined | 13:05 |
|
OSInet
| hello. After some commits to a local git repos and a git rebase interactive I find myself with a broken repos (git status ="fatal: bad object HEAD", git branch="error: refs/heads/master does not point to a valid object!"). Tried git --fsck to no avail. None of the solutions I could find online (including on StackOverflow) appeared to fix anything. Is my repos doomed, or could someone suggest a link to some repair procedure ? | 13:05 |
| → jrmuizel joined | 13:05 |
|
OSInet
| (in case that can help, I have (read) the git book) | 13:07 |
|
| for more symptoms: there are just 5 objects in the repos for 5 actual files remaining in the working directory and at least 5 commits. I can restore individual files from backup if needed. | 13:11 |
| → mw joined | 13:11 |
| ← mw left | 13:11 |
| → mw joined | 13:11 |
| → mw2 joined | 13:12 |
| → poseid joined | 13:12 |
|
wereHamster
| OSInet: maybe HEAD is corrupted, but the reflog may contain valid commits (possible the one just before you did the rebase) | 13:14 |
| ← Jaxan left | 13:18 |
|
OSInet
| wereHamster: thx for looking into it "reflog" == logs/refs/* ? | 13:18 |
|
Chris64
| is rake part of the git project? | 13:18 |
|
wereHamster
| OSInet: man git-reflog | 13:18 |
| → aless_ joined | 13:19 |
|
OSInet
| checking | 13:19 |
|
| hmm, no: "fatal: bad object HEAD" | 13:20 |
| ← aless left | 13:21 |
|
wereHamster
| when you run 'git reflog'? | 13:21 |
|
OSInet
| yes | 13:21 |
| ← Textmode left | 13:21 |
|
OSInet
| FWIW, I there is a sensible log in both logs/refs/HEAD and logs/refs//heads/master . they don't match, though | 13:22 |
|
wereHamster
| well, it's not unusual that they don't match | 13:22 |
| ← simplechat left | 13:22 |
| → hohoho joined | 13:23 |
|
OSInet
| however, they reference commits numbers which have no matching files in the repos, which I do not understand | 13:24 |
|
| one clue (maybe) is that there is a COMMIT_EDITMSG.swp in the repos, which could mean a commit was interrupted | 13:26 |
|
wereHamster
| 'no matching files'? | 13:26 |
| ← Paraselene_ left | 13:26 |
| → cilly joined | 13:27 |
| → Paraselene_ joined | 13:27 |
| → saidi joined | 13:28 |
|
OSInet
| there are only five files in the objects/?? directories and i was under the (misled ?) impression that every commit it was supposed to match an object in these. | 13:28 |
|
saidi
| how can i create a snapshot ? | 13:29 |
| → aziz joined | 13:29 |
|
Chris64
| a what? | 13:30 |
|
FauxFaux
| A commit? | 13:32 |
|
saidi
| snapshot from a commit ? | 13:33 |
|
| get an archive of a git repository | 13:36 |
| → jfkw joined | 13:36 |
| ← pielgrzym left | 13:36 |
|
OSInet
| saidi: why not just do a "tar czf .git" ? | 13:37 |
| ← raichoo left | 13:37 |
|
OSInet
| saidi: oops "tar czf snap.tgz .git" ? | 13:38 |
|
saidi
| OSInet: what if i want to get an archive from a commit ? | 13:39 |
|
wereHamster
| saidi: like, man git-archive ? | 13:40 |
|
| OSInet: yes, that's true, every commit will create at least one new object inside the objects directory (usually three or more) | 13:40 |
| → engla|swe joined | 13:41 |
|
wereHamster
| OSInet: but keep in mind that objects can be packed in a packfile (objects/pack/..) | 13:41 |
|
saidi
| wereHamster: yes, thanks | 13:41 |
|
OSInet
| wereHamster: objects/pack is an empty directory | 13:41 |
| ← codeshepherd left | 13:42 |
| → vu3rdd joined | 13:45 |
| → paja joined | 13:46 |
| ← tizbac left | 13:48 |
| → wakiki_ joined | 13:48 |
| → sagsousuke joined | 13:48 |
| wakiki_ → wakiki | 13:50 |
| ← engla|swe left | 13:50 |
| → sdivp joined | 13:51 |
| → giskard joined | 13:51 |
| ← harinath left | 13:51 |
|
OSInet
| wereHamster: I take it this means I must assume everything is lost and I'd better accept losing my history and reinitializing a repos from the current version of the files ? | 13:51 |
|
sdivp
| hi, is there any free private git host ? | 13:52 |
| → Titosemi_ joined | 13:54 |
|
jettero
| sdivp: you mean like linux? openssh? | 13:54 |
|
sdivp
| jettero: like that | 13:55 |
| → scarabx joined | 13:55 |
| ← Titosemi left | 13:56 |
| Titosemi_ → Titosemi | 13:56 |
| ← giskard left | 13:57 |
|
jettero
| sdivp: I clearly don't understand the problem... | 13:57 |
|
jast
| sdivp: you mean, you want someone else to host private repositories for you for free? | 13:58 |
|
| I'm not aware of any such service | 13:58 |
|
jettero
| that's not likely to happen (if that's the case); but you shouldn't need it anyway. If your needs are private, just ssh to eachother's computers. Problem solved. | 13:58 |
| ← Zephyrus left | 13:59 |
|
sdivp
| ok thanks | 13:59 |
| → tedoc2000 joined | 14:00 |
| ← hohoho left | 14:01 |
| → multigrain joined | 14:02 |
|
OSInet
| I have restored all the deleted files under objects/?? and things seem to be a bit better | 14:03 |
| ← babafds left | 14:03 |
|
OSInet
| git fsck --full now says dangling tree (some commitid) | 14:03 |
| → hohoho joined | 14:03 |
|
sdivp
| jettero: what about http://indefero.net | 14:04 |
| → khmarbaise joined | 14:04 |
| → consolers joined | 14:05 |
|
OSInet
| and git fsck --full --unreachable sais unreachable tree (the same commitid) | 14:05 |
|
FauxFaux
| Dangling is normal. | 14:06 |
| → harinath joined | 14:06 |
|
jettero
| sdivp: please not hilight me for opinions about random websites I'm not going to load up | 14:07 |
| ← sdivp left | 14:08 |
|
OSInet
| FauxFaux: meaning I should just ignore it, or something more I have to do ? All commands seem to work again: I was able to commit the pending changes, git status and gitk no longer complain | 14:09 |
| ← saidi left | 14:09 |
|
FauxFaux
| As the recovering the repo guide says, yes, dangling are normal and ignorable. | 14:09 |
| → babafds joined | 14:10 |
|
OSInet
| FauxFaux: "recovering the repo guide" ? do you have an URL for this ? is it http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#recovering-from-repository-corruption ? | 14:10 |
|
FauxFaux
| Yes. | 14:11 |
|
OSInet
| great. Thanks a lot wereHamster and FauxFaux for your help | 14:11 |
| ← rox` left | 14:11 |
|
| OSInet rushes to do another backup before losing data again | 14:12 |
| ← consolers left | 14:13 |
|
wereHamster
| jettero: indefero is a web-based repo management software. He wanted your opinion about it. But you don't seem to be aware of its existence. | 14:13 |
| → LRN joined | 14:14 |
|
Chris64
| do you know if there are placeholders in files for git like in svn? | 14:15 |
| → raichoo joined | 14:15 |
|
jettero
| wereHamster: I get that he wanted my opinion on it, but I already gave it. Just use ssh | 14:15 |
|
Chris64
| like last commiter, commit date and so on | 14:15 |
|
wereHamster
| Chris64: yes, but their use is discouraged | 14:16 |
|
Chris64
| discouraged? | 14:16 |
|
| why? :| | 14:16 |
|
| are they not necessary? | 14:16 |
|
wereHamster
| actually, git itself only supports $id$ which expands to the blob id. But you can make your own smudge/clean filters if you want | 14:16 |
|
| no, they are not | 14:17 |
| ← SplinterOfChaos left | 14:17 |
|
Chris64
| thank you, i'll search for it :) | 14:17 |
| → rox` joined | 14:17 |
|
wereHamster
| Chris64: look in the git faq | 14:17 |
|
Chris64
| okay | 14:17 |
| ← henkboom left | 14:17 |
|
wereHamster
| but really, you should not put these informations into the files that you check into git | 14:18 |
|
Chris64
| mh, okay | 14:20 |
| → henkboom joined | 14:20 |
| → RobertLaptop joined | 14:21 |
| → aspotashev joined | 14:23 |
| ← poseid left | 14:23 |
| ← OSInet left | 14:27 |
| ← sagsousuke left | 14:30 |
| → poseid joined | 14:31 |
| → rajeshsr joined | 14:31 |
| → sagsousuke joined | 14:31 |
| ← sagsousuke left | 14:34 |
| → sagsousuke joined | 14:34 |
| ← _ikke_ left | 14:36 |
| → Stummi joined | 14:37 |
| → pellera joined | 14:41 |
| → eletuchy joined | 14:42 |
| ← RobertLaptop left | 14:44 |
| → giskard joined | 14:46 |
| ← harinath left | 14:46 |
| ← poseid left | 14:47 |
| ← skmidry__ left | 14:53 |
| ← unreal left | 14:54 |
| → unreal joined | 14:55 |
| → poseid joined | 14:59 |
| ← airborn left | 14:59 |
| → MetaCosm joined | 15:00 |
| → harinath joined | 15:03 |
| ← cilly left | 15:04 |
| ← sagsousuke left | 15:05 |
| → phlowx joined | 15:05 |
| → skmidry__ joined | 15:05 |
| → Zephyrus joined | 15:06 |
| ← skmidry__ left | 15:06 |
| → sixteneighty joined | 15:10 |
| → tizbac joined | 15:12 |
| ← eletuchy left | 15:12 |
| ← giskard left | 15:12 |
| → eletuchy joined | 15:13 |
| Blackguard → Blackguard|AFK | 15:16 |
|
Acorn
| is there an easy way to replace all the usernames in a git repo that match a certain name with another name? | 15:16 |
|
rkreis
| mh, you'd rewrite all those commits i guess | 15:18 |
|
thiago_home
| yes | 15:18 |
|
jast
| Acorn: assuming you already know that that will change pretty much all commit IDs, head on over to http://git.or.cz/man/git-filter-branch and see the --env-filter option and the example for removing all commits by a certain author | 15:18 |
|
thiago_home
| using git-filter-branch | 15:18 |
|
rkreis
| hi jast :) | 15:18 |
|
Acorn
| it's only a small repo that was started recently without about 20 commits from two different people | 15:19 |
| ← tedoc2000 left | 15:19 |
| → OFICINA7 joined | 15:19 |
|
Acorn
| hmm, found this on SO git-filter-branch --env-filter "export GIT_AUTHOR_NAME='New name'; export GIT_AUTHOR_EMAIL='New email'" HEAD | 15:20 |
|
| how does it know which person's details to replace? | 15:20 |
|
jast
| that's where the example I mentioned comes in | 15:21 |
|
| the one involving the McBribe fellow | 15:22 |
| yaotti → yaotti_aw | 15:22 |
| ← MarkBao left | 15:23 |
| → skmidry__ joined | 15:23 |
| → tedoc2000 joined | 15:24 |
| ← tedoc2000 left | 15:25 |
| → jrguitar21 joined | 15:25 |
|
Acorn
| jast, thanks, does this look right? http://paste.pocoo.org/show/230265/ | 15:25 |
| ← jrguitar21 left | 15:26 |
| → nsussman joined | 15:27 |
|
Acorn
| and can I just run that command and then push? | 15:28 |
| → jezdez joined | 15:29 |
| ← nsussman left | 15:29 |
| → phlowx_ joined | 15:29 |
|
Ilari
| Acorn: Note that rewrites history, so push will fail unless you override safety checks. | 15:29 |
|
jezdez
| how can I get a list of all committers of a repo? | 15:29 |
|
Ilari
| Acorn: And it will be very nasty to others using the repo. | 15:29 |
| ← wakiki left | 15:30 |
|
Ilari
| jezdez: Log with suitable format, sort and uniq? | 15:30 |
| ← jrmuizel left | 15:30 |
| ← EricInBNE left | 15:30 |
| → Jaxan joined | 15:30 |
| → MarkBao joined | 15:31 |
| → dreiss joined | 15:32 |
| → madewokherd joined | 15:33 |
| ← phlowx left | 15:33 |
|
Acorn
| Ilari, how do I make the change then? It's just me and one other person using the repo | 15:33 |
|
Ilari
| Acorn: The other person needs to either discard or rebase their changes (NOT merge). | 15:34 |
|
jezdez
| Ilari: thanks and d'oh :) | 15:34 |
|
| Ilari: fwiw, `git shortlog -s | sort -r` seems like what I needed | 15:35 |
|
Acorn
| Ilari, so, we make sure that we both have the same version of the repo, I then run that command, and then I push with safety checks off, and deletes his copy and reclones or "rebases"? | 15:35 |
| → zimbres joined | 15:36 |
|
Ilari
| Acorn: fetch + reset can be used to overwrite local changes. | 15:36 |
| ← zimbres left | 15:36 |
| → zimbres joined | 15:37 |
| ← rox` left | 15:38 |
| ← tizbac left | 15:39 |
| → fantasticulous joined | 15:39 |
| ← fantasticulous left | 15:39 |
|
Chris64
| will git always merge per line? | 15:41 |
|
jast
| Acorn: yes, that's one way that should work. reclone or fetch+reset are the easiest/quickest ways. | 15:41 |
|
Chris64
| or also in a line? | 15:41 |
|
| or is it not useful? | 15:42 |
| → m0 joined | 15:42 |
|
jast
| Chris64: if both sides of the merge change the same line (or lines that are very close together), git treats that as a conflict that needs to be fixed manually when you do the merge | 15:42 |
| ← khmarbaise left | 15:42 |
|
Chris64
| because when writing latex code sometimes replacing a whole line is not useful ^^ | 15:42 |
|
Acorn
| jast, great, I'll do that when he's next online so I don't cause any lost work | 15:42 |
|
Chris64
| okay | 15:42 |
| → rox` joined | 15:43 |
| tghw_ → tghw | 15:46 |
| → FunctorSalad joined | 15:47 |
| ← jezdez left | 15:47 |
|
FunctorSalad
| git newb question: I suddenly get this error with my /etc repository: >>fatal: pathspec '"X11/ratmenu/debian.anwendungen.b\374ro.menu"' did not match any files<< | 15:48 |
| → plediii_ joined | 15:48 |
|
FunctorSalad
| I don't care about that file, how can force erasure or whatever of it? | 15:48 |
| → khmarbaise joined | 15:48 |
|
thiago_home
| git rm | 15:49 |
|
FunctorSalad
| (the error breaks the whole commit) | 15:49 |
| → sylr joined | 15:49 |
| ← sylr left | 15:49 |
|
FunctorSalad
| oh even if it doesn't exist? (haven't checked) | 15:49 |
|
thiago_home
| if the file doesn't exist, git rm --cached | 15:50 |
| ← project2501a left | 15:50 |
|
FunctorSalad
| is the nonascii character at fault? | 15:53 |
| ← poseid left | 15:53 |
|
FunctorSalad
| (git itself can presumably handle it, but maybe it got scrambled by something else) | 15:53 |
| → yann joined | 15:54 |
| → jrmuizel joined | 15:56 |
| → programble joined | 15:58 |
| → psoo joined | 16:00 |
| ← henkboom left | 16:02 |
| ← alip left | 16:02 |
| → alip joined | 16:03 |
| ← jrmuizel left | 16:04 |
| → apsysoev joined | 16:05 |
| → henkboom joined | 16:05 |
| → Chillance joined | 16:07 |
| → jrmuizel joined | 16:12 |
| ← rox` left | 16:13 |
| ← raichoo left | 16:15 |
| → shruggar joined | 16:17 |
| ← harinath left | 16:17 |
| → rox` joined | 16:18 |
| → icefox joined | 16:19 |
| ← sixteneighty left | 16:19 |
| ← jrmuizel left | 16:27 |
|
offby1
| my money is indeed on the non-asii character | 16:27 |
|
Chris64
| which one? | 16:29 |
| ← malumalu left | 16:30 |
| → lresende joined | 16:30 |
|
thiago_home
| that \374 | 16:30 |
| ← henkboom left | 16:31 |
| → harinath joined | 16:32 |
| → jrmuizel joined | 16:33 |
| → henkboom joined | 16:34 |
| → bmac_ joined | 16:43 |
| ← bmac left | 16:45 |
| → Yuffster joined | 16:45 |
| ← FunctorSalad left | 16:45 |
| → MicahElliott joined | 16:48 |
| → patrikf joined | 16:48 |
| ← vu3rdd left | 16:52 |
| ← g3d left | 16:52 |
| ← henkboom left | 16:52 |
| ← MicahElliott left | 16:53 |
| → henkboom joined | 16:55 |
| → engla|swe joined | 16:56 |
| ← dreiss left | 16:58 |
| → alester joined | 17:00 |
| ← henkboom left | 17:01 |
| → henkboom joined | 17:02 |
| → raichoo joined | 17:06 |
| ← raichoo left | 17:09 |
| → tom][v joined | 17:10 |
| → warlock_mza joined | 17:12 |
| ← fmardini left | 17:15 |
| → ExtraSpice joined | 17:16 |
| ← shruggar left | 17:19 |
| ← mw left | 17:20 |
| → snearch joined | 17:20 |
| ← Jaxan left | 17:20 |
| ← jrmuizel left | 17:24 |
| ← mw2 left | 17:25 |
| ← snearch left | 17:28 |
| → jrmuizel joined | 17:29 |
| → Titosemi_ joined | 17:32 |
| → RobertLaptop joined | 17:33 |
| → snearch joined | 17:34 |
| ← Titosemi left | 17:34 |
| Titosemi_ → Titosemi | 17:34 |
| ← snearch left | 17:35 |
| → snearch joined | 17:35 |
| → Leemp joined | 17:39 |
| → Tuller joined | 17:40 |
| → slashbeast joined | 17:40 |
| → marc_kdab joined | 17:42 |
| ← rado1 left | 17:43 |
| → Bennid joined | 17:44 |
| → iruediger joined | 17:46 |
| ← Chillance left | 17:48 |
| → tizbac joined | 17:50 |
| ← tom][v left | 17:50 |
| → Transformer joined | 17:52 |
| ← Transformer left | 17:53 |
| ← eletuchy left | 17:56 |
| → eletuchy joined | 17:56 |
| ← alester left | 17:58 |
| ← froschi left | 18:00 |
| → mindworx joined | 18:00 |
| ← zimbres left | 18:00 |
| ← chrislerum left | 18:02 |
| → spearce joined | 18:03 |
| → hobodave joined | 18:04 |
| → froschi joined | 18:04 |
| ← harinath left | 18:08 |
| → mattikus joined | 18:09 |
| ← psoo left | 18:11 |
| → Vadtec joined | 18:14 |
| → gebi joined | 18:14 |
|
Vadtec
| drizzd: are you there by chance? | 18:14 |
| ← mindworx left | 18:14 |
| → mindworx joined | 18:15 |
| → zimbres joined | 18:16 |
| ← tar- left | 18:16 |
| → neutrino joined | 18:16 |
| neutrino → tar- | 18:16 |
| → tom][v joined | 18:17 |
| ← eletuchy left | 18:19 |
| ← jrmuizel left | 18:20 |
| → Jaxan joined | 18:22 |
|
Vadtec
| guess not...well, in any case, last night i *finally* got a simple remote git repo setup, and to go along with it, I made a howto/tutorial/list of steps detailing what I did to get it to work, the results of which can be found here: http://wiki.vadtec.net/wiki/Git:RemoteRepo | 18:22 |
|
| feel free to pass it along to users trying to do the same thing, because google failed me when i tried to find such a simple example of how to setup a remote git repo | 18:23 |
| ← priidu left | 18:23 |
|
Vadtec
| enjoy | 18:23 |
| → harinath joined | 18:23 |
| ← Vadtec left | 18:23 |
| ← tar- left | 18:23 |
| → neutrino joined | 18:23 |
| neutrino → tar- | 18:23 |
| → jmcantrell joined | 18:25 |
| → MicahElliott joined | 18:25 |
| ← OFICINA7 left | 18:26 |
| → eletuchy joined | 18:26 |
|
wereHamster
| ugh, advising users to push through git:// ..? bad idea | 18:27 |
| ← henkboom left | 18:27 |
| ← jmcantrell left | 18:27 |
| ← snearch left | 18:28 |
| ← pellera left | 18:29 |
|
wereHamster
| wow, that guide is wrong on so many things.. | 18:30 |
| → henkboom joined | 18:31 |
| → icwiener joined | 18:32 |
| ← Chris64 left | 18:33 |
| ← mastro left | 18:34 |
| → archis joined | 18:34 |
| ← marc_kdab left | 18:34 |
| ← mattikus left | 18:37 |
| → Alagar1 joined | 18:38 |
| ← froschi left | 18:39 |
| → giskard joined | 18:40 |
| ← giskard left | 18:41 |
| chuck → charlie | 18:41 |
| → apsysoev1 joined | 18:41 |
| ← Alagar1 left | 18:42 |
| → Alagar1 joined | 18:42 |
| charlie → Guest24603 | 18:42 |
| ← Jordan_U left | 18:42 |
| ← apsysoev left | 18:43 |
| → mastro joined | 18:44 |
| ← Tuller left | 18:45 |
| ← Alagar1 left | 18:46 |
| → dl9pf_ joined | 18:46 |
| → Alagar joined | 18:46 |
| ← dl9pf left | 18:47 |
| ← Alagar left | 18:47 |
| ← archis left | 18:49 |
| → brosner joined | 18:55 |
| ← brosner left | 18:55 |
| → brosner joined | 18:56 |
| ← brosner left | 18:56 |
| → Alagar joined | 18:56 |
| → Tuller joined | 19:00 |
| → whaley joined | 19:00 |
| ← bavbat left | 19:00 |
| → brosner joined | 19:01 |
| ← brosner left | 19:01 |
| → brosner joined | 19:03 |
| ← mindworx left | 19:03 |
| ← ph^ left | 19:06 |
| → ph^ joined | 19:06 |
| → jailbox joined | 19:09 |
| → Oxf13 joined | 19:10 |
| → ziro` joined | 19:10 |
|
Oxf13
| Can anybody think of a reliable way to figure out what first remote branch from master a given local branch is tracking? Lets say a local branch is tracking an upstream branch of a branch (of a branch). I need to reliably discover what first level branch it eventually tracks back to. | 19:11 |
| → stringo0 joined | 19:11 |
|
thiago_home
| forget it | 19:11 |
|
| a branch, once created, is indistinguishable from the branch it branched from | 19:11 |
|
| the only information saved is the "tracking" branch and that's only for local ones | 19:12 |
|
Oxf13
| yet you can track the ancestry via the commits, you can kind of see it with git list-branch | 19:12 |
|
thiago_home
| you can't access that info in remote branches | 19:12 |
|
| I recommend you rethink what you're trying to accomplish | 19:12 |
|
patrikf
| Oxf13: so when the two branches diverge, how would you know which one was there first? | 19:12 |
|
Oxf13
| in my situation, we pre-create "top level" branches for our users | 19:13 |
|
| they can then branch from those top level to do specific work | 19:13 |
|
| I need a client tool to be able to discover which "top level" branch their work is the ancestor of | 19:13 |
|
| or the child of I should say | 19:13 |
|
thiago_home
| encode it in the branch name | 19:13 |
|
patrikf
| Oxf13: so every user has an own branch? | 19:13 |
|
thiago_home
| or ask them to write it down | 19:13 |
| ← RobertLaptop left | 19:14 |
|
Oxf13
| patrikf: they can. | 19:14 |
|
thiago_home
| or simply don't care | 19:14 |
|
Oxf13
| patrikf: every module will get branches such as "F-13" and "F-14" | 19:14 |
|
thiago_home
| why do you need to know which branch they branched off from? | 19:14 |
|
Oxf13
| the user has the option to further branch that for specific work | 19:14 |
|
patrikf
| Oxf13: sounds like a workflow not well fitted to git | 19:14 |
|
Oxf13
| thiago_home: We have to make some runtime decisions based on what upstream branch the code is from, when it is sent off to build. | 19:14 |
|
thiago_home
| Oxf13: ask the developers to write it down and save it in your build tool | 19:15 |
| → mindworx joined | 19:15 |
|
Oxf13
| encoding it in the branch name would work, but it would somewhat suck. | 19:15 |
|
| thiago_home: that's not going to work for 9K repos and 2K developers | 19:15 |
|
patrikf
| Oxf13: many tools that layer over git commit a dotfile to track additional information | 19:16 |
|
Oxf13
| yeah, I wanted to avoid junk in the module. | 19:16 |
|
thiago_home
| Oxf13: then you need to write a tool to help them | 19:16 |
|
Oxf13
| I could do that, but didn't want to. | 19:16 |
|
| i was just hoping there was a heuristic you could use to walk the commit history and discover the common top level branch. | 19:17 |
|
patrikf
| Oxf13: commit, yes, branch, no | 19:17 |
| → Vadtec joined | 19:17 |
|
Oxf13
| well the commit lives in a branch no? | 19:17 |
|
patrikf
| Oxf13: no | 19:18 |
|
Oxf13
| git show-branch is awfully close to showing me what I need | 19:18 |
|
thiago_home
| the commit lives in all branches | 19:18 |
|
patrikf
| Oxf13: a branch references a commit... but not the other way round | 19:18 |
|
thiago_home
| the best you can do is figure out which branch is closer to that commit | 19:18 |
|
| but that's a risky business if your top-level branches are somehat close to each other | 19:18 |
|
Oxf13
| what if we make a specific commit that marks it as a branch, or a specific tag? | 19:19 |
|
| can you track back to a specific tag? | 19:19 |
| → ChUrP1 joined | 19:19 |
|
thiago_home
| I didn't understand | 19:19 |
|
| you commit, then mark it by creating a branch on it | 19:19 |
|
| that's possible | 19:19 |
|
patrikf
| Oxf13: what are you *actually* trying to do? why do you have branches with strange names such as F-13? | 19:19 |
|
Oxf13
| so lets say when you make the branch, you then tag it with a specific tag, like F-13-Start | 19:19 |
|
thiago_home
| so what? | 19:19 |
|
| ok | 19:20 |
|
Oxf13
| patrikf: because we're moving to get to manage package sources for Fedora. | 19:20 |
|
| patrikf: and we branch the package modules for each release | 19:20 |
| → patmaddox joined | 19:20 |
|
thiago_home
| are the branches ever merged to each other? | 19:20 |
|
Oxf13
| thiago_home: rarely | 19:20 |
|
thiago_home
| ever? | 19:20 |
|
| even once? | 19:20 |
|
patrikf
| Oxf13: and why do you need to track back? | 19:20 |
|
Oxf13
| patrikf: because our build tool decides how to autofill some of our package info based on what branch/release you're building for | 19:21 |
| → jensn joined | 19:21 |
|
thiago_home
| if they are never merged, then you can find some exclusive commits | 19:21 |
|
Oxf13
| it also decides where to send the build request based on what branch/release you're working on | 19:21 |
|
thiago_home
| that is, you can find a particular commit in the history of a branch, but not a particular other commit | 19:21 |
|
Oxf13
| thiago_home: does merging one branch to another also merge tags? | 19:21 |
|
thiago_home
| your question doesn't make sense. Tags don't belong to a branch. | 19:21 |
|
| they belong to the repository | 19:21 |
|
| the only thing I can think of is simply marking well-known commits that exist only in a particular branch | 19:22 |
|
| you can tag those marker commits | 19:22 |
|
Oxf13
| "well-known" commit could be the tag | 19:22 |
| ← ChUrP left | 19:22 |
|
thiago_home
| but you must never merge, because then you'd have two or more markers in a same branch | 19:22 |
|
patrikf
| Oxf13: I think your life would be easier if that kind of version information lived in a separate file, and users could freely name their branches | 19:22 |
|
Oxf13
| that's unfortunate. | 19:23 |
| → GEEK00 joined | 19:23 |
|
Oxf13
| I guess I'm having a hard time wrapping my head around "commit belongs to the repo not the branch" when there are commits that I can see in the history of a branch, that I can't see in the history of another branch | 19:24 |
|
DrNick
| there's nothing stopping that commit from appear in another branch, too | 19:25 |
|
patrikf
| Oxf13: you also have earlier commits that both branches contain | 19:25 |
|
thiago_home
| Oxf13: one commit points to one or more parents | 19:25 |
|
| Oxf13: a branch is nothing more than a pointer to a commit | 19:25 |
|
Oxf13
| DrNick: sure, if somebody pulls that or cherry-picks that commit | 19:25 |
|
thiago_home
| if you have two commits A and B, then there are three options: | 19:25 |
|
DrNick
| no, not cherry-picking | 19:25 |
|
patrikf
| Oxf13: also, if your purpose is just some automatic guessing (with possible correction by the user), then of course you can just check which of the F-* branches is the closest | 19:25 |
|
thiago_home
| A is a descendant of B, B is a descendant of A, or A and B are disjoint | 19:26 |
|
Oxf13
| DrNick: or you merge | 19:26 |
|
| patrikf: how do I discover which of the F-* is closest? | 19:26 |
|
thiago_home
| patrikf: you can count the number of commits between the F-* base and the particular branch | 19:26 |
|
| by definition, the lowest number is the closest | 19:27 |
| ← brosner left | 19:27 |
|
thiago_home
| but that isn't necessarily what you expect, if you merge | 19:27 |
| ← name left | 19:27 |
|
Oxf13
| damn. I guess I will have to go with a .junk file | 19:28 |
|
patrikf
| Oxf13: don't you already have a meta-information file in fedora? e.g. like debian's debian/changelog | 19:28 |
|
Oxf13
| no | 19:28 |
|
| there is a .spec file | 19:28 |
|
patrikf
| that sounds like the place for such information | 19:29 |
|
Oxf13
| but they are designed so that they can be exactly the same across multiple branches | 19:29 |
|
thiago_home
| I don't see why such information needs to be saved | 19:29 |
|
Oxf13
| so that you can merge if you're keeping all branches the same. | 19:29 |
| → alester joined | 19:29 |
|
patrikf
| Oxf13: you could also make it an option for your build tool | 19:29 |
|
Oxf13
| thiago_home: because when I clone a branch of a particular package, I need to be able to easily build it without having to guess and research. | 19:29 |
| → shruggar joined | 19:29 |
|
Oxf13
| patrikf: asking the users to remember what target to build for won't work. They'll get it wrong, constantly. | 19:30 |
|
| this has to work very simply. "fedpkg build" should do the right thing. | 19:30 |
|
thiago_home
| I don't get it | 19:30 |
|
Oxf13
| fedpkg is our helper program | 19:30 |
|
thiago_home
| no, I just don't get what the issue is | 19:31 |
|
| sounds like you branch from master when you release the distro (or branch the distro) | 19:31 |
|
Oxf13
| so lets say you've got a check out of "yum" and it's on a local branch by the name of "CoolBranch" | 19:31 |
|
thiago_home
| you do that in all repositories. Fine. | 19:31 |
|
| so? | 19:31 |
|
Oxf13
| CoolBranch is an upstream branch from F-13 | 19:31 |
|
DrNick
| if a use does a scratch build of an arbitrary branch, it needs to be sent off to the right builder for the distro version that branch is targetting | 19:31 |
|
Oxf13
| so the build helper needs to be able to tel lwhen you say "fedpkg build" that the build is supposed to go to our F-13 target | 19:32 |
|
thiago_home
| so a user clones a repository, branches off a particular branch, then says "now build this' ? | 19:32 |
|
Oxf13
| and that certain macros in our spec files resolve out to the F-13 version of them. | 19:32 |
|
| thiago_home: that is one work flow yes. | 19:32 |
|
thiago_home
| sounds like that info needs to be saved in the files, not in Git | 19:32 |
|
Oxf13
| otherwise most people just build from the pre-created F-?? branches. | 19:32 |
|
thiago_home
| what happens if they take the thing out of Git? | 19:33 |
| ← mastro left | 19:33 |
|
Oxf13
| thiago_home: then it doesn't get built in our buildsystem. | 19:33 |
|
| these aren't upstream repos | 19:33 |
|
thiago_home
| so the users push a branch and it gets built? | 19:33 |
|
Oxf13
| they are repos we create to track the spec files and aptches. | 19:34 |
|
| thiago_home: they push, then request a build of a given hash. | 19:34 |
|
| if that hash isn't found in our repos, the build fails. | 19:34 |
|
thiago_home
| you said that the discovery would be just a hint and users would be able to override, right? | 19:34 |
|
Oxf13
| the discovery would be what the tool uses to discover. A user might be able to override that with specific options to the tool | 19:34 |
|
| but this is the edge case, done by people who know what they are doing. | 19:35 |
|
thiago_home
| I still think this needs to be saved in the files themselves | 19:35 |
|
Oxf13
| (and the buildsystem may yet refuse to do it) | 19:35 |
|
thiago_home
| sounds a lot easier | 19:35 |
|
Oxf13
| easier yes, but still dirty feeling | 19:35 |
|
thiago_home
| the only difficulty is to modify the control file at branch-distro time, but not that much more difficult than branching in all repositories | 19:35 |
|
| it has a clean feeling for me | 19:35 |
|
Oxf13
| it's something added to the repo that doesn't actually go in the package. | 19:36 |
|
| which I was trying to avoid. | 19:36 |
|
thiago_home
| you probably won't add .gitignore files either | 19:36 |
|
DrNick
| Oxf13: why can't the target be encoded in the branch name? | 19:36 |
|
Oxf13
| DrNick: people can name local branches however they want | 19:37 |
|
DrNick
| or do you just want it to work with arbitrary ... right | 19:37 |
|
thiago_home
| local branches are local | 19:37 |
|
Oxf13
| DrNick: the difficulty would be tracking back to what base upstream branch the local branch (of a branch?) came from | 19:37 |
|
thiago_home
| when they push to the server, that's different | 19:37 |
|
Oxf13
| thiago_home: but at build request time, all I really have is the local branch name to work with. | 19:37 |
|
thiago_home
| no | 19:37 |
|
Oxf13
| or whatever remote branch that local branch is tracking | 19:37 |
|
| according to the local repo | 19:37 |
|
thiago_home
| right | 19:38 |
|
| but the local branch name is useless anywhere else but local | 19:38 |
|
| the only info that is everywhere is the SHA-1 | 19:38 |
| ← thomas_b left | 19:38 |
|
thiago_home
| will *all* packages have *at least* one commit in *every* single release? | 19:39 |
|
Oxf13
| we can guarantee that if we have to | 19:39 |
|
| all work starts in origin/master | 19:39 |
|
| that's our development branch | 19:39 |
|
thiago_home
| yup | 19:39 |
|
Oxf13
| when we shift into release mode to stabalize, we branch from origin/master and create origin/F-14 | 19:39 |
|
thiago_home
| if you don't ensure at least one commit, then two branches could be actually equal | 19:39 |
|
Oxf13
| if we have to, we can make a bullshit commit to that newly created branch | 19:40 |
|
DrNick
| you'd have to make the bullshit commit anyway for your .target files | 19:40 |
|
Oxf13
| that would guarantee that every top level branch has at least one commit | 19:40 |
| → thomas_b joined | 19:40 |
|
Oxf13
| DrNick: I'm trying to do away with having .target files | 19:40 |
|
patrikf
| Oxf13: you said the F-* branches could be merged sometime? | 19:40 |
|
thiago_home
| you mean "one commit that is not on master" | 19:41 |
|
Oxf13
| thiago_home: we do want to allow users to create their own remote branches, they would be branches of a top level F-?? branch, or of origin/master | 19:41 |
|
| patrikf: yes, because we design our spec files so that they work without change when building from one release to another, it is possible for somebody to make a change on origin/master, then merge to the other branches | 19:41 |
|
| or make a change on F-13 and merge it to F-12/F-11 | 19:41 |
|
thiago_home
| right | 19:42 |
|
patrikf
| Oxf13: usually you cherry-pick in such situations | 19:42 |
|
thiago_home
| the "git way" would be that, if you don't have to, you don't create a commit | 19:42 |
|
| so you could have exactly the same SHA-1 for F-12, F-13 and F-14 | 19:42 |
|
Oxf13
| thiago_home: right, that's one of the reasons why we're moving to git, to make this kind of thing easier | 19:42 |
|
| and cleaner | 19:42 |
|
| do the work once, merge it where appropriate. | 19:42 |
|
thiago_home
| but then it's impossible to tell which one was branched from | 19:42 |
|
| because there's no distinction. They are all the same. | 19:43 |
| ← tom][v left | 19:44 |
|
thiago_home
| so your options are: | 19:45 |
|
Oxf13
| oh right, the .foo junk won't work | 19:45 |
|
thiago_home
| - find the branch that is closest, without ensuring at least one commit | 19:45 |
|
Oxf13
| because you'd try and merge it and then you'd screw up the contents. | 19:45 |
|
thiago_home
| - find the branch that is closest, ensuring at least one commit | 19:45 |
| ← GEEK00 left | 19:45 |
|
Oxf13
| unless we can setup a merge rule that never tries to merge changes to .buildmap | 19:45 |
|
| or .branch or whatever I call it | 19:45 |
|
thiago_home
| I don't think it would conflict | 19:46 |
| → lispy joined | 19:46 |
|
Oxf13
| if on origin/master the .branch says "rawhide", you branch for F-13 and change it to say "F-13", commits happen for a while, then you merge origin/master over to F-13, what happens to the contents of .buildmap ? | 19:46 |
|
| er, .branch | 19:46 |
|
| I suppose if it wasn't changed on master after it was changed on F-13 that might be OK | 19:47 |
|
DrNick
| custom merge driver that always keeps the version from the destination branch | 19:47 |
|
thiago_home
| yes, that workflow wouldn't conflict | 19:47 |
|
| but in my opinion the merge is in the wrong direction | 19:47 |
| → mmw joined | 19:48 |
|
thiago_home
| the .branch file would contain "F-13" today, in the master branch | 19:48 |
|
| once F-13 branches and the work starts on F-14, the .branch files are all updated to say "F-14" | 19:49 |
|
Oxf13
| no | 19:49 |
|
thiago_home
| yes | 19:49 |
|
Oxf13
| we've been down that road | 19:49 |
|
| things go weird around branch time | 19:49 |
|
thiago_home
| anyway, once a fix is done in the F-13 branch, it's merged up to master | 19:49 |
|
Oxf13
| I've found it better if the map never changes on origin/master | 19:49 |
|
thiago_home
| no conflict in the file | 19:49 |
|
Oxf13
| and only gets updated once we branch | 19:49 |
|
thiago_home
| I'm telling you what works for me with version files | 19:50 |
|
Oxf13
| thiago_home: a lot of times the work on the F-13 branch is never seen on origin/master | 19:50 |
|
| because the F-13 branch may be package version 3.2 and have 3.2 bugfixes, but origin/master moved on to 3.3 or even version 4 | 19:50 |
| → Chris64 joined | 19:50 |
|
Oxf13
| so the changes on F-13 aren't appropriate for origin/master | 19:50 |
|
| thiago_home assumes that any work done for a release X is valid for release Y provided Y > X | 19:50 |
|
thiago_home
| at least that's how it works for doing code in Git | 19:51 |
|
Oxf13
| not at all | 19:51 |
|
| massive rewrites happen | 19:51 |
|
thiago_home
| in the newer branches | 19:51 |
|
Oxf13
| a bugfix for code in version 3.2 may not even exist for version 4 | 19:52 |
|
thiago_home
| but then the merge will conflict, requiring a manual fix | 19:52 |
|
Oxf13
| the merge would "conflict" massivly | 19:52 |
|
thiago_home
| but at least you know that there was a change that may require your attention | 19:52 |
|
| I know, it happens | 19:52 |
|
Oxf13
| it's completely inappropriate to merge something like that | 19:52 |
|
thiago_home
| but for the normal use-case of code not getting rewritten at every release, it works just fine | 19:52 |
|
Oxf13
| also, this isn't "code" in the normal sense. | 19:53 |
|
| this is a rpm spec file, and maybe some .patch files | 19:53 |
| → chrislerum joined | 19:53 |
|
thiago_home
| actually, .spec files do look like code | 19:53 |
|
Oxf13
| and another file that lists the active source tarball | 19:53 |
| → little_owl joined | 19:53 |
|
Oxf13
| changes get made on origin/master that are generally pretty dramatic, new versions, changes to how the spec looks, changelog and version entries for rebuilds for new compilers, things like that | 19:54 |
| ← slashbeast left | 19:54 |
|
thiago_home
| yup | 19:54 |
|
Oxf13
| changes on the branches are less dramatic, but diverge from origin/master | 19:54 |
|
thiago_home
| yup | 19:54 |
|
| but you do want those minor changes to show up in the next version, right? | 19:54 |
|
Oxf13
| and are often irrelevant to origin/master | 19:54 |
|
| no | 19:54 |
|
thiago_home
| so there's a rewrite in every single release? | 19:54 |
|
Oxf13
| the changes aren't what you're thinking | 19:54 |
|
| or even if so. | 19:55 |
|
| lets say you've got a minor bug in the 3.2 version of your source in a particular function | 19:55 |
|
| so you fix it in 3.2. | 19:55 |
|
little_owl
| Is there some intro for a mercurial user, who is tempted to try git? | 19:55 |
|
Oxf13
| the bug doesn't exist in 3.3, the function doesn't even exist in 4 | 19:56 |
|
| so why would you try to merge this change into 3.3 and 4? | 19:56 |
|
thiago_home
| Oxf13: because if the bug was in 3.2, it was in 3.3 as well | 19:56 |
|
| 3.2 and 3.3 were branched off the same source | 19:56 |
|
| same "master" | 19:56 |
|
Oxf13
| no it isn't | 19:56 |
|
thiago_home
| yes it is | 19:57 |
|
Oxf13
| ... | 19:57 |
|
thiago_home
| there's master, it branches off to 3.2 | 19:57 |
|
| then some time later, master is branched off to 3.3 | 19:57 |
|
Oxf13
| sorry I meant "no it isn't" to "the bug was in 3.2 it's in 3.3" | 19:57 |
|
thiago_home
| if there's a bug in 3.2, there's a good likelihood that it's there in later versions too | 19:57 |
| → hyperair joined | 19:57 |
|
Oxf13
| "a good likelihood" | 19:57 |
|
| except for when it is obviously not | 19:57 |
|
| because say that function got re-written between 3.2 and 3.3 | 19:57 |
|
thiago_home
| it's not if the bug is a regression in 3.2.1 compared to 3.2.0 | 19:58 |
|
| or in the case of rewrites | 19:58 |
|
| but, like I said, rewrites are not the common case | 19:58 |
|
Oxf13
| the way our distro works, the more common case is to have "rewrites" between the branches | 19:58 |
|
thiago_home
| and the only other case I can think of not wanting a fix in a later version is of temporary hacks | 19:58 |
|
| I know, I understand that | 19:58 |
|
Oxf13
| (for that matter, rewrites happen on the branches too) | 19:58 |
|
thiago_home
| but that's not the common case for long-lived code | 19:58 |
|
Oxf13
| thiago_home: upstream packages change fast | 19:58 |
|
| we pull in those new versions frequently | 19:59 |
|
| we have 9K+ packages | 19:59 |
|
thiago_home
| anyway, my recommendation is to find the closest branch and not enforce a commit | 19:59 |
|
Oxf13
| many many of those are still fast moving projects. | 19:59 |
|
thiago_home
| if a package wasn't touched between two Fedora versions, then there's an ambiguity | 19:59 |
|
Oxf13
| thiago_home: ok, how does one find the closest branch? | 19:59 |
|
thiago_home
| but I'd say it's something you can live with | 19:59 |
|
| git rev-list <basebranch>..<sha1> | wc -l | 19:59 |
|
| compare the count | 20:00 |
|
| the lowest strictly-positive number is the one you probably want | 20:00 |
|
| the 0 case can happen if basebranch == sha1 | 20:01 |
| ← little_owl left | 20:01 |
|
thiago_home
| if you use tags (especially annotated tags), both the branch name and the commit count are shown in git describe's output | 20:02 |
| ← yann left | 20:02 |
|
Oxf13
| our tags are typically in the form of <name>-<version>-<release> for the given package. | 20:03 |
|
thiago_home
| assuming you never or rarely merge, this will probably work quite well | 20:03 |
|
Oxf13
| which may or may not have any information about the specific Fedora release. | 20:03 |
|
| it could jsut be "glibc-2.3.2-2.5" | 20:03 |
|
thiago_home
| you can ask describe to describe only relative to a specific set of tags | 20:03 |
| → huehnts joined | 20:04 |
| ← huehnts left | 20:08 |
| ← hohoho left | 20:08 |
| → offby1` joined | 20:11 |
| → dreiss joined | 20:14 |
| ← gebi left | 20:14 |
| → jmspeex joined | 20:15 |
| → gebi joined | 20:16 |
|
Vadtec
| greetings all, it came to my attention that the guide i linked earlier had some nasty issues, thanks to wereHamster, i believe they have been sorted, as such, i have updated my guide and welcome any comments, http://wiki.vadtec.net/wiki/Git:RemoteRepo | 20:22 |
| ← tar- left | 20:22 |
| → neutrino joined | 20:23 |
| neutrino → tar- | 20:23 |
| ← hyperair left | 20:24 |
| → OFICINA7 joined | 20:25 |
| ← gebi left | 20:26 |
| → froschi joined | 20:27 |
| → ilogger2 joined | 20:28 |
|
shruggar
| Vadtec, first note I have from reading the first paragraph: your guide seems to be talking about setting up a remote shared repository, but the title and opening lines seem to imply that all this additional set-up is required merely for creating a remote git repos | 20:31 |
|
| I'd add mention that the guide is for a remote repos to be used by multiple users | 20:31 |
| → raichoo joined | 20:32 |
|
shruggar
| (and I wouldn't call the requirement of multiple users to be a "simple" setup) | 20:32 |
| → gebi joined | 20:33 |
| → jrmuizel joined | 20:34 |
|
Vadtec
| shruggar: hmmm, yes, it could be used by multiple users, in this case, its only me using this particular repo atm, which is reflected in the wording | 20:35 |
| → ilogger2 joined | 20:35 |
|
Vadtec
| ill reword it to reflect the fact that multiple users can use it as well | 20:35 |
|
| im curious though, how is this not a simple setup for multiple users? you add the repos and their ssh keys and they can commit, can it get any more simple than that? | 20:36 |
|
shruggar
| if only one user is using it, a group shouldn't be necessary. nor should git-daemon (though I've only been skimming, it seems you have ssh access anyway) | 20:36 |
| → marcial5_ joined | 20:37 |
|
Vadtec
| the group is only for the shell user that is being created | 20:37 |
|
| as in the user:group | 20:37 |
|
shruggar
| Vadtec: I'm just hesitant to call something a "simple guide to setting up a git remote", when it goes through all these extra steps which aren't needed for the most basic set-up | 20:38 |
| → Weems joined | 20:38 |
|
Vadtec
| as for git-daemon, i track this project with Ohloh, which doesnt provide an ssh key, so i need read-only access to allow it to obtain updates | 20:38 |
| marcial5_ → marcial5 | 20:39 |
|
Vadtec
| is it the git-daemon section that you think makes it "not a simple" setup? | 20:39 |
|
shruggar
| the most basic set up for a git remote in my mind is: 1) ensure you have ssh access to the remote location. 2) ssh in to that location 3) from the remote, create a new directory called something.git 4) from within that directory, do git init --bare 5) from your local repository, do "git remote add someremote username@remote-host:path/to/directory.git 6) type "git push someremote somebranch" | 20:40 |
|
| Vadtec, anything that requires an extra group, and extra user, any access controls, is not a "simple guide to setting up a remote". It might be a simple guide to setting up a git repository which allows for read-only access from Ohloh, but it's far too complex to be a simple guide for merely setting up a remote | 20:42 |
|
| so, my only issue is with the name. Other than that, it seems thorough and well-phrased | 20:42 |
|
Vadtec
| it really doesnt have a name, but i can see your point of view, ill work some wording changes into it as i have the time | 20:43 |
|
AAA_awright
| Oxf13: The thing to avoid getting caught up in is a branch is just a pointer to a single commit, it doesn't describe an ancestry in any fashion. A branch is a tag that can advance when a new commit is made, pretty much. | 20:43 |
|
Vadtec
| but right now, its time to bbq | 20:44 |
|
shruggar
| this is the part I disagree with: "How to setup a simple remote git repo without needing gitosis or other such things." | 20:44 |
|
Vadtec
| shruggar: fwiw, i just threw those steps together mostly for my own sake last night, but i had intended to re-work it into a proper guide anyways, its just not my style | 20:45 |
|
| ok, so ill remove simple and replace it with moderate | 20:45 |
|
| or something of the sort | 20:45 |
|
Oxf13
| AAA_awright: yeah, I kinda get that, yet still there are tools which show ancestry of branches. | 20:46 |
| → jmcantrell joined | 20:46 |
|
Vadtec
| shruggar: refresh the page, that should be satisfactory | 20:46 |
| → jasonn1234 joined | 20:48 |
| → henkboom joined | 20:48 |
| ← henkboom left | 20:53 |
|
shruggar
| Vadtec, works for me. Just trying to avoid scaring off people who might switch to git if not for the giant fears of "omg wtf why is it so complicated?" | 20:53 |
|
| more acceptance of git by the easily-scared = easier time convincing co-workers to use git :) | 20:54 |
| → henkboom joined | 20:55 |
| → Mage joined | 20:55 |
| → offby1 joined | 20:57 |
|
patrikf
| Vadtec: I don't think having a separate git user for ssh access makes any sense | 21:02 |
| → brosner joined | 21:02 |
| ← brosner left | 21:02 |
|
| Vadtec sits down after lighting the grill | 21:02 |
|
patrikf
| Vadtec: maybe for git-daemon as a privilege separation measure, but otherwise just give every developer his own login | 21:02 |
|
Vadtec
| patrikf: its a priv separation issue | 21:03 |
|
| and it makes it easier to keep track of all the repos, imo | 21:03 |
|
patrikf
| Vadtec: how is it a privilege separation issue? | 21:03 |
|
Vadtec
| for 1, the git user has no password, so unless someone steals an ssh key, it cant be used as an attack vector | 21:04 |
|
patrikf
| Vadtec: well, I'm not telling you how to do it, I just think it's way overcomplicated and not elegant | 21:04 |
|
Ilari
| Seperate git user would make fs permissions easier... | 21:04 |
|
Vadtec
| and for 2, by using git shell, if it is compromised, the damage is minimal | 21:04 |
| → ilogger2 joined | 21:05 |
|
Vadtec
| it increases greatly | 21:06 |
|
| because they have more access to more things | 21:06 |
|
patrikf
| how so? | 21:06 |
|
Vadtec
| git-shell only allows 3 commands | 21:06 |
|
| a regular bash shell allows gcc, cat, etc | 21:06 |
|
shruggar
| Vadtec, you can restrict commands usable by an ssh key | 21:06 |
|
Vadtec
| if there is a local root sploit and they get a regular shell login | 21:07 |
|
| they can get at the box | 21:07 |
|
| sure you can | 21:07 |
| → t0rc joined | 21:07 |
|
Vadtec
| but this is simpler than having to edit the ssh rules | 21:07 |
|
patrikf
| Vadtec: I don't know if we're talking about the same thing. Even with a separate git user, I take it you would still have another user able to log in via SSH in order to administrate the box? | 21:07 |
|
Vadtec
| the only account on this vps that has a password is my account | 21:08 |
|
| everything else uses ssh keys | 21:08 |
|
| patrikf: yes, there are separate logins to administer the box | 21:08 |
|
shruggar
| Vadtec, I don't see how "make a new user and group" is simpler than "add a line to .ssh/authorized_keys", especially considering that the "add a line" part is a step in /both/ procedures ;) | 21:08 |
|
Vadtec
| but id love to see anyone get the ssh keys that would allow them to login | 21:08 |
|
| ok, its this simple | 21:09 |
|
| i want to have all remote repos on that box housed under ONE location | 21:09 |
|
| i chose to do that via a dedicated git user | 21:09 |
|
patrikf
| /srv/git? | 21:09 |
|
| Vadtec: you get more simplicity and more fine-grained access control (should you ever need it) if you give each developer a regular account, instead of sharing one | 21:10 |
|
Chris64
| do you really need ssh access? | 21:10 |
|
Vadtec
| but then if you need to have multiple developers commiting to each others repos, you have to add their ssh keys to everyones login | 21:10 |
|
| which is a major security risk | 21:11 |
|
patrikf
| Vadtec: nah | 21:11 |
|
shruggar
| patrikf, unless he uses gitolite ;) | 21:11 |
|
patrikf
| Vadtec: that's why unix has groups... | 21:11 |
|
Chris64
| what is gitolite? | 21:11 |
|
patrikf
| (and git has --shared=group) | 21:11 |
| → Titosemi_ joined | 21:11 |
|
Vadtec
| yeah well, dont bash me because im new to git, ive only been using it for a few weeks now | 21:11 |
|
| that wont change my mind about how i setup my repo | 21:12 |
|
Ilari
| Chris64: Gitolite performs authorization of access into git repositories. | 21:12 |
|
shruggar
| gitolite is a way of solving all the various problems which people have when they want to do something more-complicated than "ssh in to my own account and push into a git repos which is owned only by me" | 21:12 |
|
Chris64
| interesting :) | 21:13 |
|
Vadtec
| if you all think my guide is so bad, feel free to edit it and clean it up | 21:13 |
| Titosemi_ → Titosemi | 21:13 |
| → brosner joined | 21:13 |
| ← brosner left | 21:13 |
|
Vadtec
| it really is a moot point regardless | 21:13 |
|
Chris64
| do you know how github works? because they won't have ssh access for everyone or? | 21:14 |
|
Ilari
| Chris64: Usually gitolite is run on top of sshd. | 21:14 |
|
patrikf
| Chris64: they do, but you can only execute git receive/upload-pack | 21:15 |
|
Chris64
| mh, okay | 21:15 |
| → ilogger2 joined | 21:16 |
|
Ilari
| But sshd isn't the only option (well, practically it is)... | 21:18 |
| → ratc joined | 21:19 |
| → Tuller joined | 21:20 |
| → airborn joined | 21:21 |
| → hyperair joined | 21:21 |
|
patrikf
| Ilari: indeed, there's WebDAV ;-) | 21:21 |
|
Ilari
| patrikf: Gitolite can't run on top of WebDAV. | 21:21 |
|
patrikf
| Ilari: oh, thought you were talking about git in general | 21:22 |
| → Jaxan joined | 21:23 |
| → _ikke_ joined | 21:24 |
|
shruggar
| anyone know where I can look for an example of determining whether or not the work-tree and/or index are dirty in C? (as in, within the git code) | 21:29 |
| → JStout joined | 21:29 |
| ← Jaxan left | 21:30 |
| → MetaCosm joined | 21:30 |
| → Jaxan joined | 21:31 |
| → SRabbelier joined | 21:31 |
| → Paraselene_ joined | 21:32 |
| ← Jaxan left | 21:33 |
| → Jaxan joined | 21:33 |
| → jasonn1234 joined | 21:38 |
| → brosner joined | 21:38 |
| ← SRabbelier left | 21:39 |
| → consolers joined | 21:42 |
| ← hyperair left | 21:43 |
| ← Jaxan left | 21:43 |
| ← jasonn1234 left | 21:45 |
| → ChUrP joined | 21:45 |
| → SRabbelier joined | 21:47 |
| ← MetaCosm left | 21:50 |
| → MetaCosm joined | 21:50 |
|
wereHamster
| shruggar: see which git command you would use, then see which cmd_ method that command is using, then call that method :P | 21:53 |
| → mithro joined | 21:54 |
|
shruggar
| yeah, that's where I've been digging | 21:54 |
| → ciupicri joined | 21:55 |
| → jasonn1234 joined | 21:55 |
|
ciupicri
| how can I still commit a file from an ignored directory?.gitignore has "/SOURCES" and I want to commit (repo_root)/SOURCES/django-threaded-multihost-no-ez_setup.patch | 21:56 |
| → jmcantrell joined | 21:58 |
|
shruggar
| ciupicri, "git add the/file", then commit | 21:59 |
| → iruediger joined | 22:00 |
|
shruggar
| ciupicri, possibly add -f to that "git add" | 22:00 |
| → mw joined | 22:00 |
| ← Tuller left | 22:01 |
| ← MetaCosm left | 22:02 |
|
ciupicri
| shruggar, let me try the -f | 22:02 |
|
| shruggar, yep, it worked. Thanks! I guess they don't say "Use the force Luke!" for nothing :-) | 22:03 |
| → froschi joined | 22:03 |
| → mw2 joined | 22:03 |
|
shruggar
| ah, that explains why I couldn't find what I'm looking for - I was running the wrong command | 22:04 |
|
| diff-index I wanted, not diff-files | 22:04 |
| → Tuller joined | 22:07 |
| ← jasonn1234 left | 22:07 |
| → skmidry_ joined | 22:10 |
| ← mw left | 22:12 |
| ← froschi left | 22:13 |
| → bobrik joined | 22:14 |
| → jasonn1234 joined | 22:14 |
| ← jasonn1234 left | 22:15 |
| ← mw2 left | 22:16 |
| ← consolers left | 22:18 |
| → henkboom joined | 22:18 |
| → mindworx joined | 22:23 |
| → aliceinwire joined | 22:25 |
| → chrislerum joined | 22:30 |
| → harinath joined | 22:32 |
| → adamm joined | 22:33 |
| ← adamm left | 22:33 |
| → adamm joined | 22:33 |
| ← mindworx left | 22:33 |
| ← ratc left | 22:35 |
| → ratc joined | 22:35 |
| ← chrislerum left | 22:36 |
| → bagoor joined | 22:38 |
|
bagoor
| git-daemon supports encryption ? | 22:38 |
| → eletuchy_ joined | 22:39 |
| → mindworx joined | 22:39 |
| ← harinath left | 22:44 |
| ← iruediger left | 22:44 |
|
kokx
| bagoor: afaik, not, i recommend using ssh for push access ;) | 22:45 |
| ← mindworx left | 22:45 |
|
Ilari
| bagoor: Nope, git-daemon does not support authentication nor encryption. | 22:46 |
| → coppro joined | 22:47 |
| ← jmcantrell left | 22:47 |
| → EricInBNE joined | 22:47 |
| → drizzd joined | 22:47 |
|
bagoor
| What's the best method for providing GIT without SSH Account ? Gitosis ? | 22:50 |
|
Ilari
| bagoor: Gitolite. | 22:50 |
|
bagoor
| Ilari, is it better than Gitosis ? | 22:52 |
| → mindworx joined | 22:52 |
|
Ilari
| bagoor: Yup. | 22:53 |
| ← drizzd left | 22:54 |
| → maaadbob joined | 22:55 |
|
maaadbob
| How do I make my local 'master' branch from git.kernel.org updated to the latest version without having to delete and re-download everything ? | 22:57 |
| → harinath joined | 22:57 |
|
wereHamster
| maaadbob: git checkout master; git pull | 22:58 |
|
maaadbob
| From there I can now clone that download and carry on as usual ? | 22:59 |
|
| ..branch that download... | 22:59 |
| → giskard joined | 22:59 |
| → iruediger joined | 23:00 |
|
wereHamster
| you already cloned a repo, right? | 23:00 |
|
maaadbob
| Yes, but deleted it. I should just 'branch newfile', 'checkout newfile' ? | 23:01 |
|
wereHamster
| deleted what/ | 23:02 |
|
| the whole clone? | 23:02 |
|
maaadbob
| I downloaded the master, then made a branch of it. It is the latter I deleted with 'git branch -D xxxx' | 23:02 |
|
wereHamster
| and now you want to do what..? | 23:03 |
|
maaadbob
| Create a new branch and work on that. I should be able to do that with the commands branch and checkout. | 23:04 |
|
wereHamster
| maaadbob: git branch the-new-branch master; git checkout the-new-branch | 23:04 |
|
maaadbob
| Yes, I understand now. | 23:05 |
|
| Done that. Git report 'M drivers/staging/comedi/drivers/amcc_s5933.h'/ | 23:06 |
|
| which is the file I updated when I had my old branch. Is the 'M' important ? | 23:07 |
|
wereHamster
| it tells you that the file is modified in your working tree | 23:08 |
| → skmidry__ joined | 23:08 |
|
maaadbob
| I see. Must have missed that in the docs. | 23:09 |
|
| Thanks for your help. Submitted my first ever kernel patch recently. It was nothing more than 'code cleanup', but it feels good to be able to contribute. | 23:10 |
| → jensn joined | 23:10 |
| ← jensn left | 23:10 |
| ← skmidry_ left | 23:12 |
| ← maaadbob left | 23:12 |
| → plediii_ joined | 23:14 |
| → aless joined | 23:15 |
| ← giskard left | 23:15 |
| → brizly1 joined | 23:17 |
| → starcoder|Svr joined | 23:24 |
| → giskard joined | 23:24 |
| → mw joined | 23:24 |
| → mw2 joined | 23:29 |
| ← giskard left | 23:29 |
| → homiziado joined | 23:32 |
| ← mindworx left | 23:33 |
| → Transformer joined | 23:33 |
| ← Transformer left | 23:34 |
| → ft joined | 23:37 |
| ← mw left | 23:37 |
| → jasonn1234 joined | 23:40 |
| ← mw2 left | 23:41 |
| ← eletuchy_ left | 23:43 |
| ← ciupicri left | 23:44 |
| → little_owl joined | 23:44 |
| → javaJake joined | 23:45 |
|
javaJake
| The subversion repository I'm cloning has a nice trunk/branch/tag layout. However, there is another extra folder with other projects that don't have such nice layouts, and are basically trunks of other projects. How do I add these as git branches in git-svn? | 23:46 |
| ← Tuller left | 23:46 |
| → mindworx joined | 23:46 |
|
javaJake
| So it looks like this: nice-folder/{trunk,branches,tags} , not-so-nice/[project-name]/ | 23:46 |
|
| I'd like to add all the not-so-nice/* folders as more branches, but of different projects. | 23:47 |
|
| Should each be a different git repo? | 23:47 |
|
wereHamster
| if those are different projects, then you probably should import them into separate git repos | 23:47 |
|
javaJake
| OK | 23:47 |
|
| Sounds reasonable, actually | 23:47 |
|
wereHamster
| one git repo = one project | 23:47 |
|
javaJake
| Yep, yep, makes sense. I've used svn for far too long. ;) | 23:48 |
| ← airborn left | 23:51 |
|
javaJake
| Thanks for the advice. | 23:51 |
| ← javaJake left | 23:51 |
| → airborn joined | 23:51 |