Changes between Version 46 and Version 47 of BuildingQtOnWindows


Ignore:
Timestamp:
Jan 17, 2013, 11:02:49 AM (12 years ago)
Author:
jocelyn.turcotte@digia.com
Comment:

Update the sparse-checkout section.

Legend:

Unmodified
Added
Removed
Modified
  • BuildingQtOnWindows

    v46 v47  
    117117There is also a syntax to invert this logic, but it is currently not working well with directories.
    118118
    119   1. Create a ''sparse-checkout'' file with all the files/directories that you need. You can use the following command in git-bash to create such a file that will ignore the ''LayoutTests'' directory.
     119  1. Create a ''.git/info/sparse-checkout'' file that will ignore the ''LayoutTests'' directory:
    120120{{{
    121  cd WebKit
    122  ls -a | grep ".[a-zA-Z]" | grep -Ev "^.git|LayoutTests$" > .git/info/sparse-checkout
     121/*
     122!LayoutTests
    123123}}}
    124   2. Update the git tree cache
     124  2. Enable sparse-checkout:
    125125{{{
    126  git read-tree -m -u HEAD
     126git config core.sparsecheckout true
    127127}}}
    128 
    129   2. Check which files have been excluded
     128  3. Remove the LayoutTests directory if it is already there:
    130129{{{
    131  git ls-files -v | grep ^S
     130rmdir /s LayoutTests
    132131}}}
     132  4. Update the git tree cache:
     133{{{
     134git read-tree -m -u HEAD
     135}}}
     136  5. Check which files have been excluded:
     137{{{
     138git ls-files -v | grep ^S
     139}}}