Re: [git-users] use GIT with web portal

2012-09-13 Thread ansh

i just wanted to make use of file system instead of database. the files can 
be really large.
can you provide a link to a case study of where git can be used as a 
learning material.
m glad you responded so +vely.
:)


On Wednesday, 12 September 2012 18:42:24 UTC+5:30, Konstantin Khomoutov 
wrote:
>
> On Tue, 11 Sep 2012 22:24:58 -0700 (PDT) 
> ansh > wrote: 
>
> > > > i wanted to know whether GIT can be used by my web Portal. 
> > > > 
> > > > my requirement is to save a file in 3 revision history from 
> > > > webpage on ubuntu. 
> > > 
> > > I don't think I managed to fully parse this. 
> > > Do you want to implement some sort of backing store for the files 
> > > uploaded by the users of your web portal, so that for each file, 
> > > several past revisions of its content can be kept along with its 
> > > present content? 
> [...] 
>
> > u not much far from it ... 
> > the links you gave helped a lot. 
> > 
> > actually i had an editor in portal and the i wanted to save that data 
> > automatically in sometime in a revised version, also keep older 
> > versions upto 2 revisions and current as the 3rd. 
>
> For such simple scenario (users entering presumably short pieces of text 
> into text areas on a form) I'd not bother and would just store several 
> revisions of that message in a database table: I don't think you need 
> advanced features such as branching and delta-compression for storing 
> something as simple as this; I mean, the complexity of the tentative 
> soultion involving an SCM seems to not pay off. 
>
> P.S. 
> Please don't top-post.  This breaks the discussion flow and hence sucks. 
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/ALI6Swkywv4J.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] use GIT with web portal

2012-09-12 Thread Konstantin Khomoutov
On Tue, 11 Sep 2012 22:24:58 -0700 (PDT)
ansh  wrote:

> > > i wanted to know whether GIT can be used by my web Portal. 
> > > 
> > > my requirement is to save a file in 3 revision history from
> > > webpage on ubuntu. 
> >
> > I don't think I managed to fully parse this. 
> > Do you want to implement some sort of backing store for the files 
> > uploaded by the users of your web portal, so that for each file, 
> > several past revisions of its content can be kept along with its 
> > present content? 
[...]

> u not much far from it ...
> the links you gave helped a lot.
> 
> actually i had an editor in portal and the i wanted to save that data 
> automatically in sometime in a revised version, also keep older
> versions upto 2 revisions and current as the 3rd. 

For such simple scenario (users entering presumably short pieces of text
into text areas on a form) I'd not bother and would just store several
revisions of that message in a database table: I don't think you need
advanced features such as branching and delta-compression for storing
something as simple as this; I mean, the complexity of the tentative
soultion involving an SCM seems to not pay off.

P.S.
Please don't top-post.  This breaks the discussion flow and hence sucks.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] use GIT with web portal

2012-09-11 Thread ansh
u not much far from it ...
the links you gave helped a lot.

actually i had an editor in portal and the i wanted to save that data 
automatically in sometime in a revised version, also keep older versions 
upto 2 revisions and current as the 3rd. 

i will read more and decide what will be best for that function.

thanks for the help.
any advice warm welcome.

ansh

On Tuesday, September 11, 2012 3:45:55 PM UTC+5:30, Konstantin Khomoutov 
wrote:
>
> On Tue, 11 Sep 2012 01:57:46 -0700 (PDT) 
> ansh > wrote: 
>
> > hi all 
> > i wanted to know whether GIT can be used by my web Portal. 
> > 
> > my requirement is to save a file in 3 revision history from webpage 
> > on ubuntu. 
>
> I don't think I managed to fully parse this. 
> Do you want to implement some sort of backing store for the files 
> uploaded by the users of your web portal, so that for each file, 
> several past revisions of its content can be kept along with its 
> present content? 
>
> Then the answer is yes; there are even wiki engines (gitit, ikiwiki) 
> which use Git to store the sources of their pages, including 
> "attachments" (uploaded files). 
>
> On the other hand, to just store several revisions of a certain uploaded 
> file (I'm really confused about that digit "3" near the word "revision" 
> in your question--do you mean you want to keep at most three 
> revisions?), using a full-blown SCM system might be like using a 
> microscope to hit a nail.  For such a case, I would probably go for 
> using rdiff [1] to keep deltas of several past revisions of each file 
> (in a database) and keeping the most recent version of each file on 
> disk, readily available.  Using rdiff-backup [2] (on a local file 
> system) might also be an option. 
>
> If you still think an SCM is a way to go, I'd probably look at Fossil 
> [3] instead as it might be easier to deploy (just one executable file 
> with two dependences: on libc and libz).  Fossil uses SQLite for 
> storage internally (so the whole repository is just a single SQLite v3 
> file) and does compress the blobs it stores. 
>
> 1. http://linux.die.net/man/1/rdiff 
> 2. http://www.nongnu.org/rdiff-backup/ 
> 3. http://www.fossil-scm.org 
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/T4JCu_shFUQJ.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] use GIT with web portal

2012-09-11 Thread Konstantin Khomoutov
On Tue, 11 Sep 2012 01:57:46 -0700 (PDT)
ansh  wrote:

> hi all
> i wanted to know whether GIT can be used by my web Portal.
> 
> my requirement is to save a file in 3 revision history from webpage
> on ubuntu.

I don't think I managed to fully parse this.
Do you want to implement some sort of backing store for the files
uploaded by the users of your web portal, so that for each file,
several past revisions of its content can be kept along with its
present content?

Then the answer is yes; there are even wiki engines (gitit, ikiwiki)
which use Git to store the sources of their pages, including
"attachments" (uploaded files).

On the other hand, to just store several revisions of a certain uploaded
file (I'm really confused about that digit "3" near the word "revision"
in your question--do you mean you want to keep at most three
revisions?), using a full-blown SCM system might be like using a
microscope to hit a nail.  For such a case, I would probably go for
using rdiff [1] to keep deltas of several past revisions of each file
(in a database) and keeping the most recent version of each file on
disk, readily available.  Using rdiff-backup [2] (on a local file
system) might also be an option.

If you still think an SCM is a way to go, I'd probably look at Fossil
[3] instead as it might be easier to deploy (just one executable file
with two dependences: on libc and libz).  Fossil uses SQLite for
storage internally (so the whole repository is just a single SQLite v3
file) and does compress the blobs it stores.

1. http://linux.die.net/man/1/rdiff
2. http://www.nongnu.org/rdiff-backup/
3. http://www.fossil-scm.org

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] use GIT with web portal

2012-09-11 Thread ansh
hi all
i wanted to know whether GIT can be used by my web Portal.

my requirement is to save a file in 3 revision history from webpage on 
ubuntu.

if yes a link to read will be helpful
thanks

ansh 

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/xLDls8lJLmgJ.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.