1 |
On Saturday, August 29, 2015 6:13:30 PM Dale wrote: |
2 |
> Fernando Rodriguez wrote: |
3 |
> > On Saturday, August 29, 2015 10:48:16 AM Dale wrote: |
4 |
> >> Todd Goodman wrote: |
5 |
> >>> * Philip Webb <purslow@××××××××.net> [150828 18:35]: |
6 |
> >>>> 150828 Rich Freeman wrote: |
7 |
> >>>>> To really appreciate git you should understand git objects |
8 |
> >>>>> and their references, what a commit, tree, and blob are. |
9 |
> >>>>> Also, the whole copy-on-write concept and content-hashing concept. |
10 |
> >>>>> I used to think git looked really complicated until I sat |
11 |
> >>>>> through a 1 hr talk that focused mostly on the data model. |
12 |
> >>>>> Once you understand the data model, you understand everything. |
13 |
> >>>>> That doesn't take a lot of time. It does take a moderate amount of |
14 |
time |
15 |
> >>>>> learning the right things. They're not found in the manpages. |
16 |
> >>>>> Like I said, beautiful design, horrible interface. |
17 |
> >>>> So is there a Gentoo doc -- Wiki, presumably -- |
18 |
> >>>> explaining to users -- users, not dev's or Git addicts -- |
19 |
> >>>> the essentials of Git, so that they can readily update using it ? |
20 |
> >>>> If so, I'm willing to see if I can use it ; |
21 |
> >>>> if not, I would suggest it sb a top priority for dev's to write. |
22 |
> >>> You don't *need* to know anything about git to update using it. |
23 |
> >>> |
24 |
> >>> Just change your /etc/portage/repos.conf/gentoo.conf as Rich outlined |
25 |
> >>> (and move away your rsync'd /usr/portage or wherever your portage tree |
26 |
> >>> goes.) |
27 |
> >>> |
28 |
> >>> Then when you emerge --sync (or emaint -A sync, etc.) it will sync via |
29 |
> >>> git and emerge will work as always. |
30 |
> >>> |
31 |
> >>> Now if you want to do more or just want to learn more about git then |
32 |
> >>> that's different. |
33 |
> >>> |
34 |
> >>> Todd |
35 |
> >>> |
36 |
> >>> |
37 |
> >>> |
38 |
> >> |
39 |
> >> I think what we are talking about is viewing things like the changelogs |
40 |
> >> and such, which are currently not synced with the tree. Or did we |
41 |
> >> change to some other topic and I missed it? I tracked back to Alan |
42 |
> >> Mackenzie's split of this thread |
43 |
> >> . |
44 |
> >> Dale |
45 |
> >> |
46 |
> >> :-) :-) |
47 |
> >> |
48 |
> > It's probably easier to do this: |
49 |
> > |
50 |
> > # cd /usr/portage |
51 |
> > # rm -r * |
52 |
> > # git clone <repo-uri> . |
53 |
> > |
54 |
> > Then do the repos.conf changes. That way you don't have to worry about |
55 |
portage |
56 |
> > doing a shallow clone. If you already did it then just unshallow it as |
57 |
Rich |
58 |
> > pointed. Then to view the logs just: |
59 |
> > |
60 |
> > #cd /usr/portage/cat/pkg |
61 |
> > #git log . |
62 |
> > |
63 |
> > Then 'git show <first few digits of commit hash>' to view a commit diff. You |
64 |
can |
65 |
> > use git use dev-vcs/tig if you find it easier though I thought it was |
66 |
pretty |
67 |
> > useless so it only lasted about 10 secs. in my system. |
68 |
> > |
69 |
> > So basicly the only change is that instead of: |
70 |
> > |
71 |
> > # less ChangeLog (or whatever you use to read logs) |
72 |
> > |
73 |
> > You'll do: |
74 |
> > |
75 |
> > # git log . |
76 |
> > |
77 |
> > |
78 |
> |
79 |
> |
80 |
> Actually, I use eix-sync to sync my tree. However I do it, I want it |
81 |
> done within the usual setup and commands. Given the bumps we've already |
82 |
> seen, I'm not wanting to change that just yet. Let the devs work out |
83 |
> some of the kinks first. |
84 |
|
85 |
I use eix-sync too, it just calls emerge --sync so it's the same. I'm not in a |
86 |
hurry to switch the main tree to git either. If they bring change logs to |
87 |
rsync I'll stick with it as long as it's supported. Git will just be more |
88 |
wasteful of disk space and has other potential problems that rsync doesn't. I |
89 |
think it's great of version control but not so much for this. |
90 |
|
91 |
> Oh, I use Kwrite to read the changelogs. If I'm stuck in a console, |
92 |
> nano, head or cat works. Well, it did in the past anyway. May not now tho. |
93 |
> |
94 |
> Dale |
95 |
> |
96 |
> :-) :-) |
97 |
> |
98 |
|
99 |
-- |
100 |
Fernando Rodriguez |