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

Re: [JGIT PATCH 02/10] Expose the raw path for the current entry of a TreeWalk

From
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
Date
Jan 23, 2009, 21:42 UTC
Message-ID
<200901232242.15073.robin.rosenberg.lists@dewire.com>
In-Reply-To
<1232666890-23488-3-git-send-email-spearce@spearce.org>
fredag 23 januari 2009 00:28:02 skrev Shawn O. Pearce:
> Copying the path byte array (keeping it encoded in UTF-8) is quicker
> than converting to String and then back again to UTF-8 when creating
> a DirCacheEntry for the current position in a TreeWalk.
[...]
> +	 * Get the current entry's complete path as a UTF-8 byte array.

/Hopefully/ UTF-8. It is often a legacy encoding, like ISO-8859-X, CP12xx etc. I'll come up with something less specific that just UTF-8.

-- robin
Previous: Shawn O. Pearce
Message 12 of 12 in “Merge API v2”
  1. 00/10 Merge API v2Shawn O. Pearce, Jan 22, 2009
  2. 01/10 Fix TreeWalk.idEqual when both trees are missing the pathShawn O. Pearce, Jan 22, 2009
  3. 02/10 Expose the raw path for the current entry of a TreeWalkShawn O. Pearce, Jan 22, 2009
  4. 03/10 Expose DirCacheEntry.getFileMode as a utility functionShawn O. Pearce, Jan 22, 2009
  5. 04/10 Add writeTree support to DirCacheShawn O. Pearce, Jan 22, 2009
  6. 05/10 Allow a DirCache to be created with no backing store fileShawn O. Pearce, Jan 22, 2009
  7. 06/10 Allow CanonicalTreeParsers to be created with a UTF-8 path prefixShawn O. Pearce, Jan 22, 2009
  8. 07/10 Recursively load an entire tree into a DirCacheBuilderShawn O. Pearce, Jan 22, 2009
  9. 08/10 Allow DirCacheEntry instances to be created with stage > 0Shawn O. Pearce, Jan 22, 2009
  10. 09/10 Define a basic merge API, and a two-way tree merge strategyShawn O. Pearce, Jan 22, 2009
  11. 10/10 Add a few simple merge test casesShawn O. Pearce, Jan 22, 2009
  12. Robin RosenbergJan 23, 2009

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.