Loop to fill files.
This commit is contained in:
		
							parent
							
								
									1174f0c910
								
							
						
					
					
						commit
						c215f6c218
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		|  | @ -150,11 +150,15 @@ sub ProcessCommit($$;$) { | ||||||
| sub RunCentralCommitMode($) { | sub RunCentralCommitMode($) { | ||||||
|   my($centralCommitId) = @_; |   my($centralCommitId) = @_; | ||||||
| 
 | 
 | ||||||
|  |   print "Creating Repository object with args $GIT_REPOSITORY_PATH\n" if ($VERBOSE >= 6); | ||||||
|   my $gitRepository = Git::Repository->new(git_dir => $GIT_REPOSITORY_PATH); |   my $gitRepository = Git::Repository->new(git_dir => $GIT_REPOSITORY_PATH); | ||||||
| 
 | 
 | ||||||
|  |   my %files; | ||||||
|   foreach my $commitId (keys %WHITELIST_COMMIT_IDS) { |   foreach my $commitId (keys %WHITELIST_COMMIT_IDS) { | ||||||
|     my(@commitFiles) = $gitRepository->run('show', '--pretty="format:"', '--name-only'); |     my(@commitFiles) = $gitRepository->run('show', '--pretty=format:', '--name-only', $commitId); | ||||||
|     print join("\n", @commitFiles); |     foreach my $file (@commitFiles) { | ||||||
|  |       $files{$file} = $commitId if not defined $files{$file}; | ||||||
|  |     } | ||||||
|   } |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Bradley M. Kuhn
						Bradley M. Kuhn