1 |
On Fri, Apr 28, 2006 at 02:49:18PM -0700, Ryan Phillips wrote: |
2 |
> the only option I saw was git-commit -o and you had to specify the |
3 |
> files that you wanted to commit. |
4 |
> |
5 |
> I tried doing a git-commit paths/ and still everything wants to be |
6 |
> committed. |
7 |
> |
8 |
> It isn't pretty. |
9 |
> |
10 |
|
11 |
Uh, no... thats certainly not true for git-1.3 series, and I belive the |
12 |
behavior has been consistent since early february this year when the new |
13 |
commit semantics where introduced. |
14 |
|
15 |
See this: |
16 |
|
17 |
--- 8< --- |
18 |
[ $ ~/testy/gitty ] git init-db |
19 |
defaulting to local storage area |
20 |
[ $ ~/testy/gitty(master) ] echo something > a |
21 |
[ $ ~/testy/gitty(master) ] mkdir dir |
22 |
[ $ ~/testy/gitty(master) ] echo other thing > dir/b |
23 |
[ $ ~/testy/gitty(master) ] git add . |
24 |
[ $ ~/testy/gitty(master) ] git commit -m "initial import" |
25 |
Committing initial tree 6dc01ab7eb7f19983ae76e72ccb63e3e60aa2dc3 |
26 |
[ $ ~/testy/gitty(master) ] git status |
27 |
nothing to commit |
28 |
[ $ ~/testy/gitty(master) ] echo add something here >> dir/b |
29 |
[ $ ~/testy/gitty(master) ] echo something there >> a |
30 |
[ $ ~/testy/gitty(master) ] git status |
31 |
# |
32 |
# Changed but not updated: |
33 |
# (use git-update-index to mark for commit) |
34 |
# |
35 |
# modified: a |
36 |
# modified: dir/b |
37 |
# |
38 |
nothing to commit |
39 |
[ $ ~/testy/gitty(master) ] git commit -m "Only things in dir/?" dir/ |
40 |
[ $ ~/testy/gitty(master) ] git status |
41 |
# |
42 |
# Changed but not updated: |
43 |
# (use git-update-index to mark for commit) |
44 |
# |
45 |
# modified: a |
46 |
# |
47 |
nothing to commit |
48 |
[ $ ~/testy/gitty(master) ] |
49 |
--- 8< --- |
50 |
|
51 |
It is the same even if you did 'git update-index a' before 'git commit |
52 |
-m ... dir/'. However that's something you won't do unless you know what |
53 |
you're doing :) |
54 |
|
55 |
Cheers, |
56 |
ferdy |
57 |
|
58 |
-- |
59 |
Fernando J. Pereda GarcimartÃn |
60 |
Gentoo Developer (Alpha,net-mail,mutt,git) |
61 |
20BB BDC3 761A 4781 E6ED ED0B 0A48 5B0C 60BD 28D4 |