git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [Savannah-users] Anonymous commit (empty Author and Committer)

From
KKKaz Kylheku <kaz@kylheku.com>
Date
Nov 2, 2015, 16:37 UTC
Message-ID
<4da05191ce7780bed3a0e00f25b09bc9@mail.kylheku.com>
In-Reply-To
<20151102151123.GF21923@csclub.uwaterloo.ca>
On 02.11.2015 07:11, Lennart Sorensen wrote:
Show 14 quoted lines
> On Sat, Oct 31, 2015 at 08:24:06AM +0300, Andrei Borzenkov wrote:
>> If we decide to fix this commit it is better done now, while it is the 
>> last
>> one. It is annoying but do you have suggestion how it can be done
>> differently?
> 
> Well the only options are:
> 
> 1) Leave it alone
> 2) Break the tree of anyone that already pulled.  (Posting instructions 
> on
> how to fix it would at least be nice then).
> 
> Not sure how many people regularly pull the tree.
This is silly FUD. There is no ever any "broken tree".

Firstly, people who have no local changes do not experience any ill effect. They just have to do

   $ git fetch
   # oops, upstream and local branch have diverged
   # but I have absolutely no local work to preserve;
   # just "warp" HEAD to the new one:
   $ git reset --hard origin/master
   # done!

Those who have outstanding local work never have any expectation of non-breakage! *All* fetches are "non-fast-forward" with regard to unpublished local work, because they occur to a prior version of the work, underneath your changes.

In *all* cases you can do this:
   # Fast-forward or not, I don't care!
   $ git fetch
   # Take my 13 unpublished commits (or whatever number), rebase them 
over the
   # latest upstream master, and make the result my local master branch:
   $ git rebase HEAD~13 --onto origin/master
Previous: Lennart SorensenNext: Junio C Hamano
Message 13 of 15 in “Anonymous commit (empty Author and Committer)”
  1. Andrei BorzenkovOct 30, 2015
  2. Konstantin KhomoutovOct 30, 2015
  3. Jeff KingOct 30, 2015
  4. Balaco BacoOct 30, 2015
  5. Vladimir 'φ-coder/phcoder' SerbinenkoOct 30, 2015
  6. Vladimir 'φ-coder/phcoder' SerbinenkoOct 30, 2015
  7. Lennart SorensenOct 30, 2015
  8. Kaz KylhekuOct 30, 2015
  9. Andreas SchwabOct 31, 2015
  10. Andrei BorzenkovOct 31, 2015
  11. Andrei BorzenkovOct 31, 2015
  12. Lennart SorensenNov 2, 2015
  13. Kaz KylhekuNov 2, 2015
  14. Junio C HamanoNov 2, 2015
  15. Andrei BorzenkovOct 31, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.