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

Re: why does git perpetually complain about include/asm-blackfin/macros.h?

From
BWBryan Wu <bryan.wu@analog.com>
Date
Jul 3, 2007, 00:28 UTC
Message-ID
<1183422489.10353.2.camel@roc-laptop>
In-Reply-To
<20070702142430.GA10400@fiberbit.xs4all.nl>
On Mon, 2007-07-02 at 16:24 +0200, Marco Roeland wrote:
Show 37 quoted lines
> On Monday July 2nd 2007 at 15:58 Jesper Juhl wrote:
> 
> > [obnoxious zero sized file include/asm-blackfin/macros.h that gets
> >  zapped by toolchains and resurrected again by git]
> >
> > I've seen that as well, but in my case doing a
> > $ git reset --hard master
> > fixed it.
> 
> Dangerous, as it may overwrite local changes you have! A simple "git
> checkout include/asm-blackfin/macros.h" is much safer in this case.
> 
> In git commit df30b11 this file got redundant. Perhaps because a normal
> patch was applied, instead of with git, the file didn't get deleted from
> the repository but truncated to size zero. Not strictly wrong perse, but
> for the Linux repository highly unusual (and the only one at that).
> 
> Your toolchain perhaps deletes files with zero size after cleaning up or
> something. Git then notices that you deleted this file.
> 
> Perhaps someone can apply something like the following to finally fix
> this up:
> 
> commit 7d98740800f3d9ad2428afa8c677be9573a51b7b
> Author: Marco Roeland <marco.roeland@xs4all.nl>
> Date:   Mon Jul 2 16:19:49 2007 +0200
> 
>     Blackfin arch: remove zero-sized include/asm-blackfin/macros.h
>     
>     This file accidentally got truncated instead of deleted in commit df30b11.
>     
>     Signed-off-by: Marco Roeland <marco.roeland@xs4all.nl>
> 
> diff --git a/include/asm-blackfin/macros.h b/include/asm-blackfin/macros.h
> deleted file mode 100644
> index e69de29..0000000
> -
Thanks, Applied to the blackfin-2.6.git tree for Linus pull.
- Bryan
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous: Marco RoelandNext: Linus Torvalds
Message 13 of 14 in “Re: why does git perpetually complain about include/asm-blackfin/macros.h?”
  1. Jeff GarzikJul 2, 2007
  2. Jesper JuhlJul 2, 2007
  3. Jeff GarzikJul 2, 2007
  4. Robert P. J. DayJul 2, 2007
  5. Alex RiesenJul 2, 2007
  6. Alex RiesenJul 2, 2007
  7. Marco RoelandJul 2, 2007
  8. Blackfin arch: include/asm-blackfin/macros.h die die dieMarco Roeland, Jul 2, 2007
  9. Bryan WuJul 3, 2007
  10. Jeff GarzikJul 2, 2007
  11. Sam RavnborgJul 14, 2007
  12. Marco RoelandJul 2, 2007
  13. Bryan WuJul 3, 2007
  14. Linus TorvaldsJul 2, 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.