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

Re: [EGIT PATCH 6/9] Add branch and StGit patch to decorator

From
Robin Rosenberg <robin.rosenberg@dewire.com>
Date
Mar 1, 2007, 08:22 UTC
Message-ID
<200703010922.18149.robin.rosenberg@dewire.com>
In-Reply-To
<20070301035909.GA8103@spearce.org>
torsdag 01 mars 2007 04:59 skrev Shawn O. Pearce:
Show 9 quoted lines
> Robin Rosenberg <robin.rosenberg@dewire.com> wrote:
> > +	public String getPatch() throws IOException {
> > +		final File ptr = new File(getDirectory(),"patches/"+getBranch()+"/current");
> > +		final BufferedReader br = new BufferedReader(new FileReader(ptr));
> > +		final String line = br.readLine();
> > +		return line;
> > +	}
> 
> Last time I checked leaking a file descriptor was a bad idea.
It's a hallmark of mine. Sooner or later the GC picks them up :), but you're right.
> I fixed it (in both methods) when I applied the patch.
> 
> Your whole series is now pushed. Thanks for the cleanups.
> 
-- robin
Previous: Shawn O. PearceNext: Robin Rosenberg
Message 9 of 12 in “Misc minor fixes”
  1. 0/9 Misc minor fixesRobin Rosenberg, Feb 28, 2007
  2. 1/9 Minor fix.Robin Rosenberg, Feb 28, 2007
  3. 2/9 Catch mmap errors and retry.Robin Rosenberg, Feb 28, 2007
  4. 3/9 Use mmap per default.Robin Rosenberg, Feb 28, 2007
  5. 4/9 Add .qualifier to the plugin version.Robin Rosenberg, Feb 28, 2007
  6. 5/9 Force full checkpoint for CheckpointOperation.Robin Rosenberg, Feb 28, 2007
  7. 6/9 Add branch and StGit patch to decoratorRobin Rosenberg, Feb 28, 2007
  8. Shawn O. PearceMar 1, 2007
  9. Robin RosenbergMar 1, 2007
  10. 7/9 Support tag objectsRobin Rosenberg, Feb 28, 2007
  11. 8/9 Handle odd tag formats created by tools such as cvsimport.Robin Rosenberg, Feb 28, 2007
  12. 9/9 Performance test for jgit.Robin Rosenberg, Feb 28, 2007

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.