Revert "common.h: slightly reduced memory usage of RevFile"
commitdb69dc4c2620c59f78f1bfee669f3a472b993eb7
authorMarco Costalba <mcostalba@gmail.com>
Sat, 30 May 2009 16:56:35 +0000 (30 18:56 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 30 May 2009 17:04:01 +0000 (30 19:04 +0200)
tree66acb9cdfc17d728420199cb1581f6197ecad46d
parent278a70b2fe9648ecd56b5e00ce81ee6a2453da42
Revert "common.h: slightly reduced memory usage of RevFile"

It breaks binary compatibility of file names cache file saved on disk.

Status vector is saved on disk as a part of file name caching.
Because the reverted patch changes it's type from
QVector<int> to QVector<unsigned char> we have a
different binary data file saved on disk. This breaks
released qgit versions that instead rely on the fact
that status is a vector of int.

To properly handle this we should update also the file
cache version number so that previous versions of qgit
can detect binary compatibility is broken and recreate
the file as new.

But IMHO this seems like an overkill for this patch.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/common.h