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

Re: git commands that only work correctly at top directory

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Sep 22, 2006, 12:57 UTC
Message-ID
<fcaeb9bf0609220557m7802a446nd47a9560c6977b31@mail.gmail.com>
In-Reply-To
<20060922112615.GB10124@moooo.ath.cx>
On 9/22/06, Matthias Lederhofer <matled@gmx.net> wrote:
> count-objects and describe work in the current master.
Yes. Somehow my master is not updated to origin :(
Show 6 quoted lines
> repack/bisect/reset and some other commands make only sense from the
> toplevel directory but anyway I would allow them to be run in a
> subdirectory and change up to the topdirectory (like git checkout for
> branch switching).  Is there any good reason not to do this?  I found
> it often annoying to go down to the toplevel directory/get a new shell
> just to reset to HEAD~1.

In case there is good reason not to do it, I'd like those commands to tell users run them in top directory. (Although I prefer to run it everywhere, I hate to cd around just for one command)

-- 
Duy
Previous: Matthias LederhoferNext: Petr Baudis
Message 7 of 12 in “git commands that only work correctly at top directory”
  1. Nguyen Thai Ngoc DuySep 22, 2006
  2. format-patch: use cwd as default output directoryMatthias Lederhofer, Sep 22, 2006
  3. Nguyen Thai Ngoc DuySep 28, 2006
  4. Junio C HamanoSep 28, 2006
  5. git-format-patch: fix bug using -o in subdirectoriesMatthias Lederhofer, Sep 28, 2006
  6. Matthias LederhoferSep 22, 2006
  7. Nguyen Thai Ngoc DuySep 22, 2006
  8. Petr BaudisSep 23, 2006
  9. git-repack: allow git-repack to run in subdirectoryJeff King, Sep 22, 2006
  10. Thomas KolejkaSep 22, 2006
  11. git-repack: allow git-repack to run in subdirectoryJeff King, Sep 25, 2006
  12. Junio C HamanoSep 25, 2006

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.