Re: FFmpeg considering GIT

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Friday, May 4, 2007 - 9:46 am

Petr Baudis <pasky <at> suse.cz> writes:
[...]
[...]

well, my example above was exagerated, noone ever reindented the whole
ffmpeg or checked in a old version over HEAD. what did and does occasionally
happen is that people check in several things at once (like a 100k reindenton
mixed with various functional changes)
for these we currently copy the last good version of the affected files
over the current one with svn cp and then apply the changes in nicely
split manner. (possibly without the reindention if its uneeded ...)
Another thing that happens occasionally is that complete nonsense is checked
in like checking in the wrong file or some "private" debuging code

we never use the svn cp method to revert normal buggy code ...




well if git blame and others could somehow be told to automatically ignore
nonsense changes and matching nonsense reverts that would be great
maybe by searching for some keyword in the revert message?

ignoring all or no reverts though would again be suboptimal as that would
also ignore some reverts due to normal buggy changes

actually i think ive found an almost working solution for replacing svn cp
(though i dont know if its safe on a public repo? or if theres some other
issue with it iam missing)

ascii > testfile
git add testfile ; git commit
Created initial commit c14755cd59af4b0e6c53fb3d4bf8fa7d5aad3f3d
 1 files changed, 23 insertions(+), 0 deletions(-)
 create mode 100644 testfile

vim testfile 
git add testfile ; git commit
Created commit 0fd74c0955ae4281ac17520eabefea639f635354
 1 files changed, 2 insertions(+), 2 deletions(-)

vim testfile 
git add testfile ; git commit
Created commit d1dce0e5a20603faa0e64b722d93e847f5b80845
 1 files changed, 23 insertions(+), 23 deletions(-)

git checkout 0fd74c0955ae4281ac17520eabefea639f635354
Note: moving to "0fd74c0955ae4281ac17520eabefea639f635354" which 
isn't a local branch
If you want to create a new branch from this checkout, you may do so
(now or later) by using -b with the checkout command again. Example:
  git checkout -b <new_branch_name>
HEAD is now at 0fd74c0... good change

cp testfile testbak
git add testbak ; git commit
Created commit 0e55c6f422005e64fd3b73595f0fe409148d725f
 1 files changed, 23 insertions(+), 0 deletions(-)
 create mode 100644 testbak

git checkout d1dce0e5a20603faa0e64b722d93e847f5b80845
HEAD is now at d1dce0e... bad change
$git rm testfile 
rm 'testfile'

git merge 0e55c6f422005e64fd3b73595f0fe409148d725f
 100% (1/1) done
Merge made by recursive.
 testbak |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)
 create mode 100644 testbak

git mv testbak testfile 
fatal: destination exists, source=testbak, destination=testfile
git rm testfile 
rm 'testfile'
git mv testbak testfile 

git commit
Created commit ca5bcbcadb9799b0a6eaa792fae322d511ecd55f
 2 files changed, 23 insertions(+), 46 deletions(-)
 delete mode 100644 testbak

git blame -C1 -C1 -M testfile
(this just shows ca5bcbca)

vim testfile (changing a single line)
git add testfile ; git commit
Created commit 7a0a828629935ce139177fc4623a0eb9916b78fd
 1 files changed, 1 insertions(+), 1 deletions(-)

git blame -C1 -C1 -M testfile | cut -d ' ' -f 1
^c14755c
^c14755c
^c14755c
^c14755c
^c14755c
0fd74c09
0fd74c09
^c14755c
^c14755c
^c14755c
^c14755c
^c14755c
^c14755c
^c14755c
^c14755c
^c14755c
7a0a8286
ca5bcbca
ca5bcbca
ca5bcbca
ca5bcbca
ca5bcbca
ca5bcbca

this is correct except the last 6 lines

[...]

