* I suggest a new feature: One copy from files
@ 2017-04-24 3:47 Rm Beer
2017-04-24 4:02 ` Samuel Lijin
2017-04-24 6:13 ` Jacob Keller
0 siblings, 2 replies; 5+ messages in thread
From: Rm Beer @ 2017-04-24 3:47 UTC (permalink / raw)
To: git
I have a several directories with binary files datas that is discard
by .gitignore.
I recommend make a new .gitonecopy or .gitonelog or something that
take the directories with only 1 copy of last updated and not take
history of files in the repository.
Maybe anyone found other best method for apply this idea.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: I suggest a new feature: One copy from files
2017-04-24 3:47 I suggest a new feature: One copy from files Rm Beer
@ 2017-04-24 4:02 ` Samuel Lijin
[not found] ` <CAA0fXPsuSZsn3tfm=f0G7OP7bL0L=7GDy_WVqfAnhfBKonrHvg@mail.gmail.com>
2017-04-24 6:13 ` Jacob Keller
1 sibling, 1 reply; 5+ messages in thread
From: Samuel Lijin @ 2017-04-24 4:02 UTC (permalink / raw)
To: Rm Beer; +Cc: git@vger.kernel.org
...what?
I'm sorry, I have absolutely no idea what you're asking. You're going
to have to be a lot more specific with your description of the desired
behavior because as is, I have no idea what purpose your .gitonecopy
or .gitonelog would serve. I also have no idea what this has to do
with the binary files ignored by .gitignore.
It would probably make sense for you to describe a use case for this
as well, to help us understand why you want what you're asking for.
On Sun, Apr 23, 2017 at 10:47 PM, Rm Beer <rmbeer2@gmail.com> wrote:
> I have a several directories with binary files datas that is discard
> by .gitignore.
>
> I recommend make a new .gitonecopy or .gitonelog or something that
> take the directories with only 1 copy of last updated and not take
> history of files in the repository.
> Maybe anyone found other best method for apply this idea.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: I suggest a new feature: One copy from files
[not found] ` <CAA0fXPvf5V3bALha-7fwTCt17OnXMDX-BjAz+jmXrsbK62BtCg@mail.gmail.com>
@ 2017-04-24 5:28 ` Samuel Lijin
0 siblings, 0 replies; 5+ messages in thread
From: Samuel Lijin @ 2017-04-24 5:28 UTC (permalink / raw)
To: Rm Beer, git@vger.kernel.org
Looping the listserv back in, didn't realize this had gone off thread.
I'm not sure what you mean by "update only the last change, and not
record the old changes".
update-index is, like most Git commands, per repo.
On Mon, Apr 24, 2017 at 12:08 AM, Rm Beer <rmbeer2@gmail.com> wrote:
> Yes, but i say about of have a update only the last change, and not
> record the old changes. Interesting command the 'update-index', this
> is a permanent config for each dir/files?
>
> 2017-04-24 1:59 GMT-03:00 Samuel Lijin <sxlijin@gmail.com>:
>> Ah - I see what you're asking for now, basically the ability to tell Git to
>> ignore changes to a file once you've already started tracking it, right?
>>
>> If I'm not mistaken, git update-index --skip-worktree will do this for you.
>> (I'm on my phone, so I don't have easy access to documentation right now.)
>>
>> Hope this helps.
>>
>> On Apr 23, 2017 11:51 PM, "Rm Beer" <rmbeer2@gmail.com> wrote:
>>>
>>> in a repository have two behaviors. (How understand i)
>>>
>>> 1) A file can check and updated in the repository, take any change
>>> from the file like a record logs.
>>> 2) If the file have in .gitignore . Git never see it.
>>>
>>> I suggest add a new behaviors:
>>>
>>> 3) A file can check and updated in the repository. But never add in
>>> the record logs, only have one copy in the repository. (Maybe add
>>> filters in .gitonecopy or something)
>>>
>>>
>>> 2017-04-24 1:02 GMT-03:00 Samuel Lijin <sxlijin@gmail.com>:
>>> > ...what?
>>> >
>>> > I'm sorry, I have absolutely no idea what you're asking. You're going
>>> > to have to be a lot more specific with your description of the desired
>>> > behavior because as is, I have no idea what purpose your .gitonecopy
>>> > or .gitonelog would serve. I also have no idea what this has to do
>>> > with the binary files ignored by .gitignore.
>>> >
>>> > It would probably make sense for you to describe a use case for this
>>> > as well, to help us understand why you want what you're asking for.
>>> >
>>> > On Sun, Apr 23, 2017 at 10:47 PM, Rm Beer <rmbeer2@gmail.com> wrote:
>>> >> I have a several directories with binary files datas that is discard
>>> >> by .gitignore.
>>> >>
>>> >> I recommend make a new .gitonecopy or .gitonelog or something that
>>> >> take the directories with only 1 copy of last updated and not take
>>> >> history of files in the repository.
>>> >> Maybe anyone found other best method for apply this idea.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: I suggest a new feature: One copy from files
2017-04-24 3:47 I suggest a new feature: One copy from files Rm Beer
2017-04-24 4:02 ` Samuel Lijin
@ 2017-04-24 6:13 ` Jacob Keller
[not found] ` <CAA0fXPtvxGydnSQfuB6OtYArPN3kb=sJDb3dnJrjdE-=2Hp5pw@mail.gmail.com>
1 sibling, 1 reply; 5+ messages in thread
From: Jacob Keller @ 2017-04-24 6:13 UTC (permalink / raw)
To: Rm Beer; +Cc: Git mailing list
On Sun, Apr 23, 2017 at 8:47 PM, Rm Beer <rmbeer2@gmail.com> wrote:
> I have a several directories with binary files datas that is discard
> by .gitignore.
>
> I recommend make a new .gitonecopy or .gitonelog or something that
> take the directories with only 1 copy of last updated and not take
> history of files in the repository.
> Maybe anyone found other best method for apply this idea.
So, clearly you haven't defined the request very well. It *sounds*
like what you want is the ability to say "git please store and
copy/send this file to other people, but only store it once, and don't
allow storing history of it". This pretty much defeats the entire
point of revision control and doesn't make sense to me as part of a
revision control system.
Thanks,
Jake
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: I suggest a new feature: One copy from files
[not found] ` <CAA0fXPtvxGydnSQfuB6OtYArPN3kb=sJDb3dnJrjdE-=2Hp5pw@mail.gmail.com>
@ 2017-04-25 0:37 ` Jacob Keller
0 siblings, 0 replies; 5+ messages in thread
From: Jacob Keller @ 2017-04-25 0:37 UTC (permalink / raw)
To: Rm Beer, Git mailing list
On Mon, Apr 24, 2017 at 4:47 PM, Rm Beer <rmbeer2@gmail.com> wrote:
> 2017-04-24 3:13 GMT-03:00 Jacob Keller <jacob.keller@gmail.com>:
>> So, clearly you haven't defined the request very well. It *sounds*
>> like what you want is the ability to say "git please store and
>> copy/send this file to other people, but only store it once, and don't
>> allow storing history of it". This pretty much defeats the entire
>> point of revision control and doesn't make sense to me as part of a
>> revision control system.
>
> Not have sense the save history of revision control system for any
> binary files datas, who need save a multiple files by change any bytes
> from a files? Where i change any pixel of image, a word of odt/doc, or
> sound, music, driver, etc. In this case you only need 1 copy in the
> repository of .git , you not need a 100 copys in the .git, one by each
> day of change. You need a old image with a wrong pixel? not have
> sense...
>
Please don't drop the list :)
If you're not interested in tracking the revision history of a file,
it doesn't need to be stored inside a revision control system.
Instead, you probably want an alternative method for sharing such a
file. Git is primarily about tracking changes over time to a
collection of files in a project. It's also somewhat about sharing
this history to other people, but I wouldn't say that is its primary
goal.
In either case, you could instead use an alternative mechanism for
sharing the large binary file and have people grab the file this way.
However, it is incredibly valuable to share the history of a file so
that the other users can see what changed or make sure that the
version they are using works with the version of the other sources
they have.
In the case of binary files, you might want to use alternative diff
drivers to compare changes more easily, or instead provide some
non-binary data that is used to generate the binary files (such as
source code).
The whole point of revision history is to show that "hey this used to
have a wrong pixel, and now we fixed it, and here's how we did it".
Maybe the "wrong" pixel was actually correct and you find out later
that you need to revert this change. But the "later" is many months
and you no longer have the exact change so you're using memory or
external data to determine what to change again instead of the actual
history of a file.
Thanks,
Jake
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-04-25 0:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-24 3:47 I suggest a new feature: One copy from files Rm Beer
2017-04-24 4:02 ` Samuel Lijin
[not found] ` <CAA0fXPsuSZsn3tfm=f0G7OP7bL0L=7GDy_WVqfAnhfBKonrHvg@mail.gmail.com>
[not found] ` <CAJZjrdXqD-fSCjC75bPgeYKUDH-XvGkpjGgSeoYu9NNhZyiN3w@mail.gmail.com>
[not found] ` <CAA0fXPvf5V3bALha-7fwTCt17OnXMDX-BjAz+jmXrsbK62BtCg@mail.gmail.com>
2017-04-24 5:28 ` Samuel Lijin
2017-04-24 6:13 ` Jacob Keller
[not found] ` <CAA0fXPtvxGydnSQfuB6OtYArPN3kb=sJDb3dnJrjdE-=2Hp5pw@mail.gmail.com>
2017-04-25 0:37 ` Jacob Keller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).