Fossil

Check-in [d09e3738]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Oops, forgot to zero the blob.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:d09e37387857ef48be68f77a91cc5e1b64bba115
User & Date: jan.nijtmans 2013-06-21 14:46:33
Context
2013-06-21
15:19
Allow the "fossil commit" command to accept directories as command-line arguments and commit all files contained underneath those directories. check-in: c8253f40 user: drh tags: trunk
14:46
Oops, forgot to zero the blob. check-in: d09e3738 user: jan.nijtmans tags: trunk
14:28
Enhance fossil changes and fossil status the same way. check-in: eb4d631c user: jan.nijtmans tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/checkin.c.

41
42
43
44
45
46
47

48
49
50
51
52
53
54
  int nPrefix = strlen(zPrefix);
  int nErr = 0;
  Blob rewrittenPathname;
  Blob where;
  const char *zTreeName;
  int i, nRoot;


  nRoot = (int)strlen(g.zLocalRoot);
  for(i=2; i<g.argc; i++) {
    Blob fname;
    file_canonical_name(g.argv[i], &fname, 0);
    zTreeName = blob_str(&fname)+nRoot;
    blob_appendf(&where, " %s (pathname=%Q %s) "
                 "OR (pathname>'%q/' %s AND pathname<'%q0' %s)",







>







41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
  int nPrefix = strlen(zPrefix);
  int nErr = 0;
  Blob rewrittenPathname;
  Blob where;
  const char *zTreeName;
  int i, nRoot;

  blob_zero(&where);
  nRoot = (int)strlen(g.zLocalRoot);
  for(i=2; i<g.argc; i++) {
    Blob fname;
    file_canonical_name(g.argv[i], &fname, 0);
    zTreeName = blob_str(&fname)+nRoot;
    blob_appendf(&where, " %s (pathname=%Q %s) "
                 "OR (pathname>'%q/' %s AND pathname<'%q0' %s)",