Michael

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: FFmpeg considering GIT, Michael Niedermayer, (Fri May 4, 9:46 am)
Re: FFmpeg considering GIT, Carl Worth, (Fri May 4, 2:17 pm)
Re: FFmpeg considering GIT, Karl , (Sat May 5, 9:35 am)
Re: FFmpeg considering GIT, Marco Costalba, (Sun May 6, 4:15 am)
Re: FFmpeg considering GIT, Karl , (Sun May 6, 7:14 am)
Re: FFmpeg considering GIT, Marco Costalba, (Sun May 6, 8:19 am)
Re: FFmpeg considering GIT, Marco Costalba, (Sun May 6, 8:33 am)
Re: FFmpeg considering GIT, Karl , (Sun May 6, 8:59 am)
Re: FFmpeg considering GIT, Pavel Roskin, (Wed May 9, 6:30 pm)
Re: FFmpeg considering GIT, Karl , (Sun May 6, 9:03 am)
Re: FFmpeg considering GIT, Karl , (Sun May 6, 8:33 am)
Re: FFmpeg considering GIT, Linus Torvalds, (Sat May 5, 1:26 pm)
Re: FFmpeg considering GIT, Karl , (Sun May 6, 6:19 am)
Re: FFmpeg considering GIT, Linus Torvalds, (Sun May 6, 12:38 pm)
Re: FFmpeg considering GIT, Karl , (Sun May 6, 3:56 am)
Re: FFmpeg considering GIT, Linus Torvalds, (Sat May 5, 6:18 pm)
Re: FFmpeg considering GIT, Linus Torvalds, (Sat May 5, 6:30 pm)
Re: FFmpeg considering GIT, Paul Mackerras, (Mon May 7, 8:13 am)
Re: FFmpeg considering GIT, Jeff King, (Tue May 8, 3:26 am)
Re: FFmpeg considering GIT, Shawn O. Pearce, (Mon May 7, 10:03 pm)
Re: FFmpeg considering GIT, Junio C Hamano, (Mon May 7, 3:10 pm)
Re: FFmpeg considering GIT, Jan Hudec, (Mon May 7, 1:52 pm)
Re: FFmpeg considering GIT, , (Mon May 7, 6:10 pm)
Re: FFmpeg considering GIT, Randal L. Schwartz, (Mon May 7, 7:21 pm)
Re: FFmpeg considering GIT, Alex Riesen, (Mon May 7, 8:56 am)
Re: FFmpeg considering GIT, Marco Costalba, (Tue May 8, 2:30 am)
Re: FFmpeg considering GIT, Paul Mackerras, (Wed May 9, 12:28 am)
Re: FFmpeg considering GIT, Marco Costalba, (Wed May 9, 2:38 am)
Re: FFmpeg considering GIT, Jan Hudec, (Wed May 9, 2:28 pm)
Re: FFmpeg considering GIT, Fredrik Kuivinen, (Wed May 9, 5:09 pm)
Re: FFmpeg considering GIT, Jan Hudec, (Wed May 9, 5:36 pm)
Re: FFmpeg considering GIT, Marco Costalba, (Thu May 10, 7:20 am)
Re: FFmpeg considering GIT, Jan Hudec, (Thu May 10, 12:52 pm)
Re: FFmpeg considering GIT, Robin Rosenberg, (Wed May 9, 2:17 pm)
Re: FFmpeg considering GIT, Johan Herland, (Mon May 7, 8:50 am)
Re: FFmpeg considering GIT, Karl , (Mon May 7, 8:30 am)
Re: FFmpeg considering GIT, Junio C Hamano, (Sun May 6, 3:49 am)
Re: FFmpeg considering GIT, Michael Niedermayer, (Fri May 4, 4:24 pm)
Re: FFmpeg considering GIT, Linus Torvalds, (Sat May 5, 12:15 am)
Re: FFmpeg considering GIT, Johan Herland, (Fri May 4, 2:25 pm)
Re: FFmpeg considering GIT, Nicolas Pitre, (Fri May 4, 12:40 pm)
Re: FFmpeg considering GIT, Andy Parkins, (Fri May 4, 11:53 am)