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

Re: git pull suggestion

From
AAghiles <aghilesk@gmail.com>
Date
Apr 12, 2010, 20:18 UTC
Message-ID
<s2m3abd05a91004121318x22b1f712tdd5600ad656c6b13@mail.gmail.com>
In-Reply-To
<7vaataphi7.fsf@alter.siamese.dyndns.org>
On Sun, Apr 11, Junio C Hamano <gitster@pobox.com> wrote:
Show 5 quoted lines
> ...
>
> The other answer would initially appear a bit sad, but after you think
> about it, it would turn into an enlightenment, especially for people whose
> brains have rotten from years and years of CVS/SVN use.

My brain was rotten even _before_ CVS/SVN use, so you can picture the damage.

Now, thank you very much for taking the time to explain everything. I had a vague understanding but now things are clearer.

I think that there was a document back in the day, that was giving a relationship between CVS/SVN commands and git. A posteriori, that document did more harm than good: it made you believe that you could use git as CVS/SVN. In practice, that is very difficult and error prone.

> Now, the above inevitably solicits "then why doesn't 'pull' automatically
> stash and then unstash?" question.  I think the answer is obvious if you
> think about it, and it is getting late, so I'll leave that as an exercise
> to the readers but will leave a pictorial hint.

Before I start thinking I already have a question (which says a lot about my thinking capacity): can't git detect this problematic case ? My feeling is that an automatic stash/unstash will work in most cases and could be triggered by a --dirty flag.

  -- aghiles
Previous: Matthieu MoyNext: Junio C Hamano
Message 13 of 15 in “git pull suggestion”
  1. AghilesApr 7, 2010
  2. Thomas RastApr 8, 2010
  3. AghilesApr 8, 2010
  4. Nicolas SebrechtApr 8, 2010
  5. AghilesApr 9, 2010
  6. Jeff KingApr 9, 2010
  7. AghilesApr 9, 2010
  8. Jeff KingApr 10, 2010
  9. Junio C HamanoApr 10, 2010
  10. AghilesApr 11, 2010
  11. Junio C HamanoApr 11, 2010
  12. Matthieu MoyApr 11, 2010
  13. AghilesApr 12, 2010
  14. Junio C HamanoApr 12, 2010
  15. AghilesApr 9, 2010

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.