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

Re: [RFH] hackday and GSoC topic suggestions

From
Jeff King <peff@peff.net>
Date
Feb 13, 2014, 08:41 UTC
Message-ID
<20140213084138.GB28679@sigill.intra.peff.net>
In-Reply-To
<xmqq1tz9qxyl.fsf@gitster.dls.corp.google.com>
On Tue, Feb 11, 2014 at 10:57:22AM -0800, Junio C Hamano wrote:
Show 5 quoted lines
> >  - git stash doesn't use --index as default
> >    http://article.gmane.org/gmane.comp.version-control.git/235892
> 
> I tend to think "git stash" was designed to work this way from day
> one.
Right. The thing that bothers me is the data loss of:
  echo 1 >foo
  git add foo
  echo 2 >foo
  git stash
  git stash pop

The content in "1" is stashed, but gets lost on the apply, and our pop drops the stash.

Show 6 quoted lines
> >  - using git commit-tree with "-F -" adds trailing newlines
> >    http://article.gmane.org/gmane.comp.version-control.git/236583
> 
> According to the initial commit that introduced this option, it
> deliberately calls strbuf_complete_line() to make sure we do not
> leave an incomplete line at the end.

Yeah, I think this one is a non-bug. I hadn't read it carefully but the "trailing newlines" made me think it was adding multiple extra blank lines. But it looks like it is just the normal strbuf_complete_line, and that is the right thing to be doing (it has _never_ been encouraged to have a commit message that does not have a newline at all, and I think stripspace has enforced that from day one).

> Many of the other items in your "bugs" section seem to be worth
> fixing.

As I mentioned elsewhere, I've yet to see the full results of the hackday. Hopefully soon. :)

-Peff
Previous: Jeff King
Message 15 of 15 in “[RFH] hackday and GSoC topic suggestions”
  1. Jeff KingFeb 5, 2014
  2. Christian CouderFeb 6, 2014
  3. Matthieu MoyFeb 6, 2014
  4. Jeff KingFeb 13, 2014
  5. Christian CouderFeb 13, 2014
  6. David KastrupFeb 13, 2014
  7. Thomas RastFeb 8, 2014
  8. Jeff KingFeb 8, 2014
  9. Thomas RastFeb 8, 2014
  10. Duy NguyenFeb 16, 2014
  11. Thomas RastFeb 16, 2014
  12. Junio C HamanoFeb 11, 2014
  13. Junio C HamanoFeb 11, 2014
  14. Jeff KingFeb 13, 2014
  15. Jeff KingFeb 13, 2014

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.