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

cg-commit doesn't like new repository

From
Alan Chandler <alan@chandlerfamily.org.uk>
Date
Nov 19, 2005, 22:43 UTC
Message-ID
<200511192243.10815.alan@chandlerfamily.org.uk>

I just decided to make a repository of /etc, but because I didn't want to load in all the files, I used git-init-db to create the repository rather than cg-init-db

I then did cg-add for fstab
followed up by cg-commit which then failed as shown below
As soon as I have done a git-commit, all is OK, and cg-commit works again.

I presume there is something that cg-init-db does which makes it suitable for cogito - but what, and shouldn't cg-commit notice and either do it automatically or give a different error message?

cg-commit
usage: git-diff-index [-m] [--cached] [<common diff options>] <tree-ish> 
[<path>...]
common diff options:
  -z            output diff-raw with lines terminated with NUL.
  -p            output patch format.
  -u            synonym for -p.
  --name-only   show only names of changed files.
  --name-status show names and status of changed files.
  -R            swap input file pairs.
  -B            detect complete rewrites.
  -M            detect renames.
  -C            detect copies.
  --find-copies-harder
                try unchanged files as candidate for copy detection.
  -l<n>         limit rename attempts up to <n> paths.
  -O<file>      reorder diffs according to the <file>.
  -S<string>    find filepair whose only one side contains the string.
  --pickaxe-all
                show all files diff when -S is used and hit is found.

cg-commit: Nothing to commit root@kanger etc[master]#

-- 
Alan Chandler
http://www.chandlerfamily.org.uk
Open Source. It's the difference between trust and antitrust.
Next: Petr Baudis
Message 1 of 2 in “cg-commit doesn't like new repository”
  1. Alan ChandlerNov 19, 2005
  2. Petr BaudisNov 27, 2005

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.