Check-in [8480dd38d2]
Not logged in
Overview

SHA1 Hash:8480dd38d2433035d07d137e95a454d9a5ba0515
Date: 2009-10-31 17:01:35
User: drh
Comment:Add the "artifact" command for extracting the content of individual artifacts. The new "artifact" command is really just a renaming of "test-content-get".
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/content.c from [79f280c4e2] to [57def314ab].

@@ -311,15 +311,19 @@
 
   return 0;
 }
 
 /*
-** COMMAND:  test-content-get
+** COMMAND:  artifact
+**
+** Usage: %fossil artifact ARTIFACT-ID  ?OUTPUT-FILENAME?
 **
-** Extract a blob from the database and write it into a file.
+** Extract an artifact by its SHA1 hash and write the results on
+** standard output, or if the optional 4th argument is given, in
+** the named output file.
 */
-void test_content_get_cmd(void){
+void artifact_cmd(void){
   int rid;
   Blob content;
   const char *zFile;
   if( g.argc!=4 && g.argc!=3 ) usage("RECORDID ?FILENAME?");
   zFile = g.argc==4 ? g.argv[3] : "-";