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

Re: [PATCH] git-filter-branch.sh: Allow running in bare repositories

From
Petr Baudis <pasky@suse.cz>
Date
Jul 23, 2008, 22:06 UTC
Message-ID
<20080723220657.GA10151@machine.or.cz>
In-Reply-To
<alpine.DEB.1.00.0807232257500.8986@racer>
  Hi,
On Wed, Jul 23, 2008 at 10:59:03PM +0100, Johannes Schindelin wrote:
Show 9 quoted lines
> On Wed, 23 Jul 2008, Petr Baudis wrote:
> 
> > Commit 46eb449c restricted git-filter-branch to non-bare repositories
> > unnecessarily; git-filter-branch can work on bare repositories just
> > fine.
> > 
> > Cc: Johannes Schindelin <Johannes.Schindelin@gmx.de>
> 
> Funny, I did not get Cc:ed.
  sorry, I have to copy the Cc around manually with StGIT. :/
Show 10 quoted lines
> > -git diff-files --quiet &&
> > -	git diff-index --cached --quiet HEAD -- ||
> > -	die "Cannot rewrite branch(es) with a dirty working directory."
> > +if [ "$(is_bare_repository)" = false ]; then
> > +	git diff-files --quiet &&
> > +		git diff-index --cached --quiet HEAD --) ||
> 
>                                                        ^
> 
> I doubt this has ever passed the test suite, let alone run.
  It did... provided that I didn't make after modifying the script.
> Besides, this extra-funny extra indent is quite brutal on my eyes.
  I kept the original indentation.
				Petr "Pasky" Baudis
Previous: Johannes SchindelinNext: Petr Baudis
Message 7 of 10 in “git-filter-branch.sh: Allow running in bare repositories”
  1. git-filter-branch.sh: Allow running in bare repositoriesPetr Baudis, Jul 22, 2008
  2. Johannes SchindelinJul 22, 2008
  3. Petr BaudisJul 22, 2008
  4. Junio C HamanoJul 23, 2008
  5. git-filter-branch.sh: Allow running in bare repositoriesPetr Baudis, Jul 23, 2008
  6. Johannes SchindelinJul 23, 2008
  7. Petr BaudisJul 23, 2008
  8. [PATCHv3] git-filter-branch.sh: Allow running in bare repositoriesPetr Baudis, Jul 23, 2008
  9. Junio C HamanoJul 23, 2008
  10. Junio C HamanoJul 23, 2008

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